flex-gap-decorations-009.html (1381B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: flex column and row gaps are painted with intersection rule break. 4 </title> 5 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> 6 <link rel="match" href="flex-gap-decorations-009-ref.html"> 7 <link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com"> 8 <style> 9 body { 10 margin: 0px; 11 } 12 13 #flexbox { 14 border: 2px solid rgb(96 139 168); 15 display: flex; 16 column-gap: 10px; 17 row-gap: 10px; 18 row-rule-style: solid; 19 row-rule-color: blue; 20 row-rule-width: 10px; 21 row-rule-break: intersection; 22 row-rule-inset: 0; 23 column-rule-break: intersection; 24 column-rule-style: solid; 25 column-rule-color: red; 26 column-rule-width: 10px; 27 column-rule-inset: 0; 28 width: 170px; 29 flex-wrap: wrap; 30 } 31 32 .items { 33 background-color: rgb(96 139 168 / 0.2); 34 flex-shrink: 1; 35 width: 50px; 36 height: 50px; 37 } 38 39 #four { 40 width: 100px; 41 } 42 </style> 43 44 <div id="flexbox"> 45 <div class="items">One</div> 46 <div class="items">Two</div> 47 <div class="items">Three</div> 48 <div class="items" id="four">Four</div> 49 <div class="items">Five</div> 50 <div class="items">Six</div> 51 <div class="items">Seven</div> 52 <div class="items">Eight</div> 53 </div>