multicol-nested-021.html (1251B)
1 <!DOCTYPE html> 2 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> 3 <link rel="help" href="https://www.w3.org/TR/css-multicol-1/#the-multi-column-model"> 4 <link rel="help" href="https://www.w3.org/TR/css-break-3/#unforced-breaks"> 5 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 6 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 7 <div style="columns:2; column-fill:auto; column-gap:0; width:100px; height:100px; background:red;"> 8 <!-- First outer column --> 9 <div style="height:50px; background:green;"></div> 10 <div style="columns:2; column-fill:auto; column-gap:0;"> 11 <!-- First and second inner column in the first row --> 12 <div style="width:200%; height:100px; background:green;"></div> 13 <!-- Second outer column, first column in the second row. --> 14 <div style="height:50px; background:green;"></div> 15 <!-- Second column in the second row. Pushing this to a third outer column 16 (and third inner row) wouldn't be ideal, since we'd overflow just as 17 much in the block direction by doing that. --> 18 <div style="contain:size; height:150px;"> 19 <div style="height:100px; background:green;"></div> 20 </div> 21 </div> 22 </div>