Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: