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

Unified Diff: LayoutTests/fast/css/invalidation/explicit-inheritance-non-inherited-hover.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
Index: LayoutTests/fast/css/invalidation/explicit-inheritance-non-inherited-hover.html
diff --git a/LayoutTests/fast/css/invalidation/explicit-inheritance-non-inherited-hover.html b/LayoutTests/fast/css/invalidation/explicit-inheritance-non-inherited-hover.html
new file mode 100644
index 0000000000000000000000000000000000000000..f2ce7a755720a1e0cd5f5a529008a2bc87478afa
--- /dev/null
+++ b/LayoutTests/fast/css/invalidation/explicit-inheritance-non-inherited-hover.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<script src="../../../resources/js-test.js"></script>
+<style>
+html { background-color: green }
+* { background-color: inherit }
+.a:hover.b { background-color: green }
+</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 and the affected-by-hover flag changes.");
+
+root.offsetTop; // force recalc
+
+root.className = "a b";
+
+if (window.internals)
+ shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
+</script>

Powered by Google App Engine
This is Rietveld 408576698