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 shrinkCellBorder() { |
| 14 middleCell.style.borderWidth = "4px"; |
| 15 checkLayout("table"); |
| 16 } |
| 17 runAfterLayoutAndPaint(shrinkCellBorder, true); |
| 18 </script> |
| 19 <p>Changing a cell's collapsed border's width should change the width of the sib
ling cells and the table.</p> |
| 20 <p>There should be 3 squares. Outer two are lime, middle one is blue with a ligh
tblue border.</p> |
| 21 <p>Firefox 50.0a1 (nightly 2016-07-19) fails this, so it should probably be upst
reamed, except it uses chrome-specific `runAfterLayoutAndPaint`.</p> |
| 22 <table style="border-collapse:collapse" data-expected-width=158 data-expected-he
ight=58> |
| 23 <tr> |
| 24 <td data-expected-width=52></td> |
| 25 <td style="background:blue; border:18px solid lightblue" id="middleCell" dat
a-expected-width=54></td> |
| 26 <td data-expected-width=52></td> |
| 27 </tr> |
| 28 </table> |
OLD | NEW |