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/grid-gap-decorations-054.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>
CSS Gap Decorations: Grid gap segments are painted properly with empty areas. Tests
scenario where *rule-visibility-items is `around` and *-rule-break is `intersection`.
</title>
<link rel="match" href="grid-gap-decorations-054-ref.html">
<link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com">
<style>
body {
margin: 0px;
}
.grid {
display: grid;
grid-template: repeat(3, 100px) / repeat(3, 100px);
gap: 20px;
row-rule: 6px solid red;
column-rule: 6px solid blue;
rule-inset: 0px;
column-rule-visibility-items: around;
row-rule-visibility-items: around;
column-rule-break: intersection;
row-rule-break: intersection;
}
.item {
width: 100%;
height: 100%;
background: lightgray;
opacity: 0.8;
}
</style>
<div class="grid">
<div class="item" style="grid-area: 1 / 1 / 2 / 3"></div>
<div class="item" style="grid-area: 1 / 3 / 4 / 4"></div>
<div class="item" style="grid-area: 2 / 1 / 3 / 2"></div>
</div>