Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / invalidation / explicit-inheritance-non-inherited-hover.html
blobf2ce7a755720a1e0cd5f5a529008a2bc87478afa
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <style>
4 html { background-color: green }
5 * { background-color: inherit }
6 .a:hover.b { background-color: green }
7 </style>
8 <div id="root">
9 <div>
10 <span></span>
11 <span></span>
12 <span></span>
13 <span></span>
14 </div>
15 </div>
16 <script>
17 description("Inheritance-propagation should stop when there is no style diff and the affected-by-hover flag changes.");
19 root.offsetTop; // force recalc
21 root.className = "a b";
23 if (window.internals)
24 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
25 </script>