mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
Originally,7200b3a16cintroduced a two-pass system to determine hypothetical cross sizes. Later, this was partially reverted in0084d992d4, 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.
19 lines
271 B
HTML
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">
|