| OLD | NEW |
| (Empty) | |
| 1 <!doctype html> |
| 2 <style> |
| 3 td { |
| 4 width: 50px; |
| 5 height: 50px; |
| 6 padding: 0px; |
| 7 } |
| 8 </style> |
| 9 <script src="../../resources/check-layout.js"></script> |
| 10 <script src="../../resources/run-after-layout-and-paint.js"></script> |
| 11 <script type="text/javascript"> |
| 12 function shrinkSectionBorder() { |
| 13 document.getElementById("section").style.borderWidth = "4px"; |
| 14 checkLayout("div"); |
| 15 } |
| 16 runAfterLayoutAndPaint(shrinkSectionBorder, true); |
| 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> |
| 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-07) fails this, so it should probably be upst
reamed, except it uses chrome-specific `runAfterLayoutAndPaint`.</p> |
| 21 <p>The table cell has rowspan=2 because we almost didn't cover the case where a
cell's rowspan exceeded the declared rows.</p> |
| 22 <div style="float:left; border: 1px solid black" data-expected-width=60> |
| 23 <table style="border-collapse:collapse" data-expected-width=58 data-expected
-height=58> |
| 24 <tbody style="border:18px solid lightblue" id="section"> |
| 25 <tr> |
| 26 <td rowspan=2></td> |
| 27 </tr> |
| 28 </tbody> |
| 29 </table> |
| 30 </div> |
| OLD | NEW |