mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
LibWeb: Flexbox: Add default value for AlignItems
Previously there was no default value and wrapping broke when the container didn't have a align-items specified.
This commit is contained in:
parent
6c992e5dce
commit
f8ea730f29
1 changed files with 2 additions and 1 deletions
|
@ -30,6 +30,7 @@ public:
|
|||
static CSS::FlexDirection flex_direction() { return CSS::FlexDirection::Row; }
|
||||
static CSS::FlexWrap flex_wrap() { return CSS::FlexWrap::Nowrap; }
|
||||
static CSS::JustifyContent justify_content() { return CSS::JustifyContent::FlexStart; }
|
||||
static CSS::AlignItems align_items() { return CSS::AlignItems::FlexStart; }
|
||||
static CSS::Overflow overflow() { return CSS::Overflow::Visible; }
|
||||
};
|
||||
|
||||
|
@ -161,7 +162,7 @@ protected:
|
|||
CSS::FlexBasisData flex_basis {};
|
||||
Optional<float> flex_grow_factor;
|
||||
Optional<float> flex_shrink_factor;
|
||||
CSS::AlignItems align_items;
|
||||
CSS::AlignItems align_items { InitialValues::align_items() };
|
||||
CSS::JustifyContent justify_content { InitialValues::justify_content() };
|
||||
CSS::Overflow overflow_x { InitialValues::overflow() };
|
||||
CSS::Overflow overflow_y { InitialValues::overflow() };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue