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