Grammar error in CSS3 Paged Media

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:

    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.

-Nicholas

______________________________________________
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