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

Status: PASS | Duration: 5ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

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

<!DOCTYPE html>
<title>
  CSS Gap Decorations: Flex gaps are painted with align-content BUT a single line, so no decoration should be painted.
</title>
<link rel="help" href="https://www.w3.org/TR/css-gaps-1/">
<link rel="match" href="flex-gap-decorations-057-ref.html">
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<style>
    body {
        margin: 0px;
    }
    #flexbox {
        border: 1px solid;
        width: 140px;
        background-color: #fff;
        display: flex;
        flex-wrap: wrap;
        row-rule: 5px solid gold;
        height: 200px;
        align-content: space-evenly;
        row-gap: 10px;
    }
    .item {
        width: 70px;
        height: 40px;
        background-color: #007bff;
        color: white;
        display: flex;
    }
</style>
<div id="flexbox">
    <div class="item"></div>
    <div class="item"></div>
</div>

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

<!DOCTYPE html>
<link rel="help" href="https://www.w3.org/TR/css-gaps-1/">
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<style>
    body {
        margin: 0px;
    }
    #flexbox {
        border: 1px solid;
        width: 140px;
        background-color: #fff;
        display: flex;
        flex-wrap: wrap;
        height: 200px;
        align-content: space-evenly;
        row-gap: 10px;
    }
    .item {
        width: 70px;
        height: 40px;
        background-color: #007bff;
        color: white;
        display: flex;
    }
</style>
<div id="flexbox">
    <div class="item"></div>
    <div class="item"></div>
</div>