flex-direction-column-reverse-ref.html (998B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Flexible Box Test: flex-direction proprety - column-reverse</title> 5 <link rel="author" title="haosdent" href="mailto:haosdent@gmail.com"> 6 <style type="text/css"> 7 /* Positioned container allows for the self-describing statement to still 8 be visible in the case of failure */ 9 .container { 10 position: relative; 11 background: red; 12 margin: 1em 0; 13 border: 1px solid black; 14 } 15 span ~ span { 16 margin: 2em 1em 1em; 17 } 18 span { 19 display: 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 arraged vertically and reversed.</p> 29 <div class="container"> 30 <span>forth</span> 31 <span>third</span> 32 <span>second</span> 33 <span>first</span> 34 </div> 35 </body> 36 </html>