flexbox-safe-overflow-position-004.html (999B)
1 <!DOCTYPE html> 2 <link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org"> 3 <link rel="help" href="https://drafts.csswg.org/css-align-3/#overflow-values"> 4 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 5 <meta name="assert" 6 content="safe flex-start allows for overflow past the end edge, which is bottom/right even in the case of column-reverse" /> 7 8 <style> 9 #reference-overlapped-red { 10 position: absolute; 11 background-color: red; 12 width: 100px; 13 height: 100px; 14 z-index: -1; 15 } 16 17 .flex { 18 display: flex; 19 flex-flow: column-reverse; 20 width: 90px; 21 height: 90px; 22 align-content: safe flex-start; 23 justify-content: safe flex-start; 24 } 25 26 .item { 27 flex: 0 0 100px; 28 width: 100px; 29 height: 100px; 30 background: green; 31 } 32 33 </style> 34 35 <p>Test passes if there is a filled green square and <strong>no red</strong>. 36 </p> 37 <div id="reference-overlapped-red"></div> 38 39 <div class="flex"> 40 <div class="item"></div> 41 </div>