Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>CSS Gap Decorations: a dense tail split before a later spanner keeps its per-lane stacking-axis rules in correct order in row grid-lanes</title>
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<link rel="help" href="https://drafts.csswg.org/css-gaps-1/">
<link rel="help" href="https://drafts.csswg.org/css-grid-3/">
<link rel="match" href="row-gap-decorations-021-ref.html">
<style>
body { margin: 0; }
.lanes {
display: grid-lanes;
grid-template-rows: repeat(3, 100px);
grid-lanes-pack: dense;
flow-tolerance: 0;
row-gap: 20px;
column-gap: 16px;
background: #cdd5e0;
width: max-content;
column-rule: 4px solid gold;
}
.lanes > div {
background: #5b8def;
}
.lanes > div.a { grid-row: 1; width: 24px; }
.lanes > div.b { grid-row: 2; width: 88px; }
.lanes > div.c { grid-row: 3; width: 240px; }
.lanes > div.s { grid-row: 2 / span 2; width: 48px; background: #8a6df0; }
.lanes > div.d { grid-row: 1 / span 2; width: 64px; background: #8a6df0; }
.lanes > div.f { grid-row: 1; width: 40px; background: #1f9d6b; }
</style>
<div class="lanes">
<div class="a"></div>
<div class="b"></div>
<div class="c"></div>
<div class="s"></div>
<div class="d"></div>
<div class="f"></div>
</div>