CSS Media Type Tests

Skip to Test Cases | Skip to Style Sheets | Skip to UA Support Charts

These tests are designed to indicate the support for using stylesheets for the correct media types. User Agents using these tests should only be successful for their applicable media type(s).

These tests are available in multiple formats, delivered as different MIME Types. For each MIME Type and !DOCTYPE, the test is available as an all in one test and as individual tests. The individual tests are included to determine whether any UAs resort to using a different media type in the absence of their correct media type. eg. A tv device may have been designed to incorrectly fall back to using the screen media type when a tv stylesheet is not available.

XHTML documents served as text/html will not be parsed as XML, and thus the <?xml-stylesheet?> PI should not be processed by the UA

Test Cases

!DOCTYPE text/html application/html+xml text/xml
All Media Types
all
aural
braille
embossed
handheld
print
projection
screen
tty
tv

Style Sheets

Media Type <link> @import <?xml-stylesheet?>
all link-all.css import-all.css xml-stylesheet-all.css
aural link-aural.css import-aural.css xml-stylesheet-aural.css
braille link-braille.css import-braille.css xml-stylesheet-braille.css
embossed link-embossed.css import-embossed.css xml-stylesheet-embossed.css
handheld link-handheld.css import-handheld.css xml-stylesheet-handheld.css
print link-print.css import-print.css xml-stylesheet-print.css
projection link-projection.css import-projection.css xml-stylesheet-projection.css
screen link-screen.css import-screen.css xml-stylesheet-screen.css
tty link-tty.css import-tty.css xml-stylesheet-tty.css
tv link-tv.css import-tv.css xml-stylesheet-tv.css

User Agent Support Charts

Submit your own results: Download the template, and email me.

aural

No Tests

braille

No Tests

embossed

No Tests

handheld

print

projection

No Tests

screen

tty

No Tests

tv

No Tests