Status: PASS | Duration: 8ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-flexbox/flex-abspos-inset-nested-002.html
<!DOCTYPE html> <title>Abspos flex inside a fixed-height intermediate block within an outer flex item</title> <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#definite-sizes"> <link rel="match" href="flex-abspos-inset-nested-002-ref.html"> <style> .outer-flex { display: flex; } .flex-item { width: 100%; } .intermediate { position: relative; height: 300px; } .inner-flex { display: flex; position: absolute; top: 0; bottom: 0; } img { display: block; } </style> <p>Test passes if there is a 300x300 green square.</p> <div class="outer-flex"> <div class="flex-item"> <div class="intermediate"> <div class="inner-flex"> <img src="../support/1x1-green.png"> </div> </div> </div> </div>
/css/css-flexbox/flex-abspos-inset-nested-002-ref.html
<!DOCTYPE html> <title>Reference</title> <style> .ref { width: 300px; height: 300px; background: green; } </style> <p>Test passes if there is a 300x300 green square.</p> <div class="ref"></div>