Re: [css3-page] @page margin_box rule inconsistency

On 02/23/2010 06:20 PM, Yuzo Fujishima wrote:
> Hi,
>
> http://dev.w3.org/csswg/css3-page/#syntax-page-selector says:
>
> margin_box
> margin_sym S* '{' ruleset* '}' S*
> ;
>
> but this is inconsistent with Example VIII:
> http://dev.w3.org/csswg/css3-page/#cascading-and-page-context
>
> @page :first {
> color: green;
>
> @top-left {
> content: "foo";
> color: blue;
> ...
>
> because 'content: "foo"; ...' doesn't qualify as ruleset:
> http://www.w3.org/TR/CSS2/grammar.html
>
> ruleset
> : selector [ ',' S* selector ]*
> '{' S* declaration? [ ';' S* declaration? ]* '}' S*
> ;
>
> Should margin_box be corrected as follows?
>
> margin_box
> margin_sym S* '{' S* declaration? [ ';' S* declaration? ]* '}' S*
> ;
>
> (Or should the example be corrected instead?)

Yes, the grammar needs to be corrected. Fixed in the editor's draft.

~fantasai

Received on Tuesday, 12 June 2012 02:06:24 UTC