multicol-nested-006.html (1040B)
1 <!DOCTYPE html> 2 <link rel="author" title="Morten Stenshorne" href="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 <meta name="assert" content="Make sure that orphans and widows handling inside an inner balanced multicol container doesn't get messed up by the constraining height of an outer multicol container"> 6 <p>There should be three columns below. The text in each column should match the 7 column number that the text actually ends up in.</p> 8 <div style="columns:2; height:250px; line-height:50px; column-fill:auto;"> 9 <div style="columns:3; column-rule:solid;" id="inner"> 10 1<br>1<br>2<br>2<br>3<br>3<br> 11 </div> 12 </div> 13 <script src="/resources/testharness.js"></script> 14 <script src="/resources/testharnessreport.js"></script> 15 <script> 16 test(()=> { 17 assert_equals(inner.offsetHeight, 100); 18 }, "Check that orphans and widows don't make a multicol container taller than necessary"); 19 </script>