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

Re: [css3-page] Error in grammar of section 3.4.1

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 23 Apr 2012 16:03:31 -0700
Message-ID: <CAAWBYDBxK+OWAN523+Qn0dctOscHdmRrEM+kX+KgD7_TvoQ_wQ@mail.gmail.com>
To: Simon Sapin <simon.sapin@kozea.fr>
Cc: Werner Donné <werner.donne@pincette.biz>, www-style@w3.org
On Mon, Apr 23, 2012 at 3:28 PM, Simon Sapin <simon.sapin@kozea.fr> wrote:
> Le 23/04/2012 23:46, Tab Atkins Jr. a écrit :
>> <declaration>  matches the declaration production in the current CSS2.1
>> grammar, but capped with a ';' token at the end.
> Yes, except if the declaration is followed by '}' (the end of the block). In
> this case, the ';' is optional. And consecutive ';' without a declaration
> in-between are also allowed.
> Can we make a definition with this kind of exceptions?

The parser should handle that automatically - when it is parsing a
declaration, if it encounters an unmatched close-brace or an at-rule,
it should imply the end of the declaration.  I haven't gotten to that
part of Syntax yet.

Received on Monday, 23 April 2012 23:04:39 UTC

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