Re:CSS Variables in Firefox 29
by thefreeman on Saturday May 03, 2014 @10:54AM
(#7691011)
The good news is that at least now a large majority of users are on browsers with auto update. So once the spec is finalized and browsers start to enable it by default you should get a pretty large % of users who will support it.
You will likely have to have a separate stylesheet for older versions of IE (and possibly other browsers) but honestly you likely have that anyway. And it's a lot easier to update a few values in that then throughout your entire site.
We'll see how it plays out but I certainly wouldn't expect to use them in production for quite a while yet. I'm sure that is why they hid it behind an about:config option for now.
Re:CSS Variables in Firefox 29
by TazeTSchnitzel on Saturday May 03, 2014 @06:52AM
(#7690296)
LESS and co. can't implement this, because CSS variables are cascading.
Re:CSS Variables in Firefox 29
by reimersjan on Saturday May 03, 2014 @06:20AM
(#7690245)
According to caniuse, the global support for variables is 0.01% right now. http://caniuse.com/#search=variables
I think it will take some time until there is enough browser support to use variables on a productive site. but maybe browsers will implement this faster... there's hope
Do developers actually only use this on FF29+ until all browser adapt? Is this one of those things where we will see workarounds for older browser for decades to come?
Or is this more something that CSS frameworks like LESS pick up and the actual thing is abstracted away for a couple of years still?
This does seem like a very useful feature.