align-items-003.htm (1583B)
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 Test: A flex container with the 'align-items' property set to 'flex-end'</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#align-items-property" /> 7 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#align-items-property" /> 8 <link rel="match" href="reference/align-content-001-ref.html" /> 9 <meta name="assert" content="This test checks that the flex container with 'align-items: flex-end' places each flex item's margin box flush with the cross-end edge of line." /> 10 <meta name="fuzzy" content="maxDifference=0-1; totalPixels=0-6347" /> 11 <style type="text/css"> 12 #flexbox 13 { 14 background: linear-gradient(to bottom, green 0, green 50px, red 50px, red 100px); 15 align-items: center; 16 align-items: flex-end; 17 display: flex; 18 height: 100px; 19 width: 300px; 20 } 21 div div 22 { 23 background-color: green; 24 height: 51px; 25 width: 150px; 26 } 27 </style> 28 </head> 29 <body> 30 <p>Test passes if there is no red visible on the page.</p> 31 <div id="flexbox"> 32 <div></div> 33 <div></div> 34 </div> 35 </body> 36 </html>