W3C home > Mailing lists > Public > www-style@w3.org > August 2013

Re: [css-variables] allowable variable names

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Sun, 25 Aug 2013 11:31:54 -0700
Message-ID: <CAAWBYDDRk5KqQy-i_=CitGNKXz0BDwdy=67OHs26B_TZfURb5g@mail.gmail.com>
To: Cameron McCormack <cam@mcc.id.au>
Cc: www-style list <www-style@w3.org>
On Sun, Aug 25, 2013 at 12:10 AM, Cameron McCormack <cam@mcc.id.au> wrote:
> The syntax of var() is defined as:
>
>   <variable> = var( variable-name [, <any-value> ]? )
>
> What is the syntax of a variable-name here?  If it is meant to be an 〈ident〉
> then that should be stated.  (I think it probably is, given the note that
> begins with the text "Authors are recommended ...", but best to be clear.)

Well, it's an <ident>, not an 〈ident〉, but yes.  I've fixed it.

(You should virtually never use tokens directly in grammar
definitions, since there are almost always ways to produce a given
type of value besides writing it literally, such as through the attr()
function.)

~TJ
Received on Sunday, 25 August 2013 18:32:41 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:31 UTC