flex-gap-decorations-016.html (1239B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: flex column and row gaps are painted in the column-reverse flex direction. 4 </title> 5 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> 6 <link rel="match" href="flex-gap-decorations-016-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: 20px; 17 row-gap: 10px; 18 width: 120px; 19 height: 170px; 20 flex-wrap: wrap; 21 flex-direction: column-reverse; 22 column-rule-style: solid; 23 column-rule-color: red; 24 column-rule-width: 20px; 25 row-rule-style: solid; 26 row-rule-color: blue; 27 row-rule-width: 10px; 28 gap-rule-overlap: column-over-row; 29 } 30 31 .items { 32 background-color: rgb(96 139 168 / 0.2); 33 flex-shrink: 1; 34 width: 50px; 35 height: 50px; 36 } 37 38 </style> 39 40 <div id="flexbox"> 41 <div class="items">One</div> 42 <div class="items">Two</div> 43 <div class="items">Three</div> 44 <div class="items">Four</div> 45 <div class="items">Five</div> 46 <div class="items">Six</div> 47 </div>