mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-09 19:16:02 +00:00
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:
parent
69d6abc60f
commit
f7e57881ad
Notes:
sideshowbarker
2024-07-16 19:57:55 +09:00
Author: https://github.com/awesomekling
Commit: f7e57881ad
Pull-request: https://github.com/SerenityOS/serenity/pull/23948
Issue: https://github.com/SerenityOS/serenity/issues/23942
3 changed files with 29 additions and 1 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue