Re:Descartes – An experimental library for writing CSS in Ja...
by err4nt on Sunday February 21, 2016 @11:55AM
(#11145207)
It would seem that Descartes allows you to change the values of the CSS _after_ page load, which no amount of precompiling can do!
This is what plugins like Descartes are trying to solve - how do we inform CSS of values on the page which may be different between different browsers or users, or may change on the page after it loads as users interact with it.
Here's an example using EQCSS of accessing JavaScript Variables from CSS - I'd ~LOVE~ to see what CSS you could prepare and send in advance that would produce the same thing.
This is what plugins like Descartes are trying to solve - how do we inform CSS of values on the page which may be different between different browsers or users, or may change on the page after it loads as users interact with it.
http://elementqueries.com/demos/variables.html
Here's an example using EQCSS of accessing JavaScript Variables from CSS - I'd ~LOVE~ to see what CSS you could prepare and send in advance that would produce the same thing.
It can't be done :)