balance-orphans-widows-000.html (1007B)
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/#filling-columns"> 4 <link rel="help" href="https://www.w3.org/TR/css-break-3/#widows-orphans"> 5 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 6 <style> 7 .multicol { 8 columns: 2; 9 orphans: 4; 10 widows: 4; 11 width: 100px; 12 column-gap: 80px; 13 column-rule: 80px solid green; 14 line-height: 0; 15 background: red; 16 } 17 span { 18 display: inline-block; 19 width: 100%; 20 height: 10px; 21 background: green; 22 } 23 span.tall { 24 height: 40px; 25 } 26 </style> 27 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 28 <div class="multicol"> 29 <span></span><br> 30 <span></span><br> 31 <span class="tall"></span><br> 32 <span class="tall"></span><br> 33 <span class="tall"></span><br> 34 <span class="tall"></span><br> 35 <span></span><br> 36 <span></span><br> 37 </div>