W3C home > Mailing lists > Public > www-style@w3.org > January 2011

Grammar error in CSS3 Paged Media

From: Nicholas Zakas <nzakas@yahoo-inc.com>
Date: Tue, 11 Jan 2011 12:09:51 -0800
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <B66541E954ECF146AD8CA69D34A283FF2740A91345@SP2-EX07VS02.ds.corp.yahoo.com>
Hi all,

I know this was flagged a while back, but here it is again for reference. This piece of the grammar for CSS3 Paged Media is incorrect:


    PAGE_SYM S* IDENT? pseudo_page? S*

    '{' S* [ declaration | margin ]? [ ';' S* [ declaration | margin ]? ]* '}' S*


This specifies that there should be a semicolon after each margin production, meaning that the following is invalid:

@page :first {

    color: green;

    @top-left {

        content: "foo";

        color: blue;


    @top-right {

        content: "bar";



According to the grammar, there should be a semicolon prior to "@top-right", which clearly is incorrect given the rest of the spec.


Commander Lock: "Dammit Morpheus, not everyone believes what you believe!"
Morpheus: "My beliefs do not require them to."
Received on Tuesday, 11 January 2011 20:10:49 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:54 UTC