Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-break/grid/grid-lanes/row-multi-lane-fragmentation-026.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>
Row fill-reverse fragmentation with stacking-axis stretch densely packed after a spanner.
</title>
<link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com">
<link rel="match" href="../../../reference/ref-filled-green-100px-square.xht">
<style>
.multicol {
background: red;
column-count: 4;
column-fill: auto;
column-gap: 0px;
height: 100px;
width: 100px;
}
.grid-lanes {
display: grid-lanes;
grid-lanes-direction: row fill-reverse;
grid-lanes-pack: dense;
grid-template-rows: repeat(2, 200px);
height: 400px;
justify-items: stretch;
width: 25px;
}
.grid-lanes > div {
background: green;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div class="multicol">
<div class="grid-lanes">
<div style="height: 200px; width: 15px;"></div>
<div style="grid-row: 1 / span 2; width: 10px;"></div>
<!-- Reverse fill puts the packed item after the spanner; stretch grows toward inline-start. -->
<div style="grid-row: 2; height: 200px;">
<div style="height: 50px; width: 5px;"></div>
</div>
</div>
</div>