Skip to content
This repository has been archived by the owner on Dec 29, 2017. It is now read-only.

Support Polyfills on Dynamically Inserted DOM Elements #22

Closed
wants to merge 1 commit into from
Closed

Support Polyfills on Dynamically Inserted DOM Elements #22

wants to merge 1 commit into from

Conversation

jsmecham
Copy link

@jsmecham jsmecham commented Sep 2, 2016

Adds support polyfilling elements that have been dynamically added to the DOM, by way of MutationObserver. This isn't supported in some older browsers, but it does allow modern browsers to use CSS polyfills (i.e. position: sticky) on single page applications or other dynamically updated applications.

@philipwalton
Copy link
Owner

Hey @jsmecham, I'm not really maintaining this project anymore as I've found there are way too many gotchas associated with using inline styles to polyfill CSS (since inline styles do not maintain the original cascade order set in the stylesheet).

I've toyed around with different strategies to keep the cascade in tact, but I haven't yet taken the time incorporate them into this project.

I'm happy to merge this PR if it's helpful to you, but in general I wouldn't recommend using this library to polyfill CSS.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants