Re: CSS Variables Draft Proposal

Le 11/02/11 02:15, Linss, Peter a écrit :

> Don¹t forget this case:
> @var $foo /*this_is_a_valid_url*/;  p { content: url($foo); }
>
> Is it a comment or not?


Never. A comment is explicitely said to be able to happen anywhere
between tokens in the grammar and you can almost consider it's
stripped before tokenization (even if of course it is not).

The variable assignment above is always reduced to @var $foo ;

</Daniel>

Received on Friday, 11 February 2011 01:35:05 UTC