[css3-page] @page margin_box rule inconsistency

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?)

Yuzo

Received on Wednesday, 24 February 2010 02:20:53 UTC