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

Status: PASS | Duration: 8ms | 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-017.html

<!DOCTYPE html>
<html>
<title>Auto-fit repeat tracks with auto size and explicit spanning item placement</title>
<link rel="help" href="https://drafts.csswg.org/css-grid-3">
<link rel="match" href="column-auto-repeat-auto-017-ref.html">
<link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com">
<style>
.grid-lanes {
    display: grid-lanes;
    flow-tolerance: 0;
    grid-template-columns: repeat(auto-fit, auto);
    height: 200px;
    width: 500px;
    gap: 10px;
}

.grid-lanes > div {
    width: 50px;
    height: 100px;
    background-color: orange;
}
</style>
<div class="grid-lanes">
  <div style="grid-column: span 4; width: 200px;">1</div>
  <div style="grid-column: 4 / span 2; width: 100px;">2</div>
  <div style="grid-column: 9 / span 2; width: 100px;">3</div>
  <div style="grid-column: 7;">4</div>
  <div style="grid-column: span 2; width: 100px;">5</div>
  <div>6</div>
</div>
</html>

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

<!DOCTYPE html>
<html>
<style>
.grid-lanes {
    display: grid-lanes;
    grid-template-columns: repeat(9, auto);
    height: 200px;
    width: 500px;
    gap: 10px;
}

.grid-lanes > div {
    width: 50px;
    height: 100px;
    background-color: orange;
}
</style>
<div class="grid-lanes">
  <div style="grid-column: span 4; width: 200px;">1</div>
  <div style="grid-column: 4 / span 2; width: 100px;">2</div>
  <div style="grid-column: 8 / span 2; width: 100px;">3</div>
  <div style="grid-column: 7;">4</div>
  <div style="grid-column: span 2; width: 100px;">5</div>
  <div>6</div>
</div>
</html>