multicol-nested-020.html (1212B)
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 <meta name="assert" content="Prefer ignoring the orphans request inside the inner multicol over ignoring the break-before:avoid, as specified in https://www.w3.org/TR/css-break-3/#unforced-breaks"> 6 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 7 <style> 8 .mc { 9 columns: 2; 10 column-gap: 0; 11 column-fill: auto; 12 } 13 .ib { 14 display: inline-block; 15 vertical-align: top; 16 width: 100%; 17 height: 50px; 18 background: green; 19 } 20 </style> 21 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 22 <div style="width:100px; height:100px; background:red;"> 23 <div class="mc" style="height:140px; line-height:50px; orphans:2; widows:2;"> 24 <div style="height:50px; background:green;"></div> 25 <div class="mc" style="break-before:avoid;"> 26 <div class="ib"></div><br> 27 <div class="ib"></div><br> 28 </div> 29 <div style="height:100px; background:green;"></div> 30 </div> 31 </div>