grid-gap-decorations-033.html (933B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: Decorations are painted when rule thickness is greater than gap size. 4 </title> 5 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> 6 <link rel="match" href="grid-gap-decorations-033-ref.html"> 7 <link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com"> 8 <style> 9 body { 10 margin: 0px; 11 overflow: hidden; 12 } 13 14 .grid-container { 15 display: grid; 16 gap: 10px; 17 grid-template-columns: repeat(3, 50px); 18 grid-template-rows: repeat(6, 50px); 19 width: 50px; 20 height: 50px; 21 22 column-rule-color: blue; 23 column-rule-style: solid; 24 column-rule-width: 10px; 25 } 26 27 </style> 28 29 <body> 30 <div class="grid-container"></div> 31 <script> 32 const grid = document.querySelector('.grid-container'); 33 34 grid.style.rowRuleColor = 'red'; 35 grid.style.rowRuleStyle = 'solid'; 36 grid.style.rowRuleWidth = 'repeat(4, 5px) 200px'; 37 </script> 38 </body>