grid-gap-decorations-013.html (1141B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: An outset of -5px shortens the ends of decorations relative to the edges of adjacent items. 4 </title> 5 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> 6 <link rel="match" href="grid-gap-decorations-013-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-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 column-rule-inset: 5px; 28 column-rule-break: intersection; 29 } 30 31 .item { 32 background: gray; 33 opacity: 0.5; 34 } 35 </style> 36 37 <body> 38 <div class="grid-container"> 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 class="item"></div> 48 </div> 49 </body>