break-between-avoid-001.html (843B)
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-break-3/#unforced-breaks"> 4 <link rel="match" href="../reference/ref-filled-green-100px-square-only.html"> 5 <meta name="assert" content="Three blocks could fit in the first fragmentainer, but there's a break-after:avoid between the third and fourth block, so we should break between the second and third"> 6 <style> 7 .square { 8 height: 50px; 9 break-inside: avoid; 10 background:green; 11 } 12 </style> 13 <p>Test passes if there is a filled green square.</p> 14 <div style="columns:2; column-fill:auto; column-gap:0; width:100px; height:160px;"> 15 <div class="square"></div> 16 <div class="square"></div> 17 <div class="square" style="break-after:avoid;"></div> 18 <div class="square"></div> 19 </div>