OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../../resources/js-test.js"></script> | 2 <script src="../../../resources/js-test.js"></script> |
3 <style> | 3 <style> |
4 html { background-color: green } | 4 html { background-color: green } |
5 * { background-color: inherit } | 5 * { background-color: inherit } |
6 .a:hover.b { background-color: green } | 6 .a:hover.b { background-color: green } |
7 </style> | 7 </style> |
8 <div id="root"> | 8 <div id="root"> |
9 <div> | 9 <div> |
10 <span></span> | 10 <span></span> |
11 <span></span> | 11 <span></span> |
12 <span></span> | 12 <span></span> |
13 <span></span> | 13 <span></span> |
14 </div> | 14 </div> |
15 </div> | 15 </div> |
16 <script> | 16 <script> |
17 description("Inheritance-propagation should stop when there is no style diff and
the affected-by-hover flag changes."); | 17 description("Inheritance-propagation should stop when there is no style diff and
the affected-by-hover flag changes."); |
18 | 18 |
19 root.offsetTop; // force recalc | 19 root.offsetTop; // force recalc |
20 | 20 |
21 root.className = "a b"; | 21 root.className = "a b"; |
22 | 22 |
23 if (window.internals) | 23 if (window.internals) |
24 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); | 24 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()", "1
"); |
25 </script> | 25 </script> |
OLD | NEW |