1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +00:00

LibWeb: Implement basic support for align-content in flex layout

This property tells us how to lay out multi-line flex containers.
I implemented all modes except `space-between` and `space-around`.
Those are left as FIXMEs.
This commit is contained in:
Andreas Kling 2022-10-14 13:50:40 +02:00
parent f8a2c0586a
commit 834d98520a
2 changed files with 62 additions and 6 deletions

View file

@ -142,6 +142,8 @@ private:
void calculate_cross_size_of_each_flex_line();
void handle_align_content_stretch();
CSS::AlignItems alignment_for_item(FlexItem const&) const;
void determine_used_cross_size_of_each_flex_item();