grid-gap-decorations-056.html (1107B)
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 `between` 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-056-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: between; 22 row-rule-visibility-items: between; 23 24 column-rule-break: intersection; 25 row-rule-break: intersection; 26 } 27 .item { 28 width: 100%; 29 height: 100%; 30 background: lightgray; 31 opacity: 0.8; 32 } 33 </style> 34 <div class="grid"> 35 <div class="item" style="grid-area: 1 / 1 / 2 / 3"></div> 36 <div class="item" style="grid-area: 1 / 3 / 4 / 4"></div> 37 <div class="item" style="grid-area: 2 / 1 / 3 / 2"></div> 38 </div>