Files
ladybird/Tests/LibWeb/Layout/input/flex/nested-min-width-item.html
Jelle Raaijmakers 3741d3040c LibWeb: Support percentage values in min/max flex item size constraints
Originally, 7200b3a16c introduced a two-pass system to determine
hypothetical cross sizes. Later, this was partially reverted in
0084d992d4, but some code was left behind that caused resolution of
percentages in `{min/max}-{width/height}` size constraints not to work.

Through intrinsic sizing, we can potentially end up with a definite
available space for the items in the last FC run. At that point we
should be able to resolve percentages against the available space, but
we were never doing that.
2025-11-05 12:01:40 +01:00

19 lines
271 B
HTML

<!DOCTYPE html>
<style>
.a {
display: flex;
flex-direction: column;
align-items: center;
}
.b {
background: blue;
min-width: 100%;
}
.c {
background: red;
height: 25px;
width: 50px;
}
</style>
<div class="a"><div class="b"><div class="c">