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

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

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

<!DOCTYPE html>
<title>
  Gap Decorations are shown in grid that's fragmented. Suppressed row gaps do not
  have decorations. Test scenario with a forced break.
</title>
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/11520">
<link rel="match" href="grid-gap-decorations-fragmentation-011-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: repeat(4, 50px);
    column-gap: 10px;
    row-gap: 20px;
    row-rule: solid 10px red;
    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 style="break-before: column;"></div>
    <div></div>
    <div></div>
  </div>
</div>

/css/css-gaps/grid/fragmentation/grid-gap-decorations-fragmentation-011-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: 50px 20px 50px 80px 50px 20px 50px;
    column-gap: 10px;
  }
  .grid-container>div {
    background-color: skyblue;
  }
  .column-gap {
    position: absolute;
    background: blue;
    top: 0px;
    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;"></div>
  <div class="column-gap" style="left: 157px;"></div>
  <div class="column-gap" style="left: 267px;"></div>
  <div class="column-gap" style="left: 377px; height: 20px;"></div>

  <div class="row-gap" style="top: 55px; left: 0px;"></div>
  <div class="row-gap" style="top: 55px; left: 220px;"></div>
</div>