flex-direction-row-reverse-002-visual.html (990B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Test: flow-direction:row-reverse swaps main start and end directions</title> 5 <link rel="author" title="Sylvain Galineau" href="mailto:galineau@adobe.com"> 6 <link rel="reviewer" title="Arron Eicholz" href="mailto:arronei@microsoft.com"> 7 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-direction"> 8 <meta name="assert" content="This test checks that row-reverse flex-direction swaps the main start and main end directions"> 9 <style> 10 .test { 11 display: flex; 12 width: 3em; 13 } 14 15 .test > span { 16 width: 1em; 17 } 18 19 #row { 20 flex-direction: row; 21 } 22 23 #row-reverse { 24 flex-direction: row-reverse; 25 } 26 </style> 27 </head> 28 <body> 29 <p>Test passes if both the lines below are identical.</p> 30 <div class="test" id="row"> 31 <span>A</span><span>B</span><span>C</span> 32 </div> 33 <div class="test" id="row-reverse"> 34 <span>C</span><span>B</span><span>A</span> 35 </div> 36 </body> 37 </html>