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

Side by Side Diff: LayoutTests/fast/css/nth-child-no-mutations.html

Issue 198783003: Recalc sibling styles for forward positional rules on mutations only. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased. 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
« no previous file with comments | « no previous file | LayoutTests/fast/css/nth-child-no-mutations-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 #test :nth-child(odd) { color: green; }
5 #test :not(.a) { color: rgb(200, 200, 200); }
6 </style>
7 <div id="test">
8 <div></div>
9 <div></div>
10 <div></div>
11 <div></div>
12 <div></div>
13 <div></div>
14 <div></div>
15 <div></div>
16 </div>
17 <script>
18 description("Not necessary to recalc sibling styles for :nth-child when no mutat ions have happened.");
19
20 if (window.internals)
21 internals.updateStyleAndReturnAffectedElementCount();
esprehn 2014/03/18 09:31:37 Just do document.body.offsetTop if you're going to
rune 2014/03/18 11:01:47 Done.
22
23 var testElm = document.querySelector("#test div");
24 testElm.className = "a";
25
26 if (window.internals)
27 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
28
29 var green = "rgb(0, 128, 0)";
30 shouldBe("getComputedStyle(testElm, null).color", "green");
31 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/nth-child-no-mutations-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698