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