wpt / css / css-gaps / flex / flex-gap-decorations-041.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-041.html

<!DOCTYPE html>
<title>
    CSS Gap Decorations: Flex gaps are painted with different sized gaps per line due to content distribution (via space-around).
</title>
<link rel="help" href="https://www.w3.org/TR/css-gaps-1/">
<link rel="match" href="flex-gap-decorations-041-ref.html">
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<style>
    body {
        margin: 0px;
    }

    #flexbox {
        width: 400px;
        border: 2px solid #333;
        background-color: #fff;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        column-rule: 5px solid gold;
    }

    .item {
        width: 70px;
        height: 50px;
        background-color: #007bff;
        color: white;
        display: flex;
    }
</style>
<div id="flexbox">
    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>

    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>

    <div class="item"></div>
    <div class="item"></div>
</div>

/css/css-gaps/flex/flex-gap-decorations-041-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 {
        width: 400px;
        border: 2px solid #333;
        background-color: #fff;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .item {
        width: 70px;
        height: 50px;
        background-color: #007bff;
        color: white;
        display: flex;
    }

    .rule {
        position: absolute;
        top: 2px;
        height: 50px;
        background: gold;
        width: 5px;
    }
</style>
<div class="rule" style="left: 80px;"></div>
<div class="rule" style="left: 160px;"></div>
<div class="rule" style="left: 240px;"></div>
<div class="rule" style="left: 320px;"></div>

<div class="rule" style="top: 52px; left: 100px;"></div>
<div class="rule" style="top: 52px; left: 200px;"></div>
<div class="rule" style="top: 52px; left: 300px;"></div>
<div id="flexbox">
    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>

    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>

    <div class="item"></div>
    <div class="item"></div>
</div>