Index: third_party/WebKit/LayoutTests/fast/css/invalidation/inherit-through-insertion-point-v0.html |
diff --git a/third_party/WebKit/LayoutTests/fast/css/invalidation/inherit-through-insertion-point-v0.html b/third_party/WebKit/LayoutTests/fast/css/invalidation/inherit-through-insertion-point-v0.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3955edca9c02f1d689775902222e0f9db4327926 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/css/invalidation/inherit-through-insertion-point-v0.html |
@@ -0,0 +1,25 @@ |
+<!DOCTYPE html> |
+<script src="../../../resources/testharness.js"></script> |
+<script src="../../../resources/testharnessreport.js"></script> |
+<style> |
+ #stopInherit { color: green } |
+</style> |
+<div id="host"> |
+ <div id="stopInherit"> |
+ <span></span> |
+ <span></span> |
+ <span></span> |
+ <span></span> |
+ <span></span> |
+ </div> |
+</div> |
+<script> |
+ test(() => { |
+ var root = host.createShadowRoot(); |
+ root.innerHTML = '<div id="shadowDiv"><content></content></div>'; |
+ host.offsetTop; |
+ root.querySelector("#shadowDiv").style.color = "red"; |
+ assert_true(!!window.internals, "This test only works with --expose-internals-for-testing."); |
+ assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 2, "Inheritance propagation should stop at #stopInherit element."); |
+ }, "Inheritance propagation should not cause full subtree recalcs in flat-tree."); |
+</script> |