display-flex-001.htm (1247B)
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: An element with the 'display' property set to 'flex' establishes a new block-level flex container</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/#flex-containers" /> 7 <link rel="match" href="reference/align-content-001-ref.html" /> 8 <meta name="assert" content="This test checks that an element with 'display' property set to 'flex' establishes a new block-level flex container." /> 9 <style type="text/css"> 10 #flexbox 11 { 12 background-color: red; 13 display: flex; 14 height: 100px; 15 width: 300px; 16 } 17 div div 18 { 19 background-color: green; 20 width: 150px; 21 } 22 </style> 23 </head> 24 <body> 25 <p>Test passes if there is no red visible on the page.</p> 26 <div id="flexbox"> 27 <div></div> 28 <div></div> 29 </div> 30 </body> 31 </html>