flex-gap-decorations-001.html (974B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: column and row gaps are painted. 4 </title> 5 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> 6 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> 7 <link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com"> 8 <style> 9 .flex-container { 10 display: flex; 11 column-gap: 10px; 12 row-gap: 10px; 13 height: 100px; 14 width: 100px; 15 background: red; 16 column-rule-color: green; 17 column-rule-style: solid; 18 column-rule-width: 10px; 19 row-rule-color: green; 20 row-rule-style: solid; 21 row-rule-width: 10px; 22 23 flex-wrap: wrap; 24 } 25 26 .flex-item { 27 background: green; 28 width: 45px; 29 } 30 </style> 31 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 32 <div class="flex-container"> 33 <div class="flex-item"></div> 34 <div class="flex-item"></div> 35 <div class="flex-item"></div> 36 <div class="flex-item"></div> 37 </div>