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

Side by Side Diff: LayoutTests/fast/css/invalidation/targeted-class-content-pseudo.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 <div id="host1"> 3 <div id="host1">
4 <div id="r1"> 4 <div id="r1">
5 <div></div> 5 <div></div>
6 <div></div> 6 <div></div>
7 </div> 7 </div>
8 <div></div> 8 <div></div>
9 <div></div> 9 <div></div>
10 </div> 10 </div>
(...skipping 30 matching lines...) Expand all
41 41
42 shouldBe("getComputedStyle(r1, null).backgroundColor", "green"); 42 shouldBe("getComputedStyle(r1, null).backgroundColor", "green");
43 43
44 shouldBe("getComputedStyle(r2, null).backgroundColor", "transparent"); 44 shouldBe("getComputedStyle(r2, null).backgroundColor", "transparent");
45 45
46 document.body.offsetTop; // Force style recalc. 46 document.body.offsetTop; // Force style recalc.
47 var i2 = host2.shadowRoot.getElementById("i2"); 47 var i2 = host2.shadowRoot.getElementById("i2");
48 i2.className = "c2"; 48 i2.className = "c2";
49 49
50 if (window.internals) 50 if (window.internals)
51 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "4"); 51 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "3");
52 52
53 shouldBe("getComputedStyle(r2, null).backgroundColor", "green"); 53 shouldBe("getComputedStyle(r2, null).backgroundColor", "green");
54 54
55 shouldBe("getComputedStyle(r3, null).backgroundColor", "transparent"); 55 shouldBe("getComputedStyle(r3, null).backgroundColor", "transparent");
56 56
57 document.body.offsetTop; // Force style recalc. 57 document.body.offsetTop; // Force style recalc.
58 var i3 = host3.shadowRoot.getElementById("i3"); 58 var i3 = host3.shadowRoot.getElementById("i3");
59 i3.className = "c3"; 59 i3.className = "c3";
60 60
61 if (window.internals) 61 if (window.internals)
62 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); 62 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
63 63
64 shouldBe("getComputedStyle(r3, null).backgroundColor", "green"); 64 shouldBe("getComputedStyle(r3, null).backgroundColor", "green");
65 65
66 </script> 66 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698