| OLD | NEW |
| (Empty) | |
| 1 <!doctype html> |
| 2 <style> |
| 3 td { |
| 4 width: 50px; |
| 5 height: 50px; |
| 6 padding: 0px; |
| 7 background: lime; |
| 8 } |
| 9 </style> |
| 10 <script src="../../resources/check-layout.js"></script> |
| 11 <script src="../../resources/run-after-layout-and-paint.js"></script> |
| 12 <script type="text/javascript"> |
| 13 function removeMiddleCell() { |
| 14 theRow.removeChild(cellToRemove); |
| 15 checkLayout("table"); |
| 16 } |
| 17 runAfterLayoutAndPaint(removeMiddleCell, true); |
| 18 </script> |
| 19 <p>After removing the middle cell with the red border the 2 remaining cells' wid
ths should depend on sharing the black border, and not have stale widths from sh
aring the red border.</p> |
| 20 <table style="border-collapse:collapse" data-expected-width=108> |
| 21 <tr id="theRow"> |
| 22 <td style="border:4px solid black" data-expected-width=54></td> |
| 23 <td style="border:18px solid red" id="cellToRemove"></td> |
| 24 <td data-expected-width=52></td> |
| 25 </tr> |
| 26 </table> |
| OLD | NEW |