flex-gap-decorations-025.html (646B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: flex gaps are painted when there's only one flex line 4 </title> 5 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> 6 <link rel="match" href="flex-gap-decorations-025-ref.html"> 7 <link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com"> 8 <style> 9 body { 10 margin: 0; 11 } 12 13 main { 14 display: flex; 15 flex-wrap: wrap; 16 gap: 10px; 17 row-rule: 10px solid gold; 18 } 19 20 .item { 21 background-color: teal; 22 height: 50px; 23 flex-basis: 100%; 24 } 25 </style> 26 <main> 27 <div class="item"></div> 28 <div class="item"></div> 29 </main>