1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:57:35 +00:00

LibWeb: Treat cross min/max sizes better in flexbox layout

For percentage cross min/max sizes that resolve against indefinite
available space, we now essentially ignore them instead of resolving
them to 0 at the start of layout.
This commit is contained in:
Andreas Kling 2022-10-07 13:58:18 +02:00
parent 104b51b912
commit 78bc856e07
2 changed files with 17 additions and 10 deletions

View file

@ -140,7 +140,7 @@ private:
void determine_hypothetical_cross_size_of_item(FlexItem&, bool resolve_percentage_min_max_sizes);
void calculate_cross_size_of_each_flex_line(float cross_min_size, float cross_max_size);
void calculate_cross_size_of_each_flex_line();
CSS::AlignItems alignment_for_item(FlexItem const&) const;
@ -150,7 +150,7 @@ private:
void align_all_flex_items_along_the_cross_axis();
void determine_flex_container_used_cross_size(float cross_min_size, float cross_max_size);
void determine_flex_container_used_cross_size();
void align_all_flex_lines();