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

Unified Diff: LayoutTests/fast/css/invalidation/explicit-inheritance-non-inherited.html

Issue 921843004: Stop explicit inheritance if LayoutStyle doesn't change. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Corrected and documented flag copying/comparisons Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/css/invalidation/explicit-inheritance-non-inherited-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/fast/css/invalidation/explicit-inheritance-non-inherited-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698