Re: [css-variables] allowable variable names

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