flex-flow-001.html (1171B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Flexbox Test: flex-flow - row nowrap</title> 4 <link rel="author" title="Intel" href="http://www.intel.com"> 5 <link rel="author" title="Shiyou Tan" href="mailto:shiyoux.tan@intel.com"> 6 <link rel="help" title="5.3. Flex Direction and Wrap: the 'flex-flow' shorthand" href="http://www.w3.org/TR/css-flexbox-1/#flex-flow-property"> 7 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-direction"> 8 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-wrap-property"> 9 <link rel="match" href="flex-flow-001-ref.html"> 10 <meta name="assert" content="The 'flex-flow' property set 'row nowrap' controls the flex container is single-line"> 11 <style> 12 #test { 13 background-color: red; 14 display: flex; 15 flex-flow: row nowrap; 16 width: 100px; 17 } 18 #test div { 19 background-color: green; 20 height: 50px; 21 width: 50px; 22 } 23 </style> 24 <body> 25 <p>Test passes if there is a filled green rectangle whose width is greater than height 26 and the number within rectangle is '1 2 3 4' from left to right.</p> 27 <div id="test"> 28 <div>1</div> 29 <div>2</div> 30 <div>3</div> 31 <div>4</div> 32 </div> 33 </body>