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

[css-variables] Slight tweak to value space of CSS variables

From: L. David Baron <dbaron@dbaron.org>
Date: Tue, 5 Feb 2013 20:00:36 -0700
To: www-style@w3.org
Message-ID: <20130206030036.GA10405@crum.dbaron.org>
Currently the value space of CSS variables is the "value" production
in the CSS 2.1 grammar, as specified here:
http://dev.w3.org/csswg/css-variables/#defining-variables
and defined here:
http://www.w3.org/TR/CSS21/syndata.html#tokenization

One detail that bothers me is that this production allows the CDO
and CDC tokens *inside* of (), [], or {}, but does not allow them at
the top level of the value.

I think we should change this, and change the value space of
variables from:
  value
to
  [ value | CDO S* | CDC S* ]+

-David

-- 
𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla                           http://www.mozilla.org/   𝄂
Received on Wednesday, 6 February 2013 03:01:01 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:05 GMT