| 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 addMiddleCell() { |
| 14 var cellToAdd = document.createElement("td"); |
| 15 cellToAdd.style.border = "18px solid lightblue"; |
| 16 theRow.insertBefore(cellToAdd, rightCell); |
| 17 checkLayout("table"); |
| 18 } |
| 19 runAfterLayoutAndPaint(addMiddleCell, true); |
| 20 </script> |
| 21 <p>Adding a middle cell with a large border should make the table expand to acco
mmodate it. The outer two cells' widths should also take on half of the new larg
e border's width.</p> |
| 22 <table style="border-collapse:collapse" data-expected-width=190> |
| 23 <tr id="theRow"> |
| 24 <td style="border:4px solid black" data-expected-width=61></td> |
| 25 <td data-expected-width=59 id="rightCell"></td> |
| 26 </tr> |
| 27 </table> |
| OLD | NEW |