W3C home > Mailing lists > Public > www-style@w3.org > February 2011

Re: CSS Variables Draft Proposal

From: Peter Linss <peter.linss@hp.com>
Date: Mon, 14 Feb 2011 15:18:53 -0800
Cc: Boris Zbarsky <bzbarsky@MIT.EDU>, "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
Message-Id: <4D9DA780-D744-4426-89EA-E458F634A0CF@hp.com>
To: "L. David Baron" <dbaron@dbaron.org>

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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:37 GMT