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!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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!