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

Re: [css-variables] Remaining Issues

From: Simon Sapin <simon.sapin@exyr.org>
Date: Wed, 19 Jun 2013 19:01:56 +0100
Message-ID: <51C1F214.2050603@exyr.org>
To: www-style@w3.org
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

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