Status: FAIL | Duration: 30ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-multicol/multicol-breaking-005.html
<!DOCTYPE HTML> <title>CSS Test: breaking of a multicolumn</title> <meta charset="utf-8"> <link rel="author" title="L. David Baron" href="https://dbaron.org/"> <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> <link rel="author" title="Mozilla" href="https://mozilla.org/"> <link rel="help" href="https://drafts.csswg.org/css-multicol/#column-gaps-and-rules"> <link rel="help" href="https://drafts.csswg.org/css-multicol/#cf"> <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/2309"> <link rel="match" href="multicol-breaking-005-ref.html"> <style> .outer { height: 200px; width: 800px; column-fill: balance; column-count: 3; column-rule: 4px solid blue; column-gap: 16px; background: rgba(0, 0, 255, 0.3); } .inner { column-count: 2; column-fill: balance; column-rule: 2px solid fuchsia; column-gap: 16px; background: rgba(255, 0, 255, 0.3); font: 16px/1.25 sans-serif; } </style> <!-- This test is similar to multicol-breaking-002.html, but both outer and inner columns are balancing. The outer multi-column is made explicitly taller than the inner columns' optimal balance height. --> <div class="outer"> <div class="inner" style="height: 300px"> AAAAA<br> BBBBB<br> CCCCC<br> DDDDD<br> EEEEE<br> FFFFF<br> GGGGG<br> HHHHH<br> IIIII<br> JJJJJ<br> KKKKK<br> LLLLL<br> MMMMM<br> NNNNN<br> OOOOO<br> PPPPP<br> QQQQQ<br> RRRRR<br> SSSSS<br> TTTTT<br> UUUUU<br> VVVVV<br> WWWWW<br> XXXXX<br> YYYYY<br> ZZZZZ<br> aaaaa<br> bbbbb<br> ccccc<br> ddddd </div> </div>
/css/css-multicol/multicol-breaking-005-ref.html
<!DOCTYPE HTML> <title>CSS Test Reference: breaking of a multicolumn</title> <meta charset="utf-8"> <link rel="author" title="L. David Baron" href="https://dbaron.org/"> <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> <link rel="author" title="Mozilla" href="https://mozilla.org/"> <style> .outer { height: 200px; width: 800px; background: rgba(0, 0, 255, 0.3); position: relative; } .blueborders { position: absolute; top: 0; left: 262px; /* 256px first column + (16px gap - 4px rule) / 2 */ width: 268px; /* 256px second column + (16px gap - 4px rule) */ height: 200px; border-right: blue solid 4px; border-left: blue solid 4px; } .innerbg { height: 100px; width: 256px; background: rgba(255, 0, 255, 0.3); position: absolute; top: 0; } .inner { height: 100px; width: 120px; font: 16px/1.25 sans-serif; position: absolute; top: 0; } .lefthalf { border-right: 2px solid fuchsia; padding-right: 7px; } .righthalf { padding-left: 7px; } </style> <div class="outer"> <div class="blueborders"></div> <div class="innerbg" style="left: 0"></div> <div class="inner lefthalf" style="left: 0"> AAAAA<br> BBBBB<br> CCCCC<br> DDDDD<br> EEEEE </div> <div class="inner righthalf" style="left: 129px"> FFFFF<br> GGGGG<br> HHHHH<br> IIIII<br> JJJJJ </div> <div class="innerbg" style="left: 272px"></div> <div class="inner lefthalf" style="left: 272px"> KKKKK<br> LLLLL<br> MMMMM<br> NNNNN<br> OOOOO </div> <div class="inner righthalf" style="left: 401px"> PPPPP<br> QQQQQ<br> RRRRR<br> SSSSS<br> TTTTT </div> <div class="innerbg" style="left: 544px"></div> <div class="inner lefthalf" style="left: 544px"> UUUUU<br> VVVVV<br> WWWWW<br> XXXXX<br> YYYYY </div> <div class="inner righthalf" style="left: 673px"> ZZZZZ<br> aaaaa<br> bbbbb<br> ccccc<br> ddddd </div> </div>