News for hackers. Stuff that matters.
Re:CSS Variables land in WebKit by underwater on Wednesday June 13, 2012 @11:38PM (#4109647)
A simple example:

   div { var-color: red; }
   p { var-color: blue; }
   section a { color: var(color); }
It is not possible to generate a non-variable version of the CSS without either knowing the structure of the DOM or generating every permutation of selectors (you can imagine how unwieldy this could get). Even if you manage to do this you're changing the specificity of the rules.

There are no comments on this comment yet.