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

Re: CSS Variables Draft Proposal

From: Alan Gresley <alan@css-class.com>
Date: Sat, 12 Feb 2011 05:22:05 +1100
Message-ID: <4D557E4D.8030801@css-class.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: Colt Antonio Pini <Colt.Pini@nau.edu>, "Linss, Peter" <peter.linss@hp.com>, Alex Robinson <css-discuss@alex.fu2k.org>, "L. David Baron" <dbaron@dbaron.org>, www-style list <www-style@w3.org>, Daniel Glazman <daniel.glazman@disruptive-innovations.com>
On 12/02/2011 4:29 AM, Tab Atkins Jr. wrote:
> On Fri, Feb 11, 2011 at 8:55 AM, Colt Antonio Pini<Colt.Pini@nau.edu>  wrote:
>> I may be piping in at the wrong time, or I might be the wrong person to do so. But I just wanted to ask...
>> What would be wrong with:
>> @var $foo 'the value';
>> Or
>> @var $foo "the value";
>> ?
>> It seems that may help decide with problems such as @var $foo '/* the value */';
> Requiring quotes for ordinary CSS values seems inelegant.  Plus,
> strings are a valid type, and having to double up on quotes is ugly:
> @var $foo "'a font name'";
> ~TJ

Tab, there are two types of @rules that I know of that end with a 
semicolon ';'. They are @import and @namespace, one of which must be 
quoted and the other having parenthesis.

   @namespace foo "http://example.org";


Your proposal is requiring this to change plus the syntax rules of CSS. 
I fine now with seeing the '$' in between a declaration block for a 
variable value but what I liked about glazou's proposal was how the 
variable was set and had '{' '}' to show the full declaration. Doesn't 
something like this delimit the nature of a string?

@var foo {
    <property>: <value>

Alan http://css-class.com/

Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo
Received on Friday, 11 February 2011 18:22:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:56 UTC