wpt / css / css-gaps / flex / flex-gap-decorations-031.html

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

/css/css-gaps/flex/flex-gap-decorations-031.html

<!DOCTYPE html>
<title>
    CSS Gap Decorations: flex column and row gaps are painted with rule break intersection and orthogonal items.
</title>
<link rel="help" href="https://drafts.csswg.org/css-gaps-1/">
<link rel="match" href="flex-gap-decorations-031-ref.html">
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<style>
    body {
        margin: 0px;
    }

    #flexbox>* {
        background-color: rgb(96 139 168 / 0.2);
    }

    #flexbox {
        display: flex;
        column-gap: 10px;
        column-rule: 10px solid red;
        column-rule-break: intersection;
        column-rule-inset: 0;
        row-gap: 30px;
        row-rule: 30px solid blue;
        row-rule-break: intersection;
        row-rule-inset: 0;
        height: 130px;
        width: 230px;
        flex-wrap: wrap;
        align-content: center;
    }

    .items {
        width: 70px;
        height: 50px;
        writing-mode: vertical-rl;
    }
</style>

<div id="flexbox">
    <div class="items">One</div>
    <div class="items">Two</div>
    <div class="items">Three</div>
    <div class="items">Four</div>
    <div class="items">Five</div>
    <div class="items">Six</div>
</div>

/css/css-gaps/flex/flex-gap-decorations-031-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;
    }

    #flexbox>* {
        background-color: rgb(96 139 168 / 0.2);
    }

    #flexbox {
        display: flex;
        column-gap: 10px;
        row-gap: 30px;
        height: 130px;
        width: 230px;
        flex-wrap: wrap;
        align-content: center;
    }

    .items {
        width: 70px;
        height: 50px;
        writing-mode: vertical-rl;
    }

    .row-rule {
        position: absolute;
        height: 30px;
        width: 70px;
        background: blue;
        top: 50px;
    }

    .col-rule {
        position: absolute;
        width: 10px;
        height: 50px;
        background: red;
    }
</style>

<div class="row-rule" style="left: 0px;"></div>
<div class="row-rule" style="left: 80px;"></div>
<div class="row-rule" style="left: 160px;"></div>

<div class="col-rule" style="left: 70px;"></div>
<div class="col-rule" style="left: 70px; top: 80px;"></div>
<div class="col-rule" style="left: 150px;"></div>
<div class="col-rule" style="left: 150px; top: 80px;"></div>

<div id="flexbox">
    <div class="items">One</div>
    <div class="items">Two</div>
    <div class="items">Three</div>
    <div class="items">Four</div>
    <div class="items">Five</div>
    <div class="items">Six</div>
</div>