7.2.1 The @media rule

Chapter 7 - Media types - 7.2.1 The @media rule

Go to the relevant page of the specification.

at-rule-013 (invalid)
Ignoring at-rules inside @media blocks
At-rules inside @media blocks are ignored up to up to the end of the block that contains the invalid at-keyword, or up to and including the next semicolon (;) or up to and including the next block ({...}), whichever comes first.
matching-brackets-001 (invalid)
Matching brackets and quotes for @rules
User agents must handle unexpected tokens encountered while parsing an at-rule by reading until the end of the statement, while observing the rules for matching pairs of brackets and quotes, and correctly handling escapes.
matching-brackets-002 (invalid)
Matching brackets and quotes for declarations
User agents must handle unexpected tokens encountered while parsing a declaration by reading until the end of the statement, while observing the rules for matching pairs of brackets and quotes, and correctly handling escapes.
matching-brackets-003 (invalid)
Matching brackets and quotes for selectors
User agents must handle unexpected tokens encountered while parsing a declaration by reading until the end of the statement, while observing the rules for matching pairs of brackets and quotes, and correctly handling escapes.