Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>Abspos flex inside a fixed-height intermediate block within an outer flex item</title>
<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>