flex-minimum-height-flex-items-001.xht (1821B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Flexible Box Test: Minimum height of flex items</title> 5 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com" /> 6 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#min-size-auto" title="4.5. Implied Minimum Size of Flex Items" /> 7 <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> 8 <meta name="assert" content="Checks that minimum height for flex items is the min-content size." /> 9 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 10 <style type="text/css"><![CDATA[ 11 #reference-overlapped-red { 12 position: absolute; 13 background-color: red; 14 width: 100px; 15 height: 100px; 16 z-index: -1; 17 } 18 19 #constrained-flex { 20 display: flex; 21 flex-direction: column; 22 width: 100px; 23 height: 10px; 24 } 25 26 #test-flex-item-overlapping-green { 27 color: green; 28 background-color: green; 29 font: 50px/1 Ahem; 30 } 31 32 #content-100x100 { 33 width: 100px; 34 height: 100px; 35 } 36 ]]></style> 37 </head> 38 <body> 39 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 40 41 <div id="reference-overlapped-red"></div> 42 <div id="constrained-flex"> 43 <div id="test-flex-item-overlapping-green"> 44 <div id="content-100x100"></div> 45 </div> 46 </div> 47 </body> 48 </html>