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

Side by Side Diff: LayoutTests/fast/css/invalidation/checked-pseudo.html

Issue 540533004: Use style invalidation for more pseudo classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 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
« no previous file with comments | « no previous file | LayoutTests/fast/css/invalidation/checked-pseudo-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
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <style>
4 :checked { background-color: green }
5 input + div { color: pink }
6 </style>
7 <input id="checkbox" type="checkbox"></input>
8 <div>
9 <div></div>
10 <div></div>
11 <div></div>
12 <div></div>
13 </div>
14 <script>
15 description("Use descendant invalidation set for :checked pseudo class.")
16
17 var transparent = "rgba(0, 0, 0, 0)";
18 var green = "rgb(0, 128, 0)";
19
20 shouldBe("getComputedStyle(checkbox, '').backgroundColor", "transparent");
21
22 checkbox.offsetTop; // Force recalc.
23
24 checkbox.checked = true;
25
26 if (window.internals)
27 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
28
29 shouldBe("getComputedStyle(checkbox, '').backgroundColor", "green");
30 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/invalidation/checked-pseudo-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698