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

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

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

<!DOCTYPE html>
<title>
    CSS Gap Decorations: Multicolumn gap decorations painted with smaller width than gap and column-wrap.
    This test is what we would expect the common case to look like, as far as rule-break and rule-inset go,
    so we don't specify them.
</title>
<link rel="help" href="https://drafts.csswg.org/css-gaps-1/">
<link rel="match" href="multicol-gap-decorations-004-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: 4px;
        column-rule-style: solid;
        column-rule-color: blue;
        row-rule-width: 4px;
        row-rule-style: solid;
        row-rule-color: gold;
        column-wrap: wrap;
        column-fill: auto;
    }

    p {
        background: rgb(96 139 168 / 0.2);
        height: 60px;
        margin: 0px;
    }
</style>

<div class="container">
    <p></p>
    <p></p>
    <p></p>
    <p></p>
    <p></p>
    <p></p>
</div>

/css/css-gaps/multicol/multicol-gap-decorations-004-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 {
        border: 2px solid rgb(96 139 168);
        width: 200px;
        height: 130px;
    }

    .container1 {
        width: 200px;
        height: 130px;
        column-gap: 10px;
        display: flex;
    }

    .items1 {
        background: rgb(96 139 168 / 0.2);
        height: 60px;
        margin: 0px;
        width: 60px;
    }

    .container2 {
        position: absolute;
        top: 72px;
        left: 2px;
        width: 200px;
        height: 60px;
        column-gap: 10px;
        display: flex;
    }

    .items2 {
        background: rgb(96 139 168 / 0.2);
        height: 60px;
        margin: 0px;
        width: 60px;
    }

    .row-gap {
        position: absolute;
        height: 4px;
        width: 200px;
        background: gold;
        left: 2px;
        top: 65px;
    }

    .column-gap {
        position: absolute;
        height: 60px;
        width: 4px;
        background: blue;
        top: 2px;
    }
</style>

<div class="outer">
    <div class="container1">
        <div class="items1"></div>
        <div class="items1"></div>
        <div class="items1"></div>
    </div>
    <div class="container2">
        <div class="items2"></div>
        <div class="items2"></div>
        <div class="items2"></div>
    </div>
    <div class="column-gap" style="left:65px;"></div>
    <div class="column-gap" style="left:135px;"></div>
    <div class="column-gap" style="left:65px; top: 72px"></div>
    <div class="column-gap" style="left:135px; top: 72px"></div>
    <div class="row-gap"></div>
</div>