flex-gap-decorations-008.html (1047B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: flex column gaps are painted on overflowing items. 4 </title> 5 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> 6 <link rel="match" href="flex-gap-decorations-008-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 background-color: rgb(96 139 168 / 0.2); 15 } 16 17 #flexbox { 18 border: 2px solid rgb(96 139 168); 19 border-width: 2px; 20 display: flex; 21 column-gap: 10px; 22 column-rule-style: solid; 23 column-rule-width: 10px; 24 column-rule-color: red; 25 width: 200px; 26 flex-wrap: nowrap; 27 } 28 29 .items { 30 width: 50px; 31 height: 50px; 32 flex-shrink: 0; 33 } 34 </style> 35 36 <div id="flexbox"> 37 <div class="items">One</div> 38 <div class="items">Two</div> 39 <div class="items">Three</div> 40 <div class="items">Four</div> 41 <div class="items">Five</div> 42 <div class="items">Six</div> 43 </div>