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

@page pseudos in the CSS2.1 grammar

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 30 Dec 2002 03:53:25 -0500
Message-Id: <200212300853.DAA16577@cathedral-seven.mit.edu>
To: www-style@w3.org

The CSS2.1 grammar has:

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

This means that

@page :first { size: landscape }


@page :left { size: landscape }

are both fine, while

@page :first:left { size: portrait }

is not valid.

I'm hoping that this is just an oversight and that the "pseudo_page?" was
supposed to be a "pseudo_page*"...  Selecting the first page in cases when it's
the left page could be quite useful, and normal selectors are not restricted to
having only a single pseudo-class attached to them.
Under the most rigorously controlled conditions of pressure,
temperature, volume, humidity, and other variables, the
organism will do as it damn well pleases.
Received on Monday, 30 December 2002 03:53:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:18 GMT