| OLD | NEW |
| (Empty) | |
| 1 <!doctype html> |
| 2 <style> |
| 3 body, table, tbody { |
| 4 contain: size layout; |
| 5 } |
| 6 </style> |
| 7 <script src="../../resources/check-layout.js"></script> |
| 8 <script src="../../resources/run-after-layout-and-paint.js"></script> |
| 9 <script type="text/javascript"> |
| 10 function reparentRow() { |
| 11 document.getElementById("table2").appendChild(document.getElementById("r
ow")); |
| 12 checkLayout("#table2"); |
| 13 } |
| 14 runAfterLayoutAndPaint(reparentRow, true); |
| 15 </script> |
| 16 <p>This shouldn't crash and there should be a green square.</p> |
| 17 <table> |
| 18 <tr id="row"><td style="height:50px;width:50px;background:green" data-expected
-width=16 data-expected-height=16></td></tr> |
| 19 </table> |
| 20 <table id="table2" style="height:20px;width:20px"> |
| 21 </table> |
| OLD | NEW |