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:
parent
b6f3369b66
commit
43e1343abf
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