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

Side by Side Diff: LayoutTests/fast/css/dynamic-class-backdrop-pseudo.html

Issue 195093004: Use invalidation sets for some pseudo elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added recalc count checks to tests. Created 6 years, 9 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
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <style>
4 .a .b::backdrop { background-color: green; }
5 </style>
6 <div id="t">
7 <dialog class="b" id="dialog"><span></span><span></span><span></span></dialo g>
8 </div>
9 <script>
10 description("Change class affecting ::backdrop style");
11
12 var dialog = document.getElementById("dialog");
13
14 dialog.showModal();
15
16 var green = 'rgb(0, 128, 0)';
17
18 shouldNotBe("getComputedStyle(dialog, '::backdrop').backgroundColor", "green");
19
20 document.body.offsetLeft;
21 document.getElementById("t").className = "a";
22
23 if (window.internals)
24 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "3");
25
26 shouldBe("getComputedStyle(dialog, '::backdrop').backgroundColor", "green");
27
28 dialog.close();
29 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698