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/row-gap-decorations-rule-visibility-items-around-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Gap Decorations: rule-visibility-items around 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-around-001-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 gold;
row-rule-break: none;
row-rule-visibility-items: around;
}
.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>