multicol-nested-015.html (1248B)
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 <style> 7 .ib { 8 display: inline-block; 9 width: 100%; 10 height: 30px; 11 vertical-align: top; 12 background: green; 13 } 14 </style> 15 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 16 <div style="columns:2; column-fill:auto; column-gap:0; width:100px; height:100px; orphans:2; widows:2; background:red;"> 17 <div style="contain:size; height:70px; background:green;"></div> 18 <div style="break-before:avoid; columns:5; column-fill:auto; column-gap:0;"> 19 <div style="break-inside:avoid; height:60px; background:green;"></div> 20 <!-- Violate orphans and widows here (only room for one line in each 21 column), because we already have a break violation with higher severity 22 (break-inside:avoid): --> 23 <div class="ib"></div><br> 24 <div class="ib"></div><br> 25 <div class="ib"></div><br> 26 </div> 27 <div style="height:100px; background:green;"></div> 28 </div>