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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/outline-currentcolor.html

Issue 2081633002: Reject invert for outline-color at parse time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: New attempt. Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/outline-currentcolor-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <style> 1 <style>
2 #test3 { color: blue; } 2 #test3 { color: blue; }
3 </style> 3 </style>
4 <div id="test-container"> 4 <div id="test-container">
5 <div id="test1" id="one" style="color:green; outline: solid 1em currentColor"> </div> 5 <div id="test1" id="one" style="color:green; outline: solid 1em currentColor"> </div>
6 <div id="test2" id="two" style="color:red; outline: solid 1em currentColor"></ div> 6 <div id="test2" id="two" style="color:red; outline: solid 1em currentColor"></ div>
7 <div style="color:green"> 7 <div style="color:green">
8 <div id="test3" style="color:currentColor; outline: solid 1em currentColor"> </div> 8 <div id="test3" style="color:currentColor; outline: solid 1em currentColor"> </div>
9 </div> 9 </div>
10 <div id="test4" id="four" style="color:green"></div>
10 </div> 11 </div>
11 <script src="../../resources/js-test.js"></script> 12 <script src="../../resources/js-test.js"></script>
12 <script> 13 <script>
13 description('Test that outline-color is non-inherit and currentColor is handled correctly.'); 14 description('Test that outline-color is non-inherit and currentColor is handled correctly.');
14 var test1 = document.getElementById("test1"); 15 var test1 = document.getElementById("test1");
15 var test2 = document.getElementById("test2"); 16 var test2 = document.getElementById("test2");
16 var test3 = document.getElementById("test3"); 17 var test3 = document.getElementById("test3");
18 var test3 = document.getElementById("test4");
17 test2.style.color = "green"; 19 test2.style.color = "green";
18 shouldBeEqualToString('getComputedStyle(test1).outlineColor', 'rgb(0, 128, 0)'); 20 shouldBeEqualToString('getComputedStyle(test1).outlineColor', 'rgb(0, 128, 0)');
19 shouldBeEqualToString('getComputedStyle(test2).outlineColor', 'rgb(0, 128, 0)'); 21 shouldBeEqualToString('getComputedStyle(test2).outlineColor', 'rgb(0, 128, 0)');
20 shouldBeEqualToString('getComputedStyle(test3).outlineColor', 'rgb(0, 128, 0)'); 22 shouldBeEqualToString('getComputedStyle(test3).outlineColor', 'rgb(0, 128, 0)');
23 shouldBeEqualToString('getComputedStyle(test4).outlineColor', 'rgb(0, 128, 0)');
21 </script> 24 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/outline-currentcolor-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698