wpt / css / css-grid / grid-lanes / item-placement / flow-tolerance / column-initial-flow-tolerance.html

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

/css/css-grid/grid-lanes/item-placement/flow-tolerance/column-initial-flow-tolerance.html

<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>CSS Grid Lanes Test: Initial value of flow-tolerance</title>
<link rel="author" title="Ethan Jimenez" href="mailto:ethavar@microsoft.com">
<link rel="help" href="https://drafts.csswg.org/css-grid-3/#item-slack">
<link rel="match" href="column-initial-flow-tolerance-ref.html">
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
.grid-lanes {
    display: grid-lanes;
    background: gray;
    font: 50px/1 Ahem;
    grid-template-columns: repeat(2, 1fr);
    flow-tolerance: initial;
    gap: 20px;
    padding: 20px;
    width: 400px;
}

.auto-item {
    padding: 10px;
}

.auto-item:nth-of-type(1) {
    background: lightskyblue;
}

.auto-item:nth-of-type(2) {
    background: lightcoral;
}

.auto-item:nth-of-type(3) {
    background: lightgreen;
}

.auto-item:nth-of-type(4) {
    background: palegoldenrod;
}
</style>
<body>
  <p>Test that the initial tie threshold for grid-lanes is correctly resolved.</p>
  <div class="grid-lanes">
    <div class="auto-item" style="height: 80px"></div>
    <div class="auto-item" style="height: 30px"></div>
    <div class="auto-item" style="height: 30px"></div>
    <div class="auto-item" style="height: 80px"></div>
  </div>
</body>
</html>

/css/css-grid/grid-lanes/item-placement/flow-tolerance/column-initial-flow-tolerance-ref.html

<!DOCTYPE html>
<html>
<style>
.grid {
    display: grid;
    background: gray;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    width: 400px;
}

.flex {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
</style>
<body>
  <p>Test that the initial tie threshold for grid-lanes is correctly resolved.</p>
  <div class="grid">
    <div class="flex">
      <div style="background: lightskyblue; height: 100px"></div>
      <div style="background: lightgreen; height: 50px"></div>
    </div>
    <div class="flex">
      <div style="background: lightcoral; height: 50px"></div>
      <div style="background: palegoldenrod; height: 100px"></div>
    </div>
  </div>
</body>
</html>