grid-gap-decorations-031.html (829B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: Gaps are painted when items overflow container - no column gaps. 4 </title> 5 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> 6 <link rel="match" href="grid-gap-decorations-031-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 grid-gap: 10px; 16 grid-template-rows: 100px 100px 100px; 17 grid-auto-flow: column; 18 width: 120px; 19 height: 120px; 20 21 row-rule-color: red; 22 row-rule-style: solid; 23 row-rule-width: 5px; 24 } 25 26 .item { 27 background: gray; 28 opacity: 0.5; 29 } 30 </style> 31 32 <body> 33 <div class="grid-container"> 34 <div class="item"></div> 35 <div class="item"></div> 36 <div class="item"></div> 37 </div> 38 </body>