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

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

From: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 11 Jun 2012 19:05:52 -0700
Message-ID: <4FD6A400.40906@inkedblade.net>
To: Yuzo Fujishima <yuzo@google.com>
CC: www-style@w3.org
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 GMT

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