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