flex-flow-004.html (1251B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Flexbox Test: flex-flow - row-reverse 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-reverse nowrap' controls the flex container is single-line, 11 but the main-start and main-end directions are swapped"> 12 <style> 13 #test { 14 background-color: red; 15 display: flex; 16 flex-flow: row-reverse nowrap; 17 width: 100px; 18 } 19 #test div { 20 background-color: green; 21 height: 50px; 22 width: 50px; 23 } 24 </style> 25 <body> 26 <p>Test passes if there is a filled green rectangle whose width is greater than height 27 and the number within rectangle is '1 2 3 4' from left to right.</p> 28 <div id="test"> 29 <div>4</div> 30 <div>3</div> 31 <div>2</div> 32 <div>1</div> 33 </div> 34 </body>