mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Treat % max-height as none when containing block size indefinite
Fixes #19371
This commit is contained in:
parent
b6f3369b66
commit
43e1343abf
Notes:
sideshowbarker
2024-07-17 02:06:40 +09:00
Author: https://github.com/awesomekling
Commit: 43e1343abf
Pull-request: https://github.com/SerenityOS/serenity/pull/19396
Issue: https://github.com/SerenityOS/serenity/issues/19371
6 changed files with 101 additions and 5 deletions
|
@ -458,7 +458,7 @@ void BlockFormattingContext::compute_height(Box const& box, AvailableSpace const
|
|||
}
|
||||
}
|
||||
|
||||
if (!computed_values.max_height().is_none()) {
|
||||
if (!should_treat_max_height_as_none(box)) {
|
||||
auto max_height = calculate_inner_height(box, available_space.height, computed_values.max_height());
|
||||
if (!max_height.is_auto())
|
||||
height = min(height, max_height.to_px(box));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue