Re: Incomplete CSS2 grammar specification?

> 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" [...].

This is the source of some confusion. Briefly, the spec's text is generally
silent about whether @rules are allowed in @media, and while everyone first
assumes that they are, as you point out the grammar says they are not. This
will most likely be relaxed in CSS3.

This is listed on the www-style past suggestions list, under "open issues":
   http://www.bath.ac.uk/%7Epy8ieh/internet/wwwstyle.html

--
Ian Hickson

Received on Monday, 29 March 1999 16:01:10 UTC