table-as-item-narrow-content-2.html (818B)
1 <!DOCTYPE html> 2 <title>CSS Flexbox Test: Flex item as table with narrow content</title> 3 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> 4 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> 5 <link rel="help" href="https://www.w3.org/TR/css-flexbox-1/#layout-algorithm" title="9. Flex Layout Algorithm"> 6 <meta name="assert" content="A flex item as a table uses the sizing algorithm of the flexbox"> 7 <link rel="match" href="../reference/ref-filled-green-100px-square-only.html"> 8 <p>Test passes if there is a filled green square.</p> 9 <div style="display:flex; flex-direction:column; width: 100px; height:200px; "> 10 <div style="display:table; flex:1 0; background:green;"> 11 <div style="width:100px; height:10px;"></div> 12 </div> 13 <div style="flex:1 0;"></div> 14 </div>