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

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

Issue 16325005: Remove the Media Query "forward compatibly syntax" support in alignment with HTML5 spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
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 <link rel="help" href="http://www.w3.org/TR/1998/REC-html40-19980424/types.html# h-6.13" />
7 7
8 <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">
9 #result { color: green; } 9 #result { color: green; }
10 </style> 10 </style>
11 11
12 <script language="javascript"> 12 <script language="javascript">
13 function test() { 13 function test() {
14 re = document.getElementById("result"); 14 re = document.getElementById("result");
15 re.innerHTML = "started"; 15 re.innerHTML = "started";
16 re.innerHTML = document.styleSheets[0].media.item(0) 16 re.innerHTML = document.styleSheets[0].media.item(0)
17 + ", " + document.styleSheets[0].media.item(1) 17 + ", " + document.styleSheets[0].media.item(1)
18 + ", " + document.styleSheets[0].media.item(2) 18 + ", " + document.styleSheets[0].media.item(2)
19 + ", " + document.styleSheets[0].media.item(3) ; 19 + ", " + document.styleSheets[0].media.item(3) ;
20 } 20 }
21 </script> 21 </script>
22 22
23 </head> 23 </head>
24 <body onload="test()"> 24 <body onload="test()">
25 <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, not all, screen and (co lor) and (grid: 0), not all". </p>
26 <p id="result">Failure: test not run</p> 26 <p id="result">Failure: test not run</p>
27 </body> 27 </body>
28 </html> 28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698