Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / media / mq-js-stylesheet-media-01.html
blob3e63c6e545b9bc4c4fe1e45350f01b43a84c28aa
1 <html>
2 <head>
3 <title>CSS3 media query test: stylesheet media.mediaText property inspection.</title>
4 <link rel="help" href="http://www.w3.org/TR/css3-mediaqueries/#syntax">
6 <style type="text/css" media="braille, media with error, print and (color) and (grid:0), tty resolution > 600px">
7 #result { color: red }
8 </style>
10 <script>
11 function test() {
12 re = document.getElementById("result");
13 re.innerHTML = "started";
14 re.innerHTML = document.styleSheets[0].media.mediaText;
16 </script>
18 </head>
19 <body onload="test()">
20 <p>The text below should not be red and it should contain "braille, not all, print and (color) and (grid: 0), not all".</p>
21 <p id="result">Failure: test not run</p>
22 </body>
23 </html>