@media
with Negated Media TypeThis text will be green if the rule has been applied.
@media not all {
#testElement {
color: #00cc00;
}
}
Because all media types belong to the all
family, specifying a media of not all
should insure that the rule should never be applied. Standards-compliant browsers will not apply this rule (so the text in the example block should be red in compliant browsers).