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

Side by Side Diff: LayoutTests/fast/css/recalc-direct-adjacent-001.html

Issue 155283002: Count consecutive direct adjacent selectors. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/css/recalc-direct-adjacent-001-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 body { color: black; }
5 .match+div div+div { color: green; }
6 </style>
7 <div>
8 <div id="top"></div>
9 <div>
10 <div></div>
11 <div id="green"></div>
12 </div>
13 <div>
14 <div></div>
15 <div></div>
16 <div></div>
17 <div></div>
18 </div>
19 </div>
20 <script>
21 if (window.testRunner)
22 testRunner.dumpAsText();
23
24 description("Check that we don't do unnecessary style recalcs for sibling trees. ");
25
26 if (window.internals)
27 internals.updateStyleAndReturnAffectedElementCount();
28
29 document.getElementById("top").className = "match";
30
31 if (window.internals)
32 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "4");
33
34 shouldBe("getComputedStyle(document.getElementById('green'), null).color", "'rgb (0, 128, 0)'");
35
36 successfullyParsed = true;
37 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/recalc-direct-adjacent-001-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698