[csswg-drafts] [css-syntax-3] Fix outdated example featuring nested media queries (#6958)

cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-syntax-3] Fix outdated example featuring nested media queries ==
At the very bottom of section [8.1. Defining Block Contents: the <declaration-list>, <rule-list>, and <stylesheet> productions](https://drafts.csswg.org/css-syntax/#declaration-rule-list), 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 means the same thing to me.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6958 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 17 January 2022 10:34:31 UTC