Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
<!DOCTYPE html>
<title>CSS Gap Decorations: rule-visibility-items all with occupied first and third row grid lanes</title>
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<link rel="match" href="row-gap-decorations-rule-visibility-items-all-002-ref.html">
<style>
body { margin: 0; }
.lanes {
display: grid-lanes;
grid-template-rows: repeat(5, 60px);
grid-lanes-direction: row;
gap: 20px;
width: max-content;
background: #cdd5e0;
row-rule: 4px solid blue;
row-rule-break: none;
row-rule-visibility-items: all;
}
.lanes > div {
width: 60px;
background: #5b8def;
}
.first { grid-row: 1; }
.third { grid-row: 3; }
</style>
<div class="lanes">
<div class="first"></div>
<div class="third"></div>
</div>