RE: [CSS2.1] Grammar for @media versus general block parsing

Supporting such a feature in CSS 3 won't be a problem. The consideration
here is how a CSS 2.1 standards compliant parsing engine should treat the
rule given the current wording of the specification.

I would still desire some clarification that would trump the current
behavior of Opera and IE 8. When considering a pure CSS 2.1 parsing
context. If at-rules are invalid, but parse-able then a text clarification
should be added to the specification and both Opera and IE 8 would
have to take changes to support such behavior.

Justin Rogers [MSFT]

-----Original Message-----
From: Bjoern Hoehrmann []
Sent: Tuesday, June 24, 2008 9:04 AM
To: Justin Rogers
Subject: Re: [CSS2.1] Grammar for @media versus general block parsing

* Justin Rogers wrote:
>So the question is, should the grammar in this case be read strictly
>since it clearly points out a semantic for the @media block, and thus
>only allow rule-sets making the Opera/IE 8 behavior correct? Or should
>the parsers allow any statement within the block including the at-rule?

CSS Level 3 allows using e.g. @page as child of @media, so you will end
up implementing the latter behavior either way.
Björn Höhrmann · ·
Weinh. Str. 22 · Telefon: +49(0)621/4309674 ·
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 ·

Received on Wednesday, 25 June 2008 02:53:46 UTC