DEV Community

Discussion on: Don't miss out on css variables

 
timdeschryver profile image
Tim Deschryver

That's a great tip, thanks for sharing!

Thread Thread
 
piotrk profile image
2pi.pl • Edited

Unfortunately about 8% of the web users are still using IE11 and other browsers not supporting css vars. It depends on your company's policy if you need to take care about those users or not - we have to :(
Of course - it's good to know about "new" things but using them it's unfortunately other thing.
This fallback is good for simple cases, but if you'd like to change the value of the --background-color using javascript, simply changing the --background-color variable the colors won't change it in IE.