jhildenbiddle / css-vars-ponyfill

Client-side support for CSS custom properties (aka "CSS variables") in legacy and modern browsers
https://jhildenbiddle.github.io/css-vars-ponyfill
MIT License
1.46k stars 64 forks source link

Ponyfill doesn't work with CSSStylesheet.insertRule #19

Closed vladbicu closed 6 years ago

vladbicu commented 6 years ago

Hi,

I'm working on a project that use emotion-css library + CSS vars. Because we had to support IE11, I tried to use this ponyfill. All things were great until we did a production build and the ponyfill didn't work.

After some research I discovered that emotion library use insertRule API, which means that