flex-direction-row-reverse.html (1019B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Flexible Box Test: flex-direction proprety - row-reverse</title> 5 <link rel="author" title="haosdent" href="mailto:haosdent@gmail.com"> 6 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-direction-property"> 7 <link rel="match" href="reference/flex-direction-row-reverse-ref.html"> 8 <meta name="assert" content="Statement describing what the test case is asserting"> 9 <style type="text/css"> 10 .container { 11 position: relative; 12 display: flex; 13 flex-direction: row-reverse; 14 background: red; 15 margin: 1em 0; 16 border: 1px solid black; 17 } 18 span { 19 display: inline-block; 20 background: green; 21 color: white; 22 margin: 1em; 23 width: 8em; 24 } 25 </style> 26 </head> 27 <body> 28 <p>The test passed if you see all the cells are arranged horizontally and the order of cells are reversed.</p> 29 <div class="container"> 30 <span>first</span> 31 <span>second</span> 32 <span>third</span> 33 <span>forth</span> 34 </div> 35 </body> 36 </html>