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

<!DOCTYPE html>
<title>
  CSS Gap Decorations: Flex gaps are painted with different sized gaps per column due to content distribution in a column flex.
</title>
<link rel="help" href="https://www.w3.org/TR/css-gaps-1/">
<link rel="match" href="flex-gap-decorations-043-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;
    width: 100px;
  }

  .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-043-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;
    width: 100px;
    border: 2px solid #333;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
  }

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

  .rule {
    position: absolute;
    left: 2px;
    width: 50px;
    height: 5px;
    background: gold;
  }
</style>

<div class="rule" style="top: 76.25px;"></div>
<div class="rule" style="top: 157.75px;"></div>
<div class="rule" style="top: 241.25px;"></div>
<div class="rule" style="top: 322.75px;"></div>

<div class="rule" style="left: 52px; top: 90px;"></div>
<div class="rule" style="left: 52px; top: 200px;"></div>
<div class="rule" style="left: 52px; top: 310px;"></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>