1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 10:57:34 +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

@ -99,6 +99,8 @@ protected:
static bool should_treat_width_as_auto(Box const&, AvailableSpace const&);
static bool should_treat_height_as_auto(Box const&, AvailableSpace const&);
[[nodiscard]] bool should_treat_max_height_as_none(Box const&) const;
OwnPtr<FormattingContext> layout_inside(Box const&, LayoutMode, AvailableSpace const&);
void compute_inset(Box const& box);