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

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

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

<!DOCTYPE html>
<title>
  CSS Gap Decorations: Flex gaps are painted with different sized gaps due
  to content distribution between items and lines (due to align-content: stretch,
  where items don't fill the whole line due to the specified width) in a column flex.
</title>
<link rel="help" href="https://www.w3.org/TR/css-gaps-1/">
<link rel="match" href="flex-gap-decorations-045-ref.html">
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<style>
  body {
    margin: 0px;
  }

  #flexbox {
    height: 400px;
    border: 2px solid #333;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    row-rule: 5px solid gold;
    column-rule: 5px solid red;
    width: 120px;
    column-gap: 5px;
    align-content: stretch;
  }

  .item {
    width: 50px;
    height: 70px;
    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-045-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 {
        height: 400px;
        border: 2px solid #333;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: space-between;
        width: 120px;
        column-gap: 5px;
    }

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

    .row-rule {
        position: absolute;
        height: 5px;
        background: gold;
        width: 57.5px;
    }

    .col-rule {
        position: absolute;
        width: 5px;
        height: 400px;
        background: red;
    }
</style>
<div class="row-rule" style="top: 76.25px; left: 2px;"></div>
<div class="row-rule" style="top: 157.75px; left: 2px;"></div>
<div class="row-rule" style="top: 241.25px; left: 2px;"></div>
<div class="row-rule" style="top: 322.75px; left: 2px;"></div>

<div class="row-rule" style="top: 90px; left: 64.5px;"></div>
<div class="row-rule" style="top: 200px; left: 64.5px;"></div>
<div class="row-rule" style="top: 310px; left: 64.5px;"></div>

<div class="col-rule" style="top: 2px; left: 60px;"></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>