OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <script src="../../../resources/js-test.js"></script> | |
3 <div id="host"> | |
4 <div></div> | |
5 <div></div> | |
6 <div></div> | |
7 <div></div> | |
8 <div></div> | |
9 <div></div> | |
10 </div> | |
11 <script> | |
12 description("Redistribution into same position should not cause style recalc"); | |
13 | |
14 shouldBeDefined("window.internals"); | |
15 | |
16 var root = host.createShadowRoot(); | |
17 root.innerHTML = "<content></content>"; | |
18 | |
19 host.offsetTop; | |
20 | |
21 host.appendChild(document.createElement("div")); | |
22 | |
23 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); | |
24 | |
25 </script> | |
OLD | NEW |