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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/invalidation/inherit-through-insertion-point-v0.html

Issue 2258793003: Use LocalStyleChange for insertion point inheritance propagation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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/Source/core/dom/shadow/InsertionPoint.cpp » ('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/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script>
4 <style>
5 #stopInherit { color: green }
6 </style>
7 <div id="host">
8 <div id="stopInherit">
9 <span></span>
10 <span></span>
11 <span></span>
12 <span></span>
13 <span></span>
14 </div>
15 </div>
16 <script>
17 test(() => {
18 var root = host.createShadowRoot();
19 root.innerHTML = '<div id="shadowDiv"><content></content></div>';
20 host.offsetTop;
21 root.querySelector("#shadowDiv").style.color = "red";
22 assert_true(!!window.internals, "This test only works with --expose-inte rnals-for-testing.");
23 assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 2, " Inheritance propagation should stop at #stopInherit element.");
24 }, "Inheritance propagation should not cause full subtree recalcs in flat-tr ee.");
25 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/shadow/InsertionPoint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698