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 </style> | 6 </style> |
7 <div id="root"> | 7 <div id="root"> |
8 <div> | 8 <div> |
9 <span></span> | 9 <span></span> |
10 <span></span> | 10 <span></span> |
11 <span></span> | 11 <span></span> |
12 <span></span> | 12 <span></span> |
13 </div> | 13 </div> |
14 </div> | 14 </div> |
15 <script> | 15 <script> |
16 description("Inheritance-propagation should stop when there is no style diff."); | 16 description("Inheritance-propagation should stop when there is no style diff."); |
17 | 17 |
18 root.offsetTop; // force recalc | 18 root.offsetTop; // force recalc |
19 | 19 |
20 root.style.marginLeft = "1px"; | 20 root.style.marginLeft = "1px"; |
21 | 21 |
22 if (window.internals) | 22 if (window.internals) |
23 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2"); | 23 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()", "2
"); |
24 </script> | 24 </script> |
OLD | NEW |