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

Re: CSS Variables Draft Proposal

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 11 Feb 2011 11:03:29 -0800
Message-ID: <AANLkTimx87Ss2rW_wM_NdcFmzwXBrnmdZU4xn0hB1Vvq@mail.gmail.com>
To: Alan Gresley <alan@css-class.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 Fri, Feb 11, 2011 at 10:22 AM, Alan Gresley <alan@css-class.com> wrote:
> 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";
>
>  @import("example.css");

Both of those involve URLs, which have their own host of issues.  They
don't necessarily generalize to other types of things.


> 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>
> }

No, "@var foo <value>;" is exactly equivalent in terms of delimiting.

~TJ
Received on Friday, 11 February 2011 19:04:23 GMT

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