Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>Abspos flex container with inset-derived height provides definite cross size to flex items</title>
<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>