3 <title>CSS3 media query test: stylesheet media.mediaText = parsing, media descriptor fallback in document.StyleSheet.media.mediaText
</title>
4 <link rel=
"help" href=
"http://www.w3.org/TR/css3-mediaqueries/">
6 <!-- the media property of stylesheet below will be manipulated, and the manipulation should fail. -->
7 <style type=
"text/css">
9 p#result
{ color: blue
}
11 @media screen and resolution
> 40dpi {
12 /* media query with syntax error should fail */
13 p#result
{ color: red
}
19 document
.styleSheets
[0].media
.mediaText
= "screen and resolution > 40dpi";
20 document
.getElementById("result").innerHTML
= "This text should neither be blue nor red.";
26 <body onload=
"test()">
27 <p id=
"result">Failure: test not run
</p>