multi-line-wrap-with-column-reverse.html (1446B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Test: flex container multiline wrapping in column-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-column-reverse-ref.html"> 10 <meta name="assert" content="This test check that a flex container wraps blocks multiline in column-reverse direction."> 11 <style> 12 * { margin:0; padding:0; font-size:100%; line-height:1; } 13 14 #test { 15 display: flex; 16 flex-direction: column-reverse; 17 flex-wrap: wrap; 18 height: 300px; 19 } 20 21 p { 22 margin-top: 10px; 23 margin-right: 10px; 24 background: #ccc; 25 } 26 27 #col1-row1 { 28 height: 90px; 29 } 30 31 #col1-row2 { 32 height: 90px; 33 } 34 35 #col1-row3 { 36 height: 90px; 37 } 38 39 #col2-row1 { 40 height: 140px; 41 } 42 43 #col2-row2 { 44 height: 140px; 45 } 46 47 #col3-row1 { 48 height: 290px; 49 } 50 51 </style> 52 </head> 53 <body> 54 <div id="test"> 55 <p id="col1-row3">1-3</p> 56 <p id="col1-row2">1-2</p> 57 <p id="col1-row1">1-1</p> 58 <p id="col2-row2">2-2</p> 59 <p id="col2-row1">2-1</p> 60 <p id="col3-row1">3-1</p> 61 </div> 62 </body> 63 </html>