Device type

Syntax

Class
Properties
screen:
@media screen { ... }
print:
@media print { ... }
speech:
@media speech { ... }

Specification test cases

The test cases below are imported from the Turbo CSS specification. They have been executed upon loading this page.
Set the text color to black on screen media.
t1 screen:color-black
@media screen { .t1.screen\:color-black { color: #000000; } }
Underline text on print media.
t1 print:underline
@media print { .t1.print\:underline { text-decoration: underline; } }
Hide text on speech media.
t1 speech:hidden
@media speech { .t1.speech\:hidden { display: none; } }