Index: LayoutTests/fast/css/invalidation/explicit-inheritance-non-inherited.html |
diff --git a/LayoutTests/fast/css/invalidation/explicit-inheritance-non-inherited.html b/LayoutTests/fast/css/invalidation/explicit-inheritance-non-inherited.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8f47e0ec84c597ed39da9936be95e7021028f59d |
--- /dev/null |
+++ b/LayoutTests/fast/css/invalidation/explicit-inheritance-non-inherited.html |
@@ -0,0 +1,24 @@ |
+<!DOCTYPE html> |
+<script src="../../../resources/js-test.js"></script> |
+<style> |
+html { background-color: green } |
+* { background-color: inherit } |
+</style> |
+<div id="root"> |
+ <div> |
+ <span></span> |
+ <span></span> |
+ <span></span> |
+ <span></span> |
+ </div> |
+</div> |
+<script> |
+description("Inheritance-propagation should stop when there is no style diff."); |
+ |
+root.offsetTop; // force recalc |
+ |
+root.style.marginLeft = "1px"; |
+ |
+if (window.internals) |
+ shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2"); |
+</script> |