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

Side by Side Diff: LayoutTests/fast/css/invalidation/targeted-class-shadow-combinator.html

Issue 1317533002: Sibling invalidation sets (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review feedback Created 5 years, 3 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 <!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 .t1 #host1::shadow .match { background-color: green; } 4 .t1 #host1::shadow .match { background-color: green; }
5 .t2 /deep/ .match { background-color: green; } 5 .t2 /deep/ .match { background-color: green; }
6 </style> 6 </style>
7 <div id="t1"> 7 <div id="t1">
8 <div id="host1"></div> 8 <div id="host1"></div>
9 <div></div> 9 <div></div>
10 </div> 10 </div>
(...skipping 18 matching lines...) Expand all
29 var transparent = "rgba(0, 0, 0, 0)"; 29 var transparent = "rgba(0, 0, 0, 0)";
30 var green = "rgb(0, 128, 0)"; 30 var green = "rgb(0, 128, 0)";
31 31
32 shouldBe("getComputedStyle(match1, null).backgroundColor", "transparent"); 32 shouldBe("getComputedStyle(match1, null).backgroundColor", "transparent");
33 shouldBe("getComputedStyle(match2, null).backgroundColor", "transparent"); 33 shouldBe("getComputedStyle(match2, null).backgroundColor", "transparent");
34 34
35 document.body.offsetLeft; // force style recalc. 35 document.body.offsetLeft; // force style recalc.
36 36
37 document.getElementById("t1").className = "t1"; 37 document.getElementById("t1").className = "t1";
38 if (window.internals) 38 if (window.internals)
39 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2"); 39 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
40 shouldBe("getComputedStyle(match1, null).backgroundColor", "green"); 40 shouldBe("getComputedStyle(match1, null).backgroundColor", "green");
41 41
42 document.body.offsetLeft; // force style recalc. 42 document.body.offsetLeft; // force style recalc.
43 43
44 document.getElementById("t2").className = "t2"; 44 document.getElementById("t2").className = "t2";
45 if (window.internals) 45 if (window.internals)
46 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2"); 46 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
47 shouldBe("getComputedStyle(match2, null).backgroundColor", "green"); 47 shouldBe("getComputedStyle(match2, null).backgroundColor", "green");
48 </script> 48 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698