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

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

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Thu, 19 Apr 2012 17:42:29 +0200
Message-ID: <4F903265.1010006@kozea.fr>
To: Werner Donné <werner.donne@pincette.biz>
CC: www-style@w3.org
Le 19/04/2012 17:28, Werner Donné a écrit :
>> '{' S* [ [ declaration ';' S* ] | margin ]* [ declaration ]? '}'
> So, a declaration without a semi-colon followed by a margin box is not allowed. Is that correct?

If I read the core grammar[1] correctly, at-keywords and blocks are 
allowed in properties values, so that would result in a big declaration 
(with a value that is probably invalid for any property.)

[1] http://www.w3.org/TR/CSS21/syndata.html#tokenization

I can not find this written anywhere, but my understanding was that 
declarations continued until a semi-colon or the end of a block. (Unless 
these are inside nested {} () or [] pairs.)

Regards,
-- 
Simon Sapin
Received on Thursday, 19 April 2012 15:43:00 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:52 GMT