Skip to content

[css-syntax-3] Fix outdated example featuring nested media queries #6958

Closed
@cdoublev

Description

@cdoublev

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions