W3C home > Mailing lists > Public > www-style@w3.org > May 2012

Re: [css-variables] allowed syntax of variable values (was Re: status ?)

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 25 May 2012 12:26:38 -0700
Message-ID: <CAAWBYDBY=biZWF7LeENabDNh7jX7D3zKGy9iDMdE16sLtAzVbA@mail.gmail.com>
To: "L. David Baron" <dbaron@dbaron.org>
Cc: Daniel Glazman <daniel.glazman@disruptive-innovations.com>, www-style@w3.org
On Fri, May 25, 2012 at 11:59 AM, L. David Baron <dbaron@dbaron.org> wrote:
> On Friday 2012-05-25 11:43 -0700, Tab Atkins Jr. wrote:
>> Sorry, I didn't fully apply the proper edits.  Look in the prop table.
>
> I guess the important part is:
>
>  [ <number> | <percentage> | <dimension> | <string> | <ident> |
>  <url> | <function> | <hash> ]
>
> I'd note that <dimension>, <ident>, <function>, and <hash> aren't
> actually defined anywhere.

Yes, I expect to define them in the Syntax spec.  They have the
obvious definitions (<dimension>, <ident>, and <hash> are equal to the
corresponding tokens, <function> is equal to the function production
in Appendix G).


> And, in particular, <function> being
> defined according to the core grammar would mean this isn't a
> simplification at all for implementations, but just constrains the
> future syntax of property values (e.g., to not use parentheses as
> some drafts of the background shorthand did).

Improvements welcome.  If you think I should '(' <value> ')' valid, I
can do that.

~TJ
Received on Friday, 25 May 2012 19:27:28 GMT

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