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

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