wpt / css / css-gaps / grid / grid-gap-decorations-070.html

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

/css/css-gaps/grid/grid-gap-decorations-070.html

<!DOCTYPE html>
<title>
  CSS Gap Decorations: grid gap decorations extend to meet cross-direction
  decoration width at far edge with rule-inset: overlap-join. Tests scenario
  where `rule-break` is intersection and some gap decorations segments need
  to flush due to the absence of a cross decoration.
</title>
<link rel="help" href="https://drafts.csswg.org/css-gaps-1/">
<link rel="match" href="grid-gap-decorations-070-ref.html">
<link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com">
<style>
  body {
    margin: 0px;
  }
  .container {
    display: grid;
    grid-template: repeat(3, 100px) / repeat(3, 100px);
    gap: 20px;
    rule: 6px solid;
    column-rule-color: rgba(128 0 0 / 0.5);
    row-rule-color: rgba(0 0 128 / 0.5);
    rule-break: intersection;
    rule-visibility-items: between;
    rule-inset: overlap-join;
  }
  .item {
    background: rgba(192 192 192 / 0.75);
  }
</style>
<div class="container">
  <div class="item"></div>
  <div class="item"></div>
  <div class="item"></div>
  <div class="item"></div>
  <div class="item"></div>
</div>

/css/css-gaps/grid/grid-gap-decorations-070-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: grid;
    grid-template: repeat(3, 100px) / repeat(3, 100px);
    gap: 20px;
  }
  .col-rule {
    height: 113px;
    width: 0px;
    position: absolute;
    left: 107px;
    top: 0px;
    border-right: 6px solid rgba(128 0 0 / 0.5);
  }
  .row-rule {
    height: 0px;
    width: 113px;
    position: absolute;
    left: 0px;
    top: 107px;
    border-bottom: 6px solid rgba(0 0 128 / 0.5);
  }
  .item {
    background: rgba(192 192 192 / 0.75);
  }
</style>
<div class="container">
  <div class="item"></div>
  <div class="item"></div>
  <div class="item"></div>
  <div class="item"></div>
  <div class="item"></div>
</div>

<div class="col-rule"></div>
<div class="col-rule" style="top: 107px;"></div>
<div class="col-rule" style="left: 227px; height: 113px; top: 0px;"></div>

<div class="row-rule"></div>
<div class="row-rule" style="left: 107px; width: 126px;"></div>