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

Side by Side Diff: LayoutTests/fast/css/media-rule-no-whitespace.html

Issue 14065029: Improved parse error handling for CSSMQ. (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 <style> 3 <style>
4 @media all and(min-width: 2px) { #styled { color: green; } } 4 #styled { color: green; }
5 @media all and(min-width: 2px) { #styled { color: red; } }
5 @media all and(max-width: 1px) { #styled { color: red; } } 6 @media all and(max-width: 1px) { #styled { color: red; } }
6 </style> 7 </style>
7 <script> 8 <script>
8 function runTest() { 9 function runTest() {
9 if (window.testRunner) 10 if (window.testRunner)
10 testRunner.dumpAsText(); 11 testRunner.dumpAsText();
11 12
12 var element = document.getElementById('styled'); 13 var element = document.getElementById('styled');
13 var computedColor = window.getComputedStyle(element).color; 14 var computedColor = window.getComputedStyle(element).color;
14 if (computedColor === "rgb(0, 128, 0)") 15 if (computedColor === "rgb(0, 128, 0)")
15 document.getElementById("result").textContent = "SUCCESS"; 16 document.getElementById("result").textContent = "SUCCESS";
16 else 17 else
17 document.getElementById("result").textContent = "FAILURE: " + computedColor; 18 document.getElementById("result").textContent = "FAILURE: " + computedColor;
18 } 19 }
19 </script> 20 </script>
20 </head> 21 </head>
21 <body onload="runTest();"> 22 <body onload="runTest();">
22 <div id="styled">This should be green</div> 23 <div id="styled">This should be green</div>
23 <div id="result">FAILURE</div> 24 <div id="result">FAILURE</div>
24 </body> 25 </body>
25 </html> 26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698