Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<link rel="help" href="https://drafts.csswg.org/css-grid-3">
<link rel="match" href="column-reverse-001-ref.html">
<link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com">
<style>
.grid-lanes {
display: grid-lanes;
item-tolerance: 0;
grid-template-columns: repeat(3, 50px);
gap: 10px;
masonry-direction: column-reverse;
}
</style>
<body>
<p>Test that masonry items with reverse auto placement and explicit placement are correctly positioned within the grid axis.</p>
<div class="grid-lanes">
<div style="background: lavender; height: 20px;">1</div>
<div style="background: lightskyblue; height: 20px;">2</div>
<div style="background: lightgreen; height: 20px;">3</div>
<div style="background: lightpink; grid-column: span 2; height: 20px;">4</div>
<div style="background: lavender; height: 20px;">5</div>
<div style="background: lightskyblue; height: 20px;">6</div>
<div style="background: lightgreen; height: 20px;">7</div>
<div style="background: lightpink; grid-column: span 2; height: 20px;">implicit</div>
<div style="background: lightpink; grid-column: 1 / span 2; height: 20px;">explicit</div>
<div style="background: lavender; height: 20px;">9</div>
<div style="background: lightskyblue; height: 20px;">10</div>
<div style="background: lavender; height: 30px;">11</div>
<div style="background: lightskyblue; height: 40px;">12</div>
<div style="background: lightgreen; height: 50px;">13</div>
<div style="background: lightgreen; height: 10px;">14</div>
<div style="background: lightskyblue; height: 40px;">15</div>
</div>
</body>
</html>