Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Side by Side Diff: LayoutTests/fast/media/mq-js-stylesheet-media-02.html

Issue 14578010: Fixing inconsistency with the media query spec and other browsers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <title>CSS3 media query test: stylesheet media property enumeration.</title> 3 <title>CSS3 media query test: stylesheet media property enumeration.</title>
4 <link rel="help" href="http://www.w3.org/TR/css3-mediaqueries/#syntax" /> 4 <link rel="help" href="http://www.w3.org/TR/css3-mediaqueries/#syntax" />
5 <link rel="help" href="http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html" /> 5 <link rel="help" href="http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html" />
6 <link rel="help" href="http://www.w3.org/TR/1998/REC-html40-19980424/types.html# h-6.13" />
6 7
7 <style type="text/css" media="braille, media with error, screen and (color) and (grid:0), tty resolution > 600px"> 8 <style type="text/css" media="braille, media with error, screen and (color) and (grid:0), tty resolution > 600px">
8 #result { color: green; } 9 #result { color: green; }
9 </style> 10 </style>
10 11
11 <script language="javascript"> 12 <script language="javascript">
12 function test() { 13 function test() {
13 re = document.getElementById("result"); 14 re = document.getElementById("result");
14 re.innerHTML = "started"; 15 re.innerHTML = "started";
15 re.innerHTML = document.styleSheets[0].media.item(0) 16 re.innerHTML = document.styleSheets[0].media.item(0)
16 + ", " + document.styleSheets[0].media.item(1) 17 + ", " + document.styleSheets[0].media.item(1)
17 + ", " + document.styleSheets[0].media.item(2) 18 + ", " + document.styleSheets[0].media.item(2)
18 + ", " + document.styleSheets[0].media.item(3) ; 19 + ", " + document.styleSheets[0].media.item(3) ;
19 } 20 }
20 </script> 21 </script>
21 22
22 </head> 23 </head>
23 <body onload="test()"> 24 <body onload="test()">
24 <p> The text below should be green and contain "braille, media, screen and (colo r) and (grid: 0), tty". </p> 25 <p> The text below should be green and contain "braille, media, screen and (colo r) and (grid: 0), tty". </p>
25 <p id="result">Failure: test not run</p> 26 <p id="result">Failure: test not run</p>
26 </body> 27 </body>
27 </html> 28 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/media/mq-js-media-except-03-expected.html ('k') | LayoutTests/fast/media/mq-parsing.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698