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

<!DOCTYPE html>
<title>
  CSS Gap Decorations: flex column gaps are painted with solid styling.
</title>
<link rel="help" href="https://drafts.csswg.org/css-gaps-1/">
<link rel="match" href="../agnostic/gap-decorations-001-ref.html">
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<style>
  body {
    margin: 0px;
  }

  .flex-container {
    height: 110px;
    width: 110px;

    display: flex;

    column-gap: 10px;
    row-gap: 10px;

    column-rule-color: pink;
    column-rule-style: solid;
    column-rule-width: 10px;

    row-rule-color: green;
    row-rule-style: solid;
    row-rule-width: 10px;

    flex-wrap: wrap;
  }

  .flex-item {
    background: skyblue;
    width: 50px;
  }
</style>
<div class="flex-container">
    <div class="flex-item"></div>
    <div class="flex-item"></div>
    <div class="flex-item"></div>
    <div class="flex-item"></div>
</div>

/css/css-gaps/agnostic/gap-decorations-001-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;
    height: 50px;
    width: 50px;
    margin: 0;
  }

  .row-gap {
    position: absolute;
    top: 50px;
    background: green;
    width: 110px;
    height: 10px;
  }

  .column-gap {
    position: absolute;
    top: 0px;
    left: 50px;
    background: pink;
    height: 110px;
    width: 10px;
  }

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

<div class="column-gap"></div>
<div class="row-gap"></div>