Re: [css-variables] Remaining Issues

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.

~TJ

Received on Wednesday, 19 June 2013 17:30:34 UTC