Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-gaps/grid-lanes/column-gap-decorations-rule-visibility-items-around-011.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Gap Decorations: around column rule visibility paints beside empty lane space with column-rule-break: none in grid lanes</title>
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<link rel="match" href="column-gap-decorations-rule-visibility-items-around-011-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-inset: 0px;
column-rule-break: none;
column-rule-visibility-items: around;
}
.lanes > div {
height: 40px;
background: #5b8def;
}
.lanes > .spanner {
grid-column: 2 / span 2;
height: 60px;
background: #2a4f8f;
}
.lane-one { grid-column: 1; }
.lane-three { grid-column: 3; }
</style>
<div class="lanes">
<div class="spanner"></div>
<div class="lane-three"></div>
<div class="lane-three"></div>
<div class="lane-three"></div>
<div class="lane-one"></div>
<div class="lane-one"></div>
<div class="lane-one"></div>
<div class="lane-one"></div>
<div class="lane-one"></div>
</div>