Status: PASS | Duration: 11ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-flexbox/flex-abspos-inset-cross-size-001.html
<!DOCTYPE html> <title>Abspos flex container with inset-derived height provides definite cross size to flex items</title> <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#definite-sizes"> <link rel="match" href="flex-abspos-inset-cross-size-001-ref.html"> <style> .holder { height: 200px; position: relative; } .flex { display: flex; position: absolute; top: 0; bottom: 0; } img { display: block; } </style> <p>Test passes if the two images below are the same size.</p> <div class="holder"> <div class="flex"> <img src="../support/1x1-green.png"> </div> </div> <div class="holder"> <div class="flex" style="position: static; height: 200px;"> <img src="../support/1x1-green.png"> </div> </div>
/css/css-flexbox/flex-abspos-inset-cross-size-001-ref.html
<!DOCTYPE html> <title>Reference</title> <style> .holder { height: 200px; position: relative; } .flex { display: flex; height: 200px; } img { display: block; } </style> <p>Test passes if the two images below are the same size.</p> <div class="holder"> <div class="flex"> <img src="../support/1x1-green.png"> </div> </div> <div class="holder"> <div class="flex"> <img src="../support/1x1-green.png"> </div> </div>