flex-minimum-width-flex-items-015.html (905B)
1 <!doctype html> 2 <link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org" /> 3 <link rel="help" href="https://drafts.csswg.org/css-flexbox/#definite-sizes" /> 4 <link rel="help" href="https://drafts.csswg.org/css-flexbox/#min-size-auto" /> 5 <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> 6 <meta name="assert" content="Column flexbox's imposed definite size on row flexbox is honored when resolving percentages in automatic minimum size algorithm."> 7 8 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 9 10 <div style="display: flex; flex-direction: column; width: 100px; height: 444px;"> 11 <div style="flex-basis: 100px; display: flex; min-height: 0px;"> 12 <!-- min-width is min-height transferred through the aspect ratio: 1 x 100% x 100px = 100px --> 13 <img src="support/200x200-green.png" style="min-height: 100%;"> 14 </div> 15 </div>