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: Marat Tanalin <mtanalin@yandex.ru>
Date: Tue, 02 Jun 2015 21:29:49 +0300
To: Boris Zbarsky <bzbarsky@mit.edu>, "www-style@w3.org" <www-style@w3.org>
Message-Id: <680341433269789@web24g.yandex.ru>
02.06.2015, 21:16, "Boris Zbarsky" <bzbarsky@mit.edu>:
> 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"?

In your example, `a` and `b` are undefined since `c` is not specified.

`d` value is `color` (value of `e` referenced with `var(e)` as `d` value), and its final value depends on what is `color`.
Received on Tuesday, 2 June 2015 18:30:22 UTC

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