Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Grid Lanes: track-reverse OOF static positions with auto height</title>
<link rel="author" title="Hoch Hochkeppel" href="mailto:mhochk@microsoft.com">
<link rel="match" href="column-grid-lanes-oof-track-reverse-001-ref.html">
<meta name="assert" content="Track reversal places OOF items at inline-end in a column grid-lanes container with indefinite block size.">
<style>
html, body {
font: 16px/1 monospace;
background: white;
}
.grid-lanes {
display: grid-lanes;
grid-lanes-direction: column track-reverse;
grid-auto-flow: row-reverse;
grid-template-columns: 80px;
gap: 10px;
width: 200px;
outline: 1px solid black;
position: relative;
}
.item {
display: flex;
align-items: center;
justify-content: center;
height: 40px;
background: lightblue;
}
.oof {
position: absolute;
width: 20px;
height: 20px;
background: red;
}
</style>
<div class="grid-lanes">
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
<div class="oof" style="top: 0;"></div>
<div class="oof" style="top: 50px;"></div>
<div class="oof" style="bottom: 0;"></div>
</div>