wpt / css / css-grid / grid-lanes / track-sizing / auto-repeat / intrinsic-auto-repeat / column-auto-repeat-auto-031.html

Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-grid/grid-lanes/track-sizing/auto-repeat/intrinsic-auto-repeat/column-auto-repeat-auto-031.html

<!DOCTYPE html>
<html>
<title>Auto repeat tracks with auto track sizes mixed with fixed tracks</title>
<link rel="help" href="https://drafts.csswg.org/css-grid-3">
<link rel="match" href="column-auto-repeat-auto-031-ref.html">
<link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com">
<style>
.grid-lanes {
    display: grid-lanes;
    background: gray;
    flow-tolerance: 0;
    grid-template-columns: repeat(auto-fill, auto auto 100px);
    width: 900px;
    height: 300px;
}

.grid-lanes > div {
    width: 300px;
    height: 100px;
    grid-column: span 2;
}
</style>
<body>
  <div class="grid-lanes">
    <div style="background: lightskyblue;">
      Number 1
    </div>
    <div style="background: lightcoral;">
      Number 2
    </div>
    <div style="background: purple;">
      Number 3
    </div>
    <div style="background: plum;">
      Number 4
    </div>
  </div>
</body>
</html>

/css/css-grid/grid-lanes/track-sizing/auto-repeat/intrinsic-auto-repeat/column-auto-repeat-auto-031-ref.html

<!DOCTYPE html>
<html>
<style>
.grid {
    display: grid;
    background: gray;
    grid-template-columns: repeat(1, auto auto 100px);
    grid-template-rows: repeat(4, 100px);
    width: 900px;
    height: 300px;
}

.grid > div {
    width: 300px;
    height: 100px;
    grid-column: span 2;
}
</style>
<body>
  <div class="grid">
    <div style="background: lightskyblue;">
      Number 1
    </div>
    <div style="background: lightcoral;">
      Number 2
    </div>
    <div style="background: purple;">
      Number 3
    </div>
    <div style="background: plum;">
      Number 4
    </div>
  </div>
</body>
</html>