multicol-nested-014.html (1440B)
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 <div style="height:50px; background:green;"></div> 9 <div style="columns:5; column-fill:auto; column-gap:0;"> 10 <!-- Fill the first inner column: --> 11 <div style="height:50px; background:green;"></div> 12 <!-- Take up all the space in the next two columns, but paint a background 13 in all four remaining columns, using a large width: --> 14 <div style="float:left; width:300%; height:100px; background:green;"></div> 15 <!-- Skip the remaining columns in the first row and jump to the next outer 16 fragmentainer and start a taller row there, since the content is 17 monolithic and too tall to fit in the first one: --> 18 <div style="contain:size; height:100px; background:green;"></div> 19 <!-- Take up the remaining four columns in the second row in the second 20 outer fragmentainer: --> 21 <div style="float:left; width:100%; height:400px; background:green;"></div> 22 </div> 23 </div>