Status: FAIL | Duration: 11ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-gaps/multicol/multicol-gap-decorations-035.html
<!DOCTYPE html> <title> CSS Gap Decorations: Multicolumn gap decorations painted with column-wrap, rule-visibility-items: around, and fewer columns in last row. </title> <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> <link rel="match" href="multicol-gap-decorations-035-ref.html"> <link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com"> <style> body { margin: 0px; } .container { border: 2px solid rgb(96 139 168); width: 200px; height: 130px; column-count: 3; column-width: 60px; column-height: 60px; column-gap: 10px; row-gap: 10px; column-rule-width: 10px; column-rule-style: solid; column-rule-color: blue; row-rule-width: 2px; row-rule-style: solid; row-rule-color: gold; column-wrap: wrap; column-fill: auto; column-rule-break: intersection; row-rule-break: intersection; column-rule-inset: 0; rule-visibility-items: around; } p { background: rgb(96 139 168 / 0.2); height: 60px; margin: 0px; } </style> <div class="container"> <p></p> <p></p> <p></p> <p></p> </div>
/css/css-gaps/multicol/multicol-gap-decorations-035-ref.html
<!DOCTYPE html> <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> <link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com"> <style> body { margin: 0px; } .container { border: 2px solid rgb(96 139 168); width: 200px; height: 130px; column-gap: 10px; display: flex; } .items { background: rgb(96 139 168 / 0.2); height: 60px; margin: 0px; width: 60px; } .last-item { position: absolute; left: 2px; top: 72px; background: rgb(96 139 168 / 0.2); height: 60px; margin: 0px; width: 60px; } /* Row rule (gold) — paints across all three column slots with `around`. */ .row-gap { position: absolute; height: 2px; background: gold; top: 66px; } /* Column rules (blue). */ .column-gap { position: absolute; width: 10px; background: blue; } </style> <div class="container"> <div class="items"></div> <div class="items"></div> <div class="items"></div> </div> <div class="last-item"></div> <!-- Row 0 column rules (full row height). --> <div class="column-gap" style="left:62px; top:2px; height:60px;"></div> <div class="column-gap" style="left:132px; top:2px; height:60px;"></div> <!-- Row 1 column rule between existing col 0 and missing col 1 (kEmptyAfter, paints with `around`). The rule between the two missing slots is omitted. --> <div class="column-gap" style="left:62px; top:72px; height:60px;"></div> <!-- Row rule segments above each column slot. --> <div class="row-gap" style="left:2px; width:60px;"></div> <div class="row-gap" style="left:72px; width:60px;"></div> <div class="row-gap" style="left:142px; width:60px;"></div>