Re: [css-variables] Remaining Issues

Le 19/06/2013 18:29, Tab Atkins Jr. a écrit :
> On Wed, Jun 19, 2013 at 10:11 AM, Henrik Andersson
> <henke@henke37.cjb.net>  wrote:
>> Tab Atkins Jr. skriver:
>>> Yes, you can have*anything*  in a custom property (except for the few
>>> little bits of invalid tokens).
>>
>> Including blocks and entire rules?
>>
>> I don't think they are quite that flexible.
> Yup, as François demonstrated, they*are*  that flexible.
>
> Of course you can't*use*  blocks or rules with var(), as var() is only
> usable inside of properties, and no property accepts that kind of
> thing.  But you can use it in JS.

Nitpick: you *can* use var() in other custom properties to eg. combine 
multiple variables, and eventually use that through JS :)

The restriction is that the variable’s value has to be valid wherever 
var() is used.

-- 
Simon Sapin

Received on Wednesday, 19 June 2013 18:02:15 UTC