Problem with @page within @media

Hello, I've discovered some anomalies with the CSS2 grammer that I need
clarified.

1. The CSS2 grammar in Appendix D of the CSS2 spec (
http://www.w3.org/TR/REC-CSS2/grammar.html#q1 ) does not allow @page within
an @media, while the forward-compatible parsing rules in section 4.1.1
(http://www.w3.org/TR/REC-CSS2/syndata.html#tokenization) seem to allow
nested at-rules.  If I can't contain an @page within an @media how am I
supposed to specify seperate page margins for different paged-mediums?
There was a suggestion in
http://lists.w3.org/Archives/Public/www-style/1998Nov/0002.html that it
could be done by having different style sheets for each media, but this
isn't ideal. 
The other thing is that the DOM is quite capable of containing page rules
within media rules.

So, is it valid to have a @page within a @media or not?  If not, is the only
way of doing it to have different style sheets for each media ?  Is there a
better way ?

Oh, and another thing, in the forward-compatible parsing rules in section
4.1.1 it specifies a DELIM as 'any other character',  does this mean that an
'any' segment may consist of a single character of any type or does it mean
that no one knew what the DELIM should be when the spec was written ?  The
DELIM needs to at least be a ',' I think otherwise a selector cannot contain
a comma seperated list of items (ie. H1,H3,H4.blah { blah : blah } )  I
think it should also include ':' for pseudo elements, but this can effect
what is also allowed in the 'value' segment and I'm not sure if that is
valid.

Cheers,
Danny Poulson.

Received on Tuesday, 29 February 2000 11:55:44 UTC