Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>CSS Gap Decorations: between column rule visibility with a centered fourth item after a spanner in two dense lanes</title>
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<link rel="match" href="column-gap-decorations-rule-visibility-items-between-014-ref.html">
<style>
body { margin: 0; }
.lanes {
background: #cdd5e0;
column-rule: 4px solid blue;
column-rule-break: intersection;
column-rule-visibility-items: between;
display: grid-lanes;
flow-tolerance: 0;
gap: 20px;
grid-lanes-direction: column;
grid-lanes-pack: dense;
grid-template-columns: repeat(2, 60px);
width: max-content;
}
.lanes > div {
background: #5b8def;
color: white;
font: 600 12px/1 sans-serif;
grid-column: 1;
height: 40px;
}
.lanes > .second-lane { grid-column: 2; }
.lanes > .medium { height: 60px; }
.lanes > .tall { height: 140px; }
.lanes > .spanner {
background: #8a6df0;
grid-column: 1 / -1;
}
.lanes > .centered {
align-self: center;
background: #1f9d6b;
height: 20px;
}
</style>
<div class="lanes">
<div>1</div>
<div class="second-lane">A</div>
<div class="spanner">2</div>
<div>3</div>
<div class="centered">4</div>
<div class="second-lane">B</div>
<div class="second-lane medium">C</div>
<div class="second-lane tall">D</div>
</div>