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> |