Automatic update from web-platform-tests WebKit export of https://bugs.webkit.org/show_bug.cgi?id=264043 (#60060) -- wpt-commits: 96143e517e0de614f07c99236c21dcf3ead830fc wpt-pr: 60060
40 lines
752 B
HTML
40 lines
752 B
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>
|