flex-gap-decorations-027.html (1108B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: flex column gaps are painted on overflowing items with negative margin. 4 </title> 5 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> 6 <link rel="match" href="flex-gap-decorations-027-ref.html"> 7 <link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com"> 8 <style> 9 body { 10 margin: 0 0 0 200px; 11 } 12 #flexbox>* { 13 background-color: rgb(96 139 168 / 0.2); 14 } 15 #flexbox { 16 border: 2px solid rgb(96 139 168); 17 border-width: 2px; 18 display: flex; 19 column-gap: 10px; 20 column-rule-style: solid; 21 column-rule-width: 10px; 22 column-rule-color: red; 23 width: 200px; 24 flex-wrap: nowrap; 25 } 26 .items { 27 width: 50px; 28 height: 50px; 29 flex-shrink: 0; 30 } 31 </style> 32 <div id="flexbox"> 33 <div class="items" style="margin-left: -150px">One</div> 34 <div class="items">Two</div> 35 <div class="items">Three</div> 36 <div class="items">Four</div> 37 <div class="items">Five</div> 38 <div class="items">Six</div> 39 </div>