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