W3C home > Mailing lists > Public > www-style@w3.org > February 2010

[css3-page] @page margin_box rule inconsistency

From: Yuzo Fujishima <yuzo@google.com>
Date: Wed, 24 Feb 2010 11:20:03 +0900
Message-ID: <9124e09b1002231820k1113710bj55cfbe650290efe9@mail.gmail.com>
To: www-style@w3.org
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 GMT

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