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