Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>CSS Gap Decorations: rule-visibility-items between uses whole-track occupancy in column grid-lanes</title>
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<link rel="match" href="column-gap-decorations-rule-visibility-items-between-002-ref.html">
<style>
body { margin: 0; }
.lanes {
display: grid-lanes;
grid-template-columns: repeat(3, 60px);
gap: 20px;
width: max-content;
background: #cdd5e0;
column-rule: 4px solid blue;
column-rule-break: none;
column-rule-visibility-items: between;
}
.lanes > div {
width: 60px;
height: 40px;
background: #5b8def;
}
.track-one { grid-column: 1; }
.track-two { grid-column: 2; }
</style>
<div class="lanes">
<div class="track-one"></div>
<div class="track-one"></div>
<div class="track-one"></div>
<div class="track-one"></div>
<div class="track-one"></div>
<div class="track-two"></div>
</div>