flexbox-order-only-flexitems.html (976B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Test: order only affects flex items</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/#order-property"> 8 <link rel="match" href="reference/flexbox-order-only-flexitems-ref.html"> 9 <meta name="assert" content="This test check that the order property has no effect on elements that are not flex items"> 10 <style> 11 #test { 12 display: block; /* Not a flex container */ 13 } 14 15 #leftmost { 16 order: 2; 17 } 18 19 #middle { 20 order:1; 21 } 22 23 #rightmost { 24 order:0; 25 } 26 </style> 27 </head> 28 <body> 29 <p>Test passes if the paragraph below reads 'First, Second, Third'.</p> 30 <div id="test"> 31 <span id="leftmost">First,</span> 32 <span id="middle">Second,</span> 33 <span id="rightmost">Third</span> 34 </div> 35 </body> 36 </html>