table-as-item-stretch-cross-size-2.html (777B)
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="match" href="../reference/ref-filled-green-100px-square.xht"> 5 <meta name="assert" content="The table's cross-axis (inline-size) is stretched."> 6 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 7 <div style="display: flex; flex-direction: column; width: 100px; height: 100px; background: red;"> 8 <table style="border-spacing: 0; flex-grow: 1;"> 9 <caption style="height: 10px; background: green;"></caption> 10 <caption style="height: 20px; background: green; caption-side: bottom;"></caption> 11 <td style="background: green;"></td> 12 </table> 13 </div>