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

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

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

<!DOCTYPE html>
<title>
    CSS Gap Decorations: gap decorations are painted in inline flex containers.
</title>
<link rel="help" href="https://drafts.csswg.org/css-gaps-1/">
<link rel="match" href="flex-gap-decorations-039-ref.html">
<link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com">
<style>
    body {
        margin: 0px;
    }
    .container {
        gap: 10px;
        row-rule: 2px solid red;
        column-rule: 2px solid blue;
    }
    .flex {
        display: inline-flex;
        flex-wrap: wrap;
        width: 110px;
    }
    .item {
        background: lightgray;
        width: 50px;
        height: 50px;
    }
</style>
<div class="flex container">
    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>
</div>

/css/css-gaps/flex/flex-gap-decorations-039-ref.html

<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-gaps-1/">
<link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com">
<style>
    body {
        margin: 0px;
    }
    .container {
        display: flex;
        width: 110px;
        height: 110px;
        column-gap: 10px;
        row-gap: 10px;
        flex-wrap: wrap;
    }
    .item {
        background: lightgray;
        width: 50px;
        height: 50px;
    }
    .row-gap {
        position: absolute;
        top: 54px;
        background: red;
        width: 110px;
        height: 2px;
    }
    .column-gap-1 {
        position: absolute;
        top: 0px;
        left: 54px;
        background: blue;
        height: 50px;
        width: 2px;
    }
    .column-gap-2 {
        position: absolute;
        top: 60px;
        left: 54px;
        background: blue;
        height: 50px;
        width: 2px;
    }
</style>
<div class="container">
    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>
</div>
<div class="column-gap-1"></div>
<div class="column-gap-2"></div>
<div class="row-gap"></div>