table-as-item-stretch-cross-size-3.html (973B)
1 <!DOCTYPE html> 2 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> 3 <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#valdef-align-items-stretch"> 4 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=799725"> 5 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 6 <meta name="assert" content="The table's cross-axis (inline-size) is stretched while the main-axis is not growing."> 7 <style> 8 #reference-overlapped-red { 9 position: absolute; 10 background-color: red; 11 width: 100px; 12 height: 100px; 13 z-index: -1; 14 } 15 </style> 16 17 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 18 <div id="reference-overlapped-red"></div> 19 20 <div style="display: flex; flex-direction: column; width: 100px; background: red;"> 21 <table style="border-spacing: 0; height: 90px;"> 22 <caption style="height: 10px; background: green;"></caption> 23 <td style="background: green;"></td> 24 </table> 25 </div>