| 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 object + div { color: green; } | 4 object + div { color: green; } |
| 5 </style> | 5 </style> |
| 6 <object id="obj" data="data:text/html,FAIL"><div>Fallback</div></object> | 6 <object id="obj" data="data:text/html,FAIL"><div>Fallback</div></object> |
| 7 <div> | 7 <div> |
| 8 <div></div> | 8 <div></div> |
| 9 <div></div> | 9 <div></div> |
| 10 <div></div> | 10 <div></div> |
| 11 <div></div> | 11 <div></div> |
| 12 </div> | 12 </div> |
| 13 <script> | 13 <script> |
| 14 description("Reattaching object should not trigger sibling forest invalidation."
); | 14 description("Reattaching object should not trigger sibling forest invalidation."
); |
| 15 | 15 |
| 16 shouldBeDefined(window.internals); | 16 shouldBeDefined(window.internals); |
| 17 | 17 |
| 18 // Force recalc | 18 // Force recalc |
| 19 obj.offsetTop; | 19 obj.offsetTop; |
| 20 | 20 |
| 21 // Trigger reattach of fallback content. | 21 // Trigger reattach of fallback content. |
| 22 obj.setAttribute("data", "data:text/html,PASS"); | 22 obj.setAttribute("data", "data:text/html,PASS"); |
| 23 | 23 |
| 24 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); | 24 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "0"); |
| 25 | 25 |
| 26 </script> | 26 </script> |
| OLD | NEW |