| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <style> | 2 <style> |
| 3 td { | 3 td { |
| 4 width: 50px; | 4 width: 50px; |
| 5 height: 50px; | 5 height: 50px; |
| 6 padding: 0px; | 6 padding: 0px; |
| 7 } | 7 } |
| 8 </style> | 8 </style> |
| 9 <script src="../../resources/check-layout.js"></script> | 9 <script src="../../resources/check-layout.js"></script> |
| 10 <script src="../../resources/run-after-layout-and-paint.js"></script> | 10 <script src="../../resources/run-after-layout-and-paint.js"></script> |
| 11 <script type="text/javascript"> | 11 <script type="text/javascript"> |
| 12 function shrinkColumnBorder() { | 12 function shrinkTableBorder() { |
| 13 theColumn.style.borderWidth = "4px"; | 13 theTable.style.borderWidth = "4px"; |
| 14 checkLayout("div"); | 14 checkLayout("div"); |
| 15 } | 15 } |
| 16 runAfterLayoutAndPaint(shrinkColumnBorder, true); | 16 runAfterLayoutAndPaint(shrinkTableBorder, true); |
| 17 </script> | 17 </script> |
| 18 <p>Changing a collapsed border's width should change the width of the table and
the width of a shrink-to-fit containing block.</p> | 18 <p>Changing a collapsed border's width should change the width of the table and
the width of a shrink-to-fit containing block.</p> |
| 19 <p>There should be a square with a 4px inner blue border and a 1px outer black b
order.</p> | 19 <p>There should be a square with a 4px inner blue border and a 1px outer black b
order.</p> |
| 20 <p>Firefox 50.0a1 (nightly 2016-07-14) fails this, so it should probably be upst
reamed, except it uses chrome-specific `runAfterLayoutAndPaint`.</p> | 20 <p>Firefox 52.0a1 (2016-09-20) fails this, so it should probably be upstreamed,
except it uses chrome-specific `runAfterLayoutAndPaint`.</p> |
| 21 <div style="float:left; border: 1px solid black" data-expected-width=60> | 21 <div style="float:left; border: 1px solid black" data-expected-width=60> |
| 22 <table style="border-collapse:collapse" data-expected-width=58 data-expected
-height=58> | 22 <table id=theTable style="border:18px solid lightblue; border-collapse:colla
pse" data-expected-width=58 data-expected-height=58> |
| 23 <col style="border:18px solid lightblue" id="theColumn"> | |
| 24 <tr> | 23 <tr> |
| 25 <td></td> | 24 <td></td> |
| 26 </tr> | 25 </tr> |
| 27 </table> | 26 </table> |
| 28 </div> | 27 </div> |
| OLD | NEW |