summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/media/mq-js-stylesheet-media-01.html
blob: 3e63c6e545b9bc4c4fe1e45350f01b43a84c28aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<html>
<head>
<title>CSS3 media query test: stylesheet media.mediaText property inspection.</title>
<link rel="help" href="http://www.w3.org/TR/css3-mediaqueries/#syntax">

<style type="text/css" media="braille, media with error, print and (color) and (grid:0), tty resolution > 600px">
#result { color: red }
</style>

<script>
function test() {
    re = document.getElementById("result");
    re.innerHTML = "started";
    re.innerHTML = document.styleSheets[0].media.mediaText;
}
</script>

</head>
<body onload="test()">
<p>The text below should not be red and it should contain "braille, not all, print and (color) and (grid: 0), not all".</p>
<p id="result">Failure: test not run</p>
</body>
</html>