flex-minimum-width-flex-items-010.html (1166B)
1 <!DOCTYPE html> 2 <title>CSS Flexible Box Test: Minimum width of flex items</title> 3 <link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org" /> 4 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com" /> 5 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#min-size-auto" title="4.5. Implied Minimum Size of Flex Items" /> 6 <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> 7 <meta name="assert" content="Implied minimum main content suggestion accounts for maximum cross size when items have an aspect ratio."> 8 <style type="text/css"> 9 #reference-overlapped-red { 10 position: absolute; 11 background-color: red; 12 width: 100px; 13 height: 100px; 14 z-index: -1; 15 } 16 17 #constrained-flex { 18 display: flex; 19 width: 10px; 20 } 21 22 #test-flex-item-overlapping-green { 23 max-height: 100px; 24 } 25 </style> 26 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 27 28 <div id="reference-overlapped-red"></div> 29 <div id="constrained-flex"> 30 <img id="test-flex-item-overlapping-green" src="support/200x200-green.png" /> 31 </div>