grid-gap-decorations-037.html (1227B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: Gaps are painted with container with overflow scroll and no background. 4 </title> 5 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> 6 <link rel="match" href="grid-gap-decorations-037-ref.html"> 7 <link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com"> 8 <style> 9 body { 10 margin: 0px; 11 } 12 13 .grid-container { 14 display: grid; 15 grid-gap: 10px; 16 grid-template-columns: 100px 100px 100px; 17 grid-template-rows: 100px 100px 100px; 18 width: 130px; 19 height: 130px; 20 overflow: scroll; 21 22 column-rule-color: blue; 23 column-rule-style: solid; 24 column-rule-width: 5px; 25 26 row-rule-color: gold; 27 row-rule-style: solid; 28 row-rule-width: 5px; 29 } 30 31 .item { 32 background: gray; 33 } 34 </style> 35 36 <body> 37 <div class="grid-container"> 38 <div class="item"></div> 39 <div class="item"></div> 40 <div class="item"></div> 41 <div class="item"></div> 42 <div class="item"></div> 43 <div class="item"></div> 44 <div class="item"></div> 45 <div class="item"></div> 46 <div class="item"></div> 47 </div> 48 </body>