single-line-column-flex-fragmentation-004.html (781B)
1 <!DOCTYPE html> 2 <title> 3 Single-line column flex fragmentation. 4 </title> 5 <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination"> 6 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> 7 <style> 8 .multicol { 9 background: red; 10 column-count: 4; 11 column-fill: auto; 12 column-gap: 0px; 13 height: 100px; 14 width: 100px; 15 } 16 .flex { 17 display: flex; 18 flex-direction: column; 19 width: 25px; 20 } 21 .flex > div { 22 background: green; 23 width: 25px; 24 } 25 </style> 26 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 27 <div class="multicol"> 28 <div class="flex"> 29 <div style="height: 150px;"></div> 30 <div style="height: 150px;"></div> 31 <div style="height: 100px;"></div> 32 </div> 33 </div>