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/column-early-breaks-017.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Column grid-lanes spanner pushes account for margins, gaps, and lane slack</title>
<meta name="author" title="Kurt Catti-Schmidt" href="mailto:kschmi@microsoft.com" />
<link rel="match" href="column-early-breaks-017-ref.html">
<style>
.multicol {
background: green;
columns: 2;
column-fill: auto;
column-gap: 0;
width: 80px;
height: 100px;
}
.grid-lanes {
display: grid-lanes;
grid-template-columns: repeat(2, 20px);
row-gap: 10px;
width: 40px;
}
</style>
<p>The colored rectangles on the green background must match the reference.</p>
<div class="multicol">
<div class="grid-lanes">
<div style="grid-column: 1;">
<div style="height: 20px;"></div>
<div style="height: 20px; background: orange; break-before: column;"></div>
</div>
<div style="grid-column: 2; height: 110px; background: blue;"></div>
<div style="grid-column: span 2; height: 20px; margin-block: 5px; background: teal;"></div>
<div style="grid-column: 1; height: 20px; background: purple;"></div>
</div>
</div>