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

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

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


<!DOCTYPE html>
<title>
  CSS Gap Decorations: shorthands column rules with !important are painted and overriden correctly.
</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: 10px solid pink !important;
    row-rule-color: green;
    row-rule-style: solid;
    row-rule-width: 10px;
    flex-wrap: wrap;
  }
  #container {
    column-rule: 9px dotted blue;
  }
  .flex-item {
    background: skyblue;
    width: 50px;
  }
</style>
<div class="flex-container" id="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>