grid-gap-decorations-038.html (1006B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: grid column gaps are painted with different sized gaps and column-rule-inset 0. 4 </title> 5 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> 6 <link rel="match" href="../agnostic/gap-decorations-002-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 height: 110px; 15 width: 120px; 16 17 display: grid; 18 grid-template-columns: repeat(2, 1fr); 19 20 column-gap: 20px; 21 row-gap: 10px; 22 23 column-rule-color: blue; 24 column-rule-style: solid; 25 column-rule-width: 20px; 26 27 row-rule-color: gold; 28 row-rule-style: solid; 29 row-rule-width: 10px; 30 31 row-rule-break: intersection; 32 row-rule-inset: 0; 33 } 34 35 .grid-item { 36 background: skyblue; 37 } 38 </style> 39 <div class="grid-container"> 40 <div class="grid-item"></div> 41 <div class="grid-item"></div> 42 <div class="grid-item"></div> 43 <div class="grid-item"></div> 44 </div>