multi-line-wrap-with-row-reverse.html (1344B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Test: flex container multiline wrapping in row-reverse direction</title> 5 <link rel="author" title="tmtysk" href="mailto:tmtysk@gmail.com"> 6 <link rel="reviewer" title="Tab Atkins" href="mailto:jackalmage@gmail.com"> 7 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-wrap-property"> 8 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-direction-property"> 9 <link rel="match" href="multi-line-wrap-with-row-reverse-ref.html"> 10 <meta name="assert" content="This test check that a flex container wraps blocks multiline in row-reverse direction."> 11 <style> 12 #test { 13 display: flex; 14 flex-direction: row-reverse; 15 flex-wrap: wrap; 16 width: 300px; 17 } 18 19 p { 20 margin-right: 10px; 21 background: #ccc; 22 } 23 24 #row1-col1 { 25 width: 90px; 26 } 27 28 #row1-col2 { 29 width: 90px; 30 } 31 32 #row1-col3 { 33 width: 90px; 34 } 35 36 #row2-col1 { 37 width: 140px; 38 } 39 40 #row2-col2 { 41 width: 140px; 42 } 43 44 #row3-col1 { 45 width: 290px; 46 } 47 48 </style> 49 </head> 50 <body> 51 <div id="test"> 52 <p id="row1-col3">1-3</p> 53 <p id="row1-col2">1-2</p> 54 <p id="row1-col1">1-1</p> 55 <p id="row2-col2">2-2</p> 56 <p id="row2-col1">2-1</p> 57 <p id="row3-col1">3-1</p> 58 </div> 59 </body> 60 </html>