Closed
Description
At the very bottom of section 8.1. Defining Block Contents: the <declaration-list>
, <rule-list>
, and <stylesheet>
productions, I understand from Example 15 that nested media queries are invalid:
For example, the
@media
rule accepts anything that can be placed in a stylesheet, except more@media
rules. As such, its grammar is:
@media <media-query-list> { <stylesheet> }
It additionally defines a restriction that the
<stylesheet>
can not contain@media
rules, which causes them to be dropped from the outer rule’s value if they appear.
I may be confused because both sentences mean the same thing to me.