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

Paged Media Grammar Error?

From: Nicholas Zakas <nzakas@yahoo-inc.com>
Date: Fri, 17 Dec 2010 15:47:10 -0800
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <B66541E954ECF146AD8CA69D34A283FF26A57E7466@SP2-EX07VS02.ds.corp.yahoo.com>
The CSS3 paged media grammar specifies this:

  page :
       PAGE_SYM S* IDENT? pseudo_page? S*
       '{' S* [ declaration | margin ]? [ ';' S* [ declaration | margin ]? ]* '}' S*
       ;

If I'm reading this correctly, then the following example that appears later is incorrect:

  @page :first {
    color: green;

    @top-left {
      content: "foo";
      color: blue;
    }
    @top-right {
      content: "bar";
    }
  }

The grammar indicates at a semicolon must follow either a declaration or a margin, meaning that a semicolon should be inserted in this example just before @top-right.

Is this an error in the grammar or the example?

-Nicholas

______________________________________________
Commander Lock: "Dammit Morpheus, not everyone believes what you believe!"
Morpheus: "My beliefs do not require them to."
Received on Friday, 17 December 2010 23:48:15 GMT

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