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

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 UTC