CSS2.1 Test Suite

Media types (21 tests)

Test Refs Flags Info
+ 7 Media types
media-dependency-001 @media and target mediums
  • @media with a target medium applies styles on that target medium (screen).
media-dependency-002 @import and target mediums
  • @media with a target medium applies styles on that target medium (screen).
media-dependency-003 Link tags and target mediums
  • Link with a target medium applies styles on that target medium (screen).
media-dependency-004 Case-insensitive media types
  • Media types are case-insensitive.
media-dependency-005 Invalid Ignoring bad media types with @import
  • User agent ignores media types it does not understand with @import.
media-dependency-006 Invalid Ignoring bad media types with @media
  • User agent ignores media types it does not understand with @media.
media-dependency-007 Non-matching target mediums
  • The @media block does not apply because it does not match the target medium.
media-dependency-008 Non-matching target mediums and @import
  • The @import command does not apply because it does not match the target medium.
media-dependency-009 Matching the 'All' target medium
  • The 'all' media type applies to the screen medium.
media-dependency-010 Non-matching target mediums (braille)
  • The 'braille' media type does not apply to the screen medium.
media-dependency-011 Non-matching target mediums (embossed)
  • The 'embossed' media type does not apply to the screen medium.
media-dependency-012 Non-matching target mediums (handheld)
  • The 'handheld' media type does not apply to the screen medium.
media-dependency-013 Non-matching target mediums (projection)
  • The 'projection' media type does not apply to the screen medium.
media-dependency-014 Non-matching target mediums (speech)
  • The 'speech' media type does not apply to the screen medium.
media-dependency-015 Non-matching target mediums (tty)
  • The 'tty' media type does not apply to the screen medium.
media-dependency-016 Non-matching target mediums (tv)
  • The 'tv' media type does not apply to the screen medium.
media-dependency-017 Multiple target mediums
  • An '@media' rule specifies the target media types separated by commas.
+ 7.1 Introduction to media types
+ 7.2 Specifying media-dependent style sheets
+ 7.2.1 The @media rule
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.
+ 7.3 Recognized media types
+ 7.3.1 Media groups