grid-gap-decorations-052.html (1270B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: Grid gaps are painted with different outsets in start/end segment endpoints. 4 </title> 5 <link rel="help" href="https://www.w3.org/TR/css-gaps-1/#outset"> 6 <link rel="match" href="grid-gap-decorations-052-ref.html"> 7 <link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com"> 8 <style> 9 body { 10 margin: 0px; 11 } 12 .grid { 13 display: grid; 14 grid-template: repeat(auto-fill, 100px) / repeat(3, 100px); 15 grid-gap: 20px; 16 row-rule: 3px solid gray; 17 column-rule: 3px solid red; 18 column-rule-break: intersection; 19 column-rule-interior-inset-start: 0px; 20 column-rule-interior-inset-end: -5px; 21 row-rule-break: intersection; 22 row-rule-edge-inset-end: 5px; 23 row-rule-edge-inset-start: 1px; 24 left: 0px; 25 top: 0px; 26 } 27 .item { 28 width: 100px; 29 height: 100px; 30 background: lightgray; 31 } 32 </style> 33 <div class="grid"> 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>