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