justify-content_space-between-003.tentative.html (1450B)
1 <!DOCTYPE html> 2 <link rel="help" href="https://drafts.csswg.org/css-align-3/#valdef-align-content-space-between"> 3 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1953102"> 4 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/11937"> 5 <!-- Note: this test is named ".tentative" pending a resolution of the issue 6 linked above, #11937. --> 7 <link rel="match" href="../reference/ref-filled-green-100px-square-only.html"> 8 <style> 9 .container { 10 display: flex; 11 overflow: hidden; 12 width: 100px; 13 height: 50px; 14 justify-content: space-between; 15 } 16 </style> 17 <p>Test passes if there is a filled green square.</p> 18 <div class="container" style="flex-direction: column-reverse"> 19 <!-- 'justify-content' has to fall back to 'flex-start' alignment in order 20 for us to show the green bottom-most portion of this flex item: --> 21 <div style="height: 300px"> 22 <div style="width: 200px; height: 200px; background: red"></div> 23 <div style="width: 100px; height: 50px; background: green"></div> 24 </div> 25 </div> 26 <div class="container" style="flex-direction:row-reverse"> 27 <!-- 'justify-content' has to fall back to 'flex-start' alignment in order 28 for us to show the green right-most portion of this flex item: --> 29 <div style="width: 300px; display: flex"> 30 <div style="width: 200px; height: 50px; background: red"></div> 31 <div style="width: 100px; height: 50px; background: green"></div> 32 </div> 33 </div>