W3C home > Mailing lists > Public > www-style@w3.org > November 2002

Space after semicolon in blocks not allowed by core grammar (CSS2 error)

From: Etan Wexler <ewexler@stickdog.com>
Date: Wed, 6 Nov 2002 18:40:02 -0500
Message-Id: <v03102800b9ee66de3435@[64.24.91.50]>
To: www-style@w3.org, css2-editors@w3.org

The core grammar described in CSS2 (at
<http://www.w3.org/TR/REC-CSS2-19980512/syndata.html#tokenization>)
prohibits space after a semicolon in any block that is not a declaration
block.  Consider the following production from the core grammar.

block : '{' S* [ any | block | ATKEYWORD S* | ';' ]* '}' S*;

Since 'any' must include something other than space, there is no way to do
the following, for example.

@font-face { font-family: "Everson Mono"; font-weight: normal; }

Let us amend the 'block' production as follows.

block : '{' S* [ any | block | ATKEYWORD S* | ';' S* ]* '}' S*;

--
Etan Wexler <mailto:ewexler@stickdog.com>
Received on Wednesday, 6 November 2002 18:52:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:17 GMT