flexbox-column-row-gap-001.html (1726B)
1 <!DOCTYPE html> 2 <!-- 3 Any copyright is dedicated to the Public Domain. 4 http://creativecommons.org/publicdomain/zero/1.0 5 --> 6 <!-- 7 Testcase for the correctness of gaps in horizontal and vertical multi-line 8 flex containers. 9 --> 10 <html> 11 <head> 12 <title>CSS Test: Testing row and column gaps in horizontal and vertical multi-line flex containers with the space-around property and auto margins</title> 13 <link rel="author" title="Mihir Iyer" href="mailto:miyer@mozilla.com"> 14 <link rel="help" href="https://drafts.csswg.org/css-align/#gap-flex"> 15 <link rel="match" href="flexbox-column-row-gap-001-ref.html"> 16 <meta charset="utf-8"> 17 <style> 18 .flexContainer { 19 display: flex; 20 width: 200px; 21 height: 220px; 22 border: 1px solid black; 23 column-gap: 10%; 24 row-gap: 40px; 25 align-content: space-around; 26 justify-content: space-around; 27 float: left; 28 } 29 .rowWrap { 30 flex-flow: row wrap; 31 } 32 .columnWrap { 33 flex-flow: column wrap; 34 } 35 .item { 36 border: 1px solid blue; 37 background: lightblue; 38 width: 28px; 39 height: 28px; 40 } 41 .autoLBMargins { 42 margin-left: auto; 43 margin-bottom: auto; 44 } 45 </style> 46 </head> 47 <body> 48 <div class="flexContainer rowWrap"> 49 <div class="item"></div> 50 <div class="item"></div> 51 <div class="item"></div> 52 <div class="item"></div> 53 <div class="item autoLBMargins"></div> 54 <div class="item"></div> 55 </div> 56 <div class="flexContainer columnWrap"> 57 <div class="item"></div> 58 <div class="item"></div> 59 <div class="item"></div> 60 <div class="item"></div> 61 <div class="item"></div> 62 <div class="item autoLBMargins"></div> 63 </div> 64 </body> 65 </html>