wpt / css / css-gaps / grid-lanes / row-gap-decorations-015.html

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

/css/css-gaps/grid-lanes/row-gap-decorations-015.html

<!DOCTYPE html>
<title>CSS Gap Decorations: column and row rules with reverse fill direction in grid-lanes (row direction)</title>
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<link rel="help" href="https://drafts.csswg.org/css-gaps-1/">
<link rel="help" href="https://drafts.csswg.org/css-grid-3/">
<link rel="match" href="row-gap-decorations-015-ref.html">
<style>
  body { margin: 0; }
  .lanes {
    display: grid-lanes;
    grid-template-rows: repeat(3, 86px);
    grid-lanes-direction: row fill-reverse;
    gap: 10px;
    background: #cdd5e0;
    width: 222px;
    column-rule: 4px solid blue;
    row-rule: 4px solid gold;
  }
  .lanes > div {
    width: 44px;
    background: #5b8def;
    color: #fff;
    font: 600 12px/1 sans-serif;
  }
  .lanes > div.w2 { width: 72px; }
  .lanes > div.w3 { width: 58px; }
  .lanes > div.w4 { width: 90px; }
</style>
<div class="lanes">
  <div class="w2">1</div>
  <div class="w3">2</div>
  <div>3</div>
  <div class="w4">4</div>
  <div>5</div>
  <div class="w2">6</div>
  <div>7</div>
  <div class="w3">8</div>
</div>

/css/css-gaps/grid-lanes/row-gap-decorations-015-ref.html

<!DOCTYPE html>
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<link rel="help" href="https://drafts.csswg.org/css-gaps-1/">
<link rel="help" href="https://drafts.csswg.org/css-grid-3/">
<style>
  body { margin: 0; }
  .lanes {
    display: grid-lanes;
    grid-template-rows: repeat(3, 86px);
    grid-lanes-direction: row fill-reverse;
    gap: 10px;
    background: #cdd5e0;
    width: 222px;
  }
  .lanes > div {
    width: 44px;
    background: #5b8def;
    color: #fff;
    font: 600 12px/1 sans-serif;
  }
  .lanes > div.w2 { width: 72px; }
  .lanes > div.w3 { width: 58px; }
  .lanes > div.w4 { width: 90px; }
  .col-rule { position: absolute; height: 86px; border-left: 4px solid blue; }
  .row-rule { position: absolute; width: 222px; border-top: 4px solid gold; }
</style>
<div class="lanes">
  <div class="w2">1</div>
  <div class="w3">2</div>
  <div>3</div>
  <div class="w4">4</div>
  <div>5</div>
  <div class="w2">6</div>
  <div>7</div>
  <div class="w3">8</div>
</div>
<div class="col-rule" style="left: 61px; top: 0;"></div>
<div class="col-rule" style="left: 143px; top: 0;"></div>
<div class="col-rule" style="left: 157px; top: 96px;"></div>
<div class="col-rule" style="left: 117px; top: 192px;"></div>
<div class="col-rule" style="left: 171px; top: 192px;"></div>
<div class="row-rule" style="top: 89px; left: 0;"></div>
<div class="row-rule" style="top: 185px; left: 0;"></div>