W3C home > Mailing lists > Public > www-style@w3.org > June 2015

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

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Tue, 02 Jun 2015 14:16:31 -0400
Message-ID: <556DF2FF.5070603@mit.edu>
To: Marat Tanalin <mtanalin@yandex.ru>, "www-style@w3.org" <www-style@w3.org>
On 6/2/15 2:14 PM, Marat Tanalin wrote:
>      a: var(b);
>      b: var(a);
>
> If we need to get the value of the `a` property, then we should then access `b` property referenced with `var(b)`. So we have "a, b" order.
>
> If we need to get the value of the `b` property, then we should then access `a` property referenced with `var(a)`. So we have "b, a" order.

OK, what happens with:

   a: var(b);
   b: var(c);
   d: var(e);
   e: color;

Does it depend on the nesting depth?  Does it depend on whether a or b 
is computed "first"?

-Boris
Received on Tuesday, 2 June 2015 18:17:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:54 UTC