flexbox-safe-overflow-position-005.html (1045B)
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 in the case of wrap-reverse + vertical-lr" /> 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: wrap-reverse; 20 writing-mode: vertical-lr; 21 inline-size: 90px; 22 block-size: 90px; 23 align-content: safe flex-start; 24 justify-content: safe flex-start; 25 } 26 27 .item { 28 flex: 0 0 100px; 29 width: 100px; 30 height: 100px; 31 background: green; 32 } 33 34 </style> 35 36 <p>Test passes if there is a filled green square and <strong>no red</strong>. 37 </p> 38 <div id="reference-overlapped-red"></div> 39 40 <div class="flex"> 41 <div class="item"></div> 42 </div>