Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>CSS Gap Decorations: an item densely packed above a spanner owns its own narrow row rule over its start lane in 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="column-gap-decorations-031-ref.html">
<style>
body { margin: 0; }
.lanes {
display: grid-lanes;
grid-template-columns: repeat(3, 60px);
grid-lanes-pack: dense;
flow-tolerance: 0;
gap: 10px;
background: #cdd5e0;
width: max-content;
row-rule: 4px solid gold;
}
.lanes > div {
background: #5b8def;
color: #fff;
font: 600 12px/1 sans-serif;
}
.lanes > div.c1 { grid-column: 1; }
.lanes > div.c2 { grid-column: 2; }
.lanes > div.top { height: 20px; }
.lanes > div.tall { height: 80px; }
.lanes > div.spanner {
grid-column: 1 / span 2;
height: 40px;
background: #8a6df0;
}
.lanes > div.packed { height: 30px; background: #1f9d6b; }
</style>
<div class="lanes">
<div class="c1 top">1</div>
<div class="c2 tall">2</div>
<div class="spanner">3 (span 2)</div>
<div class="c1 packed">4 (dense)</div>
</div>