W3C home > Mailing lists > Public > www-style@w3.org > August 2001

At-rules (@-rules) in @media blocks

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 10 Aug 2001 12:21:22 -0400
Message-Id: <200108101621.MAA00645@dizzy.mit.edu>
To: www-style@w3.org
I'm a bit confused about the use of at-rules in @media blocks...

The CSS2 grammar says:

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

thus implying that at-rules are not allowed in @media blocks.

However, the main body of the specification itself never says this.  It
just says that "a set of rules" is allowed inside an @media block.....
In particular, it seems to me that @page and @font-face rules should be
acceptable in @media blocks.

Am I just missing something?

Boris
-----------------
617-764-2453
-----------------
"Peace is our profession."
-- Motto of Strategic Air Command
Received on Friday, 10 August 2001 12:21:23 GMT

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