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

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

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

<!DOCTYPE html>
<title>
  Gap Decorations are shown in a grid that's fragmented. Suppressed row gaps do not have decorations.
</title>
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/11520">
<link rel="match" href="grid-gap-decorations-fragmentation-008-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;
    row-rule-break: intersection;
    row-rule-inset-cap-start: 1px;
    column-rule: solid 6px blue;
    column-rule-break: intersection;
    column-rule-inset-cap-start: 1px;
    column-rule-inset-junction-end: 0px;
  }
  .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-008-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);
    /* Simulate row gaps with row tracks */
    grid-template-rows: repeat(2, 50px 20px) 50px 10px 50px;
    column-gap: 10px;
  }
  .grid-container>div {
    background-color: skyblue;
  }
  .column-gap {
    position: absolute;
    background: blue;
    height: 99px;
    width: 6px;
  }
  .row-gap {
    position: absolute;
    display: flex;
    column-gap: 10px;
    height: 10px;
  }
  .row-gap-segment {
    background: red;
    width: 44px;
  }
</style>
<div class="multi-col">
<div class="grid-container">
<div></div>
<div></div>
<div style="grid-column: 1/3; background: lightgray;"></div>
<div></div>
<div></div>
<div style="grid-column: 1/3;  background: lightgray;"></div>
<div></div>
<div></div>
<div style="grid-column: 1/3; background: lightgray;"></div>
<div></div>
<div></div>
</div>
<div class="column-gap" style="left: 47px; top: 1px; height: 49px;"></div>
<div class="column-gap" style="left: 47px; top: 70px; height: 30px;"></div>
<div class="column-gap" style="left: 157px; top: 1px; height: 19px;"></div>
<div class="column-gap" style="left: 157px; top: 40px; height: 60px;"></div>
<div class="column-gap" style="left: 267px; top: 1px; height: 49px;"></div>
<div class="row-gap" style="left: 1px; top: 55px; width: 99px;">
  <div class="row-gap-segment"></div>
  <div class="row-gap-segment" style="width: 45px;"></div>
</div>
<div class="row-gap" style="left: 111px; top: 25px; width: 99px;">
  <div class="row-gap-segment"></div>
  <div class="row-gap-segment" style="width: 45px;"></div>
</div>
</div>