wpt / css / css-gaps / multicol / multicol-gap-decorations-005.html

Status: FAIL | Duration: 9ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-gaps/multicol/multicol-gap-decorations-005.html

<!DOCTYPE html>
<title>
    CSS Gap Decorations: Multicolumn gap decorations painted with nested multicol with column wrap.
</title>
<link rel="help" href="https://drafts.csswg.org/css-gaps-1/">
<link rel="match" href="multicol-gap-decorations-005-ref.html">
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<style>
    body {
        margin: 0px;
    }

    .outer-container {
        column-count: 2;
        column-gap: 10px;
        column-rule-width: 10px;
        column-rule-style: solid;
        column-rule-color: blue;
        border: 1px solid #ccc;
        width: 210px;
        height: 50px;
    }

    .nested-container {
        column-count: 2;
        column-gap: 10px;
        width: 100px;
        column-rule-width: 10px;
        column-rule-style: solid;
        column-rule-color: gold;
        row-gap: 10px;
        row-rule-width: 10px;
        row-rule-style: solid;
        row-rule-color: purple;
        column-wrap: wrap;
        column-fill: auto;
        column-height: 20px;
    }

    .column1 {
        background: rgb(96 139 168 / 0.2);
        width: 100px;
        height: 50px
    }

    .nested-column {
        background: black;
        width: 45px;
        height: 20px;
    }
</style>

<div class="outer-container">
    <div class="column1">
    </div>
    <div class="column2">
        <div class="nested-container">
            <div class="nested-column"></div>
            <div class="nested-column"></div>
            <div class="nested-column"></div>
            <div class="nested-column"></div>
        </div>
    </div>
</div>

/css/css-gaps/multicol/multicol-gap-decorations-005-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;
    }

    .outer {
        display: flex;
        border: 1px solid #ccc;
        height: 50px;
        width: 210px;
        column-gap: 10px;
    }

    .outer-items {
        background: rgb(96 139 168 / 0.2);
        height 50px;
        width: 100px;
    }

    .inner {
        display: flex;
        height: 50px;
        column-gap: 10px;
        width: 100px;
    }

    .inner-items {
        height: 50px;
        width: 45px;
        background: black;
    }

    .column-gap {
        position: absolute;
        height: 50px;
        top: 1px;
        left: 101px;
        width: 10px;
    }

    .row-gap {
        position: absolute;
        background: purple;
        height: 10px;
        top: 21px;
        left: 111px;
        width: 100px;
    }
</style>
<div class="outer">
    <div class="outer-items"></div>
    <div class="outer-items" id="nested">
        <div class="inner">
            <div class="inner-items"></div>
            <div class="inner-items"></div>
        </div>
    </div>
</div>
<div class="column-gap" style="background: blue;"></div>
<div class="column-gap" style="background: gold; left: 156px"></div>
<div class="row-gap"></div>