1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +00:00

LibWeb: Treat % max-height as none when containing block size indefinite

Fixes #19371
This commit is contained in:
Andreas Kling 2023-06-14 15:33:06 +02:00
parent b6f3369b66
commit 43e1343abf
6 changed files with 101 additions and 5 deletions

View file

@ -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));