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-inset-cap-vs-junction.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Gap Decorations: stacking-axis rules distinguish zero cap insets from asymmetric junction insets in grid-lanes</title>
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<link rel="match" href="column-gap-decorations-inset-cap-vs-junction-ref.html">
<style>
body { margin: 0; }
.lanes {
display: grid-lanes;
grid-template-columns: repeat(3, 80px);
gap: 20px;
background: #cdd5e0;
width: max-content;
column-rule: 4px solid blue;
row-rule: 4px solid gold;
row-rule-inset-cap-start: 0;
row-rule-inset-cap-end: 0;
row-rule-inset-junction-start: 6px;
row-rule-inset-junction-end: 18px;
}
.lanes > div { background: #5b8def; }
.a { grid-column: 1; height: 60px; }
.b { grid-column: 1; height: 40px; }
.c { grid-column: 2; height: 60px; }
.f { grid-column: 2; height: 40px; }
.d { grid-column: 3; height: 60px; }
.e { grid-column: 3; height: 40px; }
</style>
<div class="lanes">
<div class="a"></div>
<div class="b"></div>
<div class="c"></div>
<div class="f"></div>
<div class="d"></div>
<div class="e"></div>
</div>