order-with-row-reverse.html (1047B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Test: flex container layout lowest order with row-reverse direction</title> 5 <link rel="author" title="tmtysk" href="mailto:tmtysk@gmail.com"> 6 <link rel="reviewer" title="Tab Atkins, Jr." href="mailto:jackalmage@gmail.com"> 7 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#order-property"> 8 <link rel="match" href="order-with-row-reverse-ref.html"> 9 <meta name="assert" content="This test check that a flex container layouts out its content starting with the lowest numbered ordinal group and going up with row-reverse direction."> 10 <style> 11 #test { 12 display: flex; 13 flex-direction: row-reverse; 14 } 15 16 #leftmost { 17 order: 1; 18 } 19 20 #middle { 21 order: 0; 22 } 23 24 #rightmost { 25 order: -1; 26 } 27 </style> 28 </head> 29 <body> 30 <p>Test passes if the paragraph below reads 'First,Second,Third' from leftmost.</p> 31 <div id="test"> 32 <p id="leftmost">First,</p> 33 <p id="middle">Second,</p> 34 <p id="rightmost">Third</p> 35 </div> 36 </body> 37 </html>