gap-013.html (860B)
1 <!DOCTYPE html> 2 <title>Flex gaps</title> 3 <link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org"> 4 <link rel="help" href="https://drafts.csswg.org/css-flexbox/#resolve-flexible-lengths"> 5 <link rel="help" href="https://drafts.csswg.org/css-align/#gaps"> 6 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 7 <meta name="assert" content="Main axis gap makes grow turn to shrink." /> 8 9 <style> 10 .item { 11 width: 30px; 12 flex: 1 1 auto; 13 background: red; 14 } 15 #reference-overlapped-red { 16 position: absolute; 17 background-color: red; 18 width: 100px; 19 height: 100px; 20 z-index: -1; 21 } 22 </style> 23 24 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 25 26 <div style="display: flex; height: 100px; width: 100px; column-gap: 100px; background: green;"> 27 <div class=item></div> 28 <div class=item></div> 29 </div>