grid-gap-decorations-054.html (1106B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: Grid gap segments are painted properly with empty areas. Tests 4 scenario where *rule-visibility-items is `around` and *-rule-break is `intersection`. 5 </title> 6 <link rel="help" href="https://www.w3.org/TR/css-gaps-1/"> 7 <link rel="match" href="grid-gap-decorations-054-ref.html"> 8 <link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com"> 9 <style> 10 body { 11 margin: 0px; 12 } 13 .grid { 14 display: grid; 15 grid-template: repeat(3, 100px) / repeat(3, 100px); 16 gap: 20px; 17 row-rule: 6px solid red; 18 column-rule: 6px solid blue; 19 rule-inset: 0px; 20 21 column-rule-visibility-items: around; 22 row-rule-visibility-items: around; 23 24 column-rule-break: intersection; 25 row-rule-break: intersection; 26 } 27 28 .item { 29 width: 100%; 30 height: 100%; 31 background: lightgray; 32 opacity: 0.8; 33 } 34 </style> 35 <div class="grid"> 36 <div class="item" style="grid-area: 1 / 1 / 2 / 3"></div> 37 <div class="item" style="grid-area: 1 / 3 / 4 / 4"></div> 38 <div class="item" style="grid-area: 2 / 1 / 3 / 2"></div> 39 </div>