flex-flow-010.html (1254B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Flexbox Test: flex-flow - column-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-007-ref.html"> 10 <meta name="assert" content="The 'flex-flow' property set 'column-reverse nowrap' controls the flex container is single-line, 11 but the main axis is vertical, the main-start and main-end directions are swapped"> 12 <style> 13 #test { 14 background-color: red; 15 display: flex; 16 flex-flow: column-reverse nowrap; 17 height: 100px; 18 width: 100px; 19 } 20 #test div { 21 background-color: green; 22 height: 50px; 23 } 24 </style> 25 <body> 26 <p>Test passes if there is a filled green square and no red, the number within square is '1 2 3 4' from top to bottom.</p> 27 <div id="test"> 28 <div>4</div> 29 <div>3</div> 30 <div>2</div> 31 <div>1</div> 32 </div> 33 </body>