Re: CSS Variables Draft Proposal

On Feb 14, 2011, at 2:02 PM, L. David Baron wrote:

> On Monday 2011-02-14 16:28 -0500, Boris Zbarsky wrote:
>> {snip}
>
>> I agree that a raw token stream may not be the right thing due to
>> things like:
>>
>>  @var foo 255, 255);
>>
>> which could add pretty oddly if $foo is used like so:
>>
>>  color: rgb(0, $foo, 0);
>
> FWIW, what I'd want is a token stream that has balanced (), {}, and
> [], and of course no ; at top-level (not within the (), {}, or []).

If it's going to be a "token stream", then I'd say, balanced () and  
[], NO '{', '}', ':' or ';'

Having braces conflicts with forward compatible @rule parsing, ie:

@var $foo bar { baz; } blah;

An older client would terminate the @var before the 'blah'.  
Furthermore braces have no place in a property value, neither does a  
':'.

Peter

Received on Monday, 14 February 2011 23:19:41 UTC