blob: 9bda1e151a2076ed7cbf428343959632fb768449 [file] [log] [blame]
<title>CSS3 media query test: stylesheet media.mediaText = parsing, media descriptor fallback in</title>
<link rel="help" href="">
<!-- the media property of stylesheet below will be manipulated, and the manipulation should fail. -->
<style type="text/css">
p#result { color: blue }
@media screen and resolution > 40dpi {
/* media query with syntax error should fail */
p#result { color: red }
function test() {
document.styleSheets[0].media.mediaText = "screen and resolution > 40dpi";
document.getElementById("result").innerHTML = "This text should neither be blue nor red.";
<body onload="test()">
<p id="result">Failure: test not run</p>