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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/invalidation/content-pseudo.html

Issue 1544893003: Don't add rule features across ::content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused method Created 4 years, 11 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 | third_party/WebKit/LayoutTests/fast/css/invalidation/content-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 <host id="host">
4 <div>
5 <div id="green" class="b">This text should be green</div>
6 </div>
7 </host>
8 <script>
9 description("No need to invalidate for selectors right of ::content as ::content causes subtree invalidation.");
10
11 var root = host.createShadowRoot();
12 root.innerHTML = '<style>.a ::content .b { color: green }</style><div id="outer" ><div class="b"><div class="b"><div class="b"><content/></div></div></div></div> ';
13
14 shouldBeEqualToString("getComputedStyle(green).color", "rgb(0, 0, 0)");
15
16 host.offsetTop; // force recalc
17
18 root.querySelector("#outer").className = "a";
19 if (window.internals)
20 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2");
21
22 shouldBeEqualToString("getComputedStyle(green).color", "rgb(0, 128, 0)");
23 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/invalidation/content-pseudo-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698