W3C home > Mailing lists > Public > www-style@w3.org > March 1999

Incomplete CSS2 grammar specification?

From: David Schweinsberg <david@steadystate.co.uk>
Date: Mon, 29 Mar 1999 18:51:48 +0100
To: "WWW-Style" <www-style@w3.org>
Message-ID: <000401be7a0c$d18e9050$9380989e@tauceti>
Hi

The CSS2 grammar specification defines the following production:

media
 : MEDIA_SYM S* medium [ ',' S* medium ]* '{' S* ruleset* '}' S*
 ;

Yet my understanding from the spec is that "@media" can also contain "at
keywords", as demonstrated in the HTML 4.0 sample style sheet (fragment):

@media print {
 @page         { margin: 10% }
 H1, H2, H3,
 H4, H5, H6    { page-break-after: avoid; page-break-inside: avoid }
 BLOCKQUOTE,
 PRE           { page-break-inside: avoid }
 UL, OL, DL    { page-break-before: avoid }
}

So I'm assuming the grammar is incomplete, or am I missing something?

Regards,
David

David Schweinsberg

Steady State Software Ltd.
43 Winslow Road, Wingrave, Aylesbury, Bucks, HP22 4PS, UK
Tel: +44 (0)1296 681840 Fax: +44 (0)1296 682472
URL: http://www.steadystate.com
Received on Monday, 29 March 1999 12:53:36 GMT

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