Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>
CSS Gap Decorations: Grid gap segments are painted properly with empty areas. Tests
scenario where *rule-visibility-items is `between` and *rule-break is `intersection`.
</title>
<link rel="help" href="https://www.w3.org/TR/css-gaps-1/">
<link rel="match" href="grid-gap-decorations-056-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: between;
row-rule-visibility-items: between;
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>