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

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

/css/css-grid/grid-lanes/item-placement/flow-tolerance/row-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="Alison Maher" href="mailto:almaher@microsoft.com">
<link rel="help" href="https://drafts.csswg.org/css-grid-3/#item-slack">
<link rel="match" href="row-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-rows: repeat(2, 1fr);
    flow-tolerance: initial;
    gap: 20px;
    padding: 20px;
    width: 170px;
}

.auto-item {
    padding: 10px;
    height: 100px;
}

.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="width: 80px"></div>
    <div class="auto-item" style="width: 30px"></div>
    <div class="auto-item" style="width: 30px"></div>
    <div class="auto-item" style="width: 80px"></div>
  </div>
</body>
</html>

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

<!DOCTYPE html>
<html>
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
.grid {
    display: grid;
    background: gray;
    font: 50px/1 Ahem;
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    width: 170px;
}

.auto-item {
    padding: 10px;
    height: 100px;
}

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

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

.auto-item:nth-of-type(3) {
    background: palegoldenrod;
    grid-column: 2;
    transform: translateX(-50px);
}

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