Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>CSS Gap Decorations: column rules in a single-track grid-lanes container (row direction)</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-009-ref.html">
<style>
body { margin: 0; }
.lanes {
display: grid-lanes;
grid-template-rows: 140px;
gap: 10px;
background: #cdd5e0;
width: max-content;
column-rule: 4px solid blue;
row-rule: 4px solid gold;
}
.lanes > div {
width: 40px;
background: #5b8def;
color: #fff;
font: 600 12px/1 sans-serif;
}
.lanes > div.w2 { width: 60px; }
.lanes > div.w3 { width: 30px; }
</style>
<div class="lanes">
<div class="w2">1</div>
<div>2</div>
<div class="w3">3</div>
<div class="w2">4</div>
<div>5</div>
</div>