Chromium Code Reviews

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/invalidation/sub-selector-adjacent-cancellation.html

Issue 1317533002: Sibling invalidation sets (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Oilpan Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script> 2 <script src="../../../resources/js-test.js"></script>
3 <style> 3 <style>
4 :not(.x).a + #b { background-color: green } 4 :not(.x).a + #b { background-color: green }
5 </style> 5 </style>
6 <div id="a"></div> 6 <div id="a"></div>
7 <div id="b"></div> 7 <div id="b"></div>
8 <script> 8 <script>
9 description("Negated selector should not clear adjacent combinator flag.") 9 description("Negated selector should not clear adjacent combinator flag.")
10 10
11 var transparent = "rgba(0, 0, 0, 0)"; 11 var transparent = "rgba(0, 0, 0, 0)";
12 var green = "rgb(0, 128, 0)"; 12 var green = "rgb(0, 128, 0)";
13 13
14 shouldBe("getComputedStyle(b).backgroundColor", "transparent"); 14 shouldBe("getComputedStyle(b).backgroundColor", "transparent");
15 15
16 a.offsetTop; // Force recalc. 16 a.offsetTop; // Force recalc.
17 a.className = "a"; 17 a.className = "a";
18 18
19 if (window.internals) 19 if (window.internals)
20 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2"); 20 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
21 else 21 else
22 a.offsetTop; // Force recalc (crbug.com/436064) 22 a.offsetTop; // Force recalc (crbug.com/436064)
23 23
24 shouldBe("getComputedStyle(b).backgroundColor", "green"); 24 shouldBe("getComputedStyle(b).backgroundColor", "green");
25 </script> 25 </script>
OLDNEW

Powered by Google App Engine