LibWeb: Don't limit available space during early height for inline-flex

There was no need to set an available height constraint when doing early
height calculation for inline-flex boxes. It created a situation where
the flex containers could wrongly get zero height early, and then
resolve percentages against zero instead of the real intrinsic size.

Fixes #23942
This commit is contained in:
Andreas Kling 2024-04-13 11:21:54 +02:00
commit f7e57881ad
Notes: sideshowbarker 2024-07-16 19:57:55 +09:00
3 changed files with 29 additions and 1 deletions

View file

@ -0,0 +1,14 @@
<!doctype html><style>
* { outline: 1px solid black; }
html { background: white; }
body {
display: inline-flex;
background: orange;
height: 100%;
}
div {
background: magenta;
height: 200px;
width: 200px;
}
</style><body><div>hello