wpt / css / css-gaps / flex / fragmentation / flex-gap-decorations-fragmentation-002.html

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

/css/css-gaps/flex/fragmentation/flex-gap-decorations-fragmentation-002.html

<!DOCTYPE html>
<title>
    CSS Gap Decorations: flex gaps are painted when there are no column gaps on the first and last rows.
</title>
<link rel="help" href="https://drafts.csswg.org/css-gaps-1/">
<link rel="match" href="flex-gap-decorations-fragmentation-002-ref.html">
<link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com">
<style>
    body {
        margin: 0px;
    }
    .flex-container {
        height: 110px;
        width: 110px;
        display: flex;
        flex-wrap: wrap;

        gap: 10px;
        column-rule: pink solid 10px;
        row-rule: green solid 10px;
    }
    .flex-item {
        background: skyblue;
        width: 50px;
        height: 50px;
    }
</style>
<div class="flex-container">
    <div class="flex-item" style="width: 80px;"></div>
    <div class="flex-item"></div>
    <div class="flex-item"></div>
    <div class="flex-item"></div>
</div>

/css/css-gaps/flex/fragmentation/flex-gap-decorations-fragmentation-002-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: skyblue;
    width: 50px;
    height: 50px;
  }
  .row-gap {
    position: absolute;
    background: green;
    width: 110px;
    height: 10px;
  }
  .column-gap {
    position: absolute;
    top: 55px;
    left: 50px;
    background: pink;
    height: 60px;
    width: 10px;
  }
</style>
<div class="container">
  <div class="item" style="width: 80px;"></div>
  <div class="item"></div>
  <div class="item"></div>
  <div class="item"></div>
</div>

<div class="column-gap"></div>
<div class="row-gap" style="top: 50px;"></div>
<div class="row-gap" style="top: 110px;"></div>