wpt / css / css-grid / grid-lanes / track-sizing / auto-repeat / intrinsic-auto-repeat / row-auto-repeat-min-content-005.html

Status: FAIL | Duration: 12ms | Subtests: 0/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/row-auto-repeat-min-content-005.html

<!DOCTYPE html>
<html>
<title>Auto-fit repeat tracks with min-content size and explicit item placement</title>
<link rel="help" href="https://drafts.csswg.org/css-grid-3">
<link rel="match" href="row-auto-repeat-min-content-005-ref.html">
<link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com">
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
.grid-lanes {
    display: grid-lanes;
    background: gray;
    flow-tolerance: 0;
    grid-template-rows: repeat(auto-fit, min-content);
    height: 300px;
    width: 300px;
    font: 15px/1 Ahem;
}

.grid-lanes > div {
    width: 100px;
}
</style>
<body>
  <div class="grid-lanes">
    <div style="background: lightskyblue; grid-row: 1;">
      Number 1
    </div>
    <div style="background: lightcoral; grid-row: 3;">
      Number 2
    </div>
    <div style="background: lightgreen; grid-row: 1;">
      Number 3
    </div>
    <div style="background: lightpink; grid-row: 3;">
      Number 4
    </div>
    <div style="background: orange; grid-row: 1;">
      Number 5
    </div>
  </div>
</body>
</html>

/css/css-grid/grid-lanes/track-sizing/auto-repeat/intrinsic-auto-repeat/row-auto-repeat-min-content-005-ref.html

<!DOCTYPE html>
<html>
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
.grid {
    display: grid;
    background: gray;
    grid-template-rows: min-content min-content;
    height: 300px;
    width: 300px;
    font: 15px/1 Ahem;
}

.grid > div {
    width: 100px;
}
</style>
<body>
  <div class="grid">
    <div style="background: lightskyblue; grid-row: 1;">
      Number 1
    </div>
    <div style="background: lightcoral; grid-row: 2;">
      Number 2
    </div>
    <div style="background: lightgreen; grid-row: 1;">
      Number 3
    </div>
    <div style="background: lightpink; grid-row: 2;">
      Number 4
    </div>
    <div style="background: orange; grid-row: 1;">
      Number 5
    </div>
  </div>
</body>
</html>