News for hackers. Stuff that matters.
Re:CSS Variables in Firefox 31 – new syntax by gavinpc on Wednesday July 23, 2014 @10:28AM (#8074529)
As other posts have stated, CSS variables are not the same thing as preprocessor variables. Specifically, they cascade.

A preprocessor cannot possibly implement CSS variables with cascading because it the value is resolved against a live context.

In other words, you can actually change the variable at runtime with rules that target different selectors.

As such, the "variables" are in fact functions.

Re:CSS Variables in Firefox 31 – new syntax by rubiquity on Wednesday July 23, 2014 @10:39AM (#8074585)
Thanks for the break down. I'm not seeing the benefit of variables cascading, though.
Re:CSS Variables in Firefox 31 – new syntax by talmand on Wednesday July 23, 2014 @02:28PM (#8076046)
I agree, I need to see a use-case for having cascading variables. The fact that they do seems to go against some of the benefits of them in the first place.