DEV Community

Discussion on: Create your first CSS Custom Properties (Variables)

Collapse
 
nuxodin profile image
Tobias Buschor

Great Post!
I made your Demo work with IE11
jsbin.com/yiriyuvisi/1/edit?html,c...

...by practically just including this Polyfill i wrote:
github.com/nuxodin/ie11CustomPrope...

Collapse
 
brob profile image
Bryan Robinson

Very interesting! I usually shy away from JS polyfills for CSS, but Custom Properties are one of those things that mix CSS and JS so much that I think it makes a lot of sense!

Usually, if I'm worrying about fallbacks, I'll specify my values outside of Custom Properties and then overwrite with the custom property to allow a graceful fallback, but having the best of both worlds would be super nice!