RE: [css-variables] Why we can not use 'var()' function for normal property

> > I'm just going to point out this is a false problem. I already proved
> > a perfectly fine solution to this problem existed, which had no
> > evaluation-order dependency, and which could be executed in parallel
> > like a charm. I even provided an implementation and a complete demo
> > for people to try out. This was three years ago.
> 
> There is no solution to this problem that doesn't break pages as we update
> the language and add new implicit dependencies between properties.  This is
> an unsolvable problem.

[1] The problem I claim to have solved is not that one, but the one Boris and Marat were arguing about.

[2] We had this discussion so many times we should make a meme about it. var(...) is replaced by the cascaded value, not the used value, so there is no "implicit" dependency between any property at this point. This is exactly similar to using a dummy variable to contain your value, except you don't have to, which (1) makes your code easier to read, (2) allows you to reuse existing css code/libraries. See Lea's email.

Received on Tuesday, 2 June 2015 22:45:36 UTC