wpt / css / css-gaps / grid / fragmentation / grid-gap-decorations-fragmentation-031.html

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

/css/css-gaps/grid/fragmentation/grid-gap-decorations-fragmentation-031.html

<!DOCTYPE html>
<title>
  CSS Gap Decorations: in a fragmented grid, row gaps suppressed due to fragmentation
  still consume a value from the rule pattern.
</title>
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/11520">
<link rel="match" href="grid-gap-decorations-fragmentation-031-ref.html">
<link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com">
<style>
  body {
    margin: 0px;
  }
  .multi-col {
    height: 100px;
    width: 320px;
    columns: 3;
    column-fill: auto;
    column-gap: 10px;
    background: lightgray;

  }
  .grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 90px repeat(3, 50px);
    column-gap: 10px;
    row-gap: 20px;
    row-rule: solid 10px;
    row-rule-color: red, repeat(auto, green), yellow;
    column-rule: solid 6px blue;
  }
  .grid-container>div {
    background-color: skyblue;
  }
</style>
<div class="multi-col">
  <div class="grid-container">
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
  </div>
</div>

/css/css-gaps/grid/fragmentation/grid-gap-decorations-fragmentation-031-ref.html

<!DOCTYPE html>
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/11520">
<link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com">
<style>
  body {
    margin: 0px;
  }
  .multi-col {
    position: relative;
    height: 100px;
    width: 320px;
    columns: 3;
    column-fill: auto;
    column-gap: 10px;
    background: lightgray;
  }
  .grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 90px 10px repeat(2, 50px 20px) 50px;
    column-gap: 10px;
  }
  .grid-container>div {
    background-color: skyblue;
  }
  .column-gap {
    position: absolute;
    background: blue;
    height: 100px;
    width: 6px;
  }
  .row-gap {
    position: absolute;
    background: red;
    height: 10px;
    width: 100px;
  }
   .simulated-row-gap {
    grid-column: 1/3;
    background-color: lightgray !important;
  }
</style>
<div class="multi-col">
  <div class="grid-container">
    <div></div>
    <div></div>
    <div class="simulated-row-gap"></div>
    <div></div>
    <div></div>
    <div class="simulated-row-gap"></div>
    <div></div>
    <div></div>
    <div class="simulated-row-gap"></div>
    <div></div>
    <div></div>
  </div>
  <div class="column-gap" style="left: 47px; top: 0px;"></div>
  <div class="column-gap" style="left: 157px; top: 0px;"></div>
  <div class="column-gap" style="left: 267px; top: 0px; height: 90px;"></div>

  <div class="row-gap" style="left: 110px; top: 55px; background: green;"></div>
  <div class="row-gap" style="left: 220px; top: 25px; background: yellow;"></div>
</div>