grid-gap-decorations-009.html (1047B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: Grid with 2x2 item, decorations are not painted within item when *-rule-break is spanning-item. 4 </title> 5 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> 6 <link rel="match" href="grid-gap-decorations-009-ref.html"> 7 <link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com"> 8 <style> 9 body { 10 margin: 0px; 11 } 12 13 .grid-container { 14 display: grid; 15 gap: 10px; 16 grid-template-columns: 100px 100px 100px; 17 height: 320px; 18 19 column-rule-color: blue; 20 column-rule-style: solid; 21 column-rule-width: 5px; 22 23 row-rule-color: red; 24 row-rule-style: solid; 25 row-rule-width: 5px; 26 } 27 28 .item { 29 background: gray; 30 opacity: 0.5; 31 } 32 </style> 33 <div class="grid-container"> 34 <div class="item" style="grid-column: 1 / 3; grid-row: 1 / 2;"></div> 35 <div class="item" style=" grid-column: 3 / 4;"></div> 36 <div class="item"></div> 37 <div class="item" style="grid-column: 2 / 4; grid-row: 2 / 4;"></div> 38 <div class="item"></div> 39 </div>