DEV Community

Discussion on: CSS variables are great!

Collapse
ikbensiep profile image
Sibrand Hoekstra

Support is not too shabby: developer.mozilla.org/en-US/docs/W...

Collapse
mattcosta7 profile image
Matthew Costabile

That's support for setProperty itself, not support for cash variables, which won't work with setProperty (or at all on ie without polyfilling - and the best polfyills only support initial evaluation)

Thread Thread
ironydelerium profile image
ironydelerium

caniuse.com/#feat=css-variables

So, aside from IE, if your browser is less than a year old (2 years, at least, if you exclude Edge), CSS variables work.