| OLD | NEW |
| (Empty) | |
| 1 <!doctype html> |
| 2 <style> |
| 3 td { |
| 4 width: 50px; |
| 5 height: 50px; |
| 6 padding: 0px; |
| 7 background: lime; |
| 8 box-sizing: border-box; |
| 9 } |
| 10 td div { |
| 11 display: inline-block; |
| 12 width: 22px; |
| 13 height: 5px; |
| 14 background: orange; |
| 15 } |
| 16 </style> |
| 17 <script src="../../resources/run-after-layout-and-paint.js"></script> |
| 18 <script type="text/javascript"> |
| 19 runAfterLayoutAndPaint(() => theRow.removeChild(cellToRemove), true); |
| 20 </script> |
| 21 <p>Removing the left cell with a big border should give the remaining cells enou
gh space to put the orange inline-blocks on the same line.</p> |
| 22 <table style="border-collapse:collapse"> |
| 23 <tr id="theRow"> |
| 24 <td><div></div> <div></div></td> |
| 25 <td style="border:18px solid red" id="cellToRemove"></td> |
| 26 <td><div></div> <div></div></td> |
| 27 </tr> |
| 28 </table> |
| OLD | NEW |