mirror of
https://github.com/RGBCube/serenity
synced 2025-07-02 22:52:07 +00:00
LibWeb: Add proper parsing of the AlignItems property
This teaches all the relevant places about 'align-items'.
This commit is contained in:
parent
51b42e0463
commit
307f90b675
5 changed files with 37 additions and 0 deletions
|
@ -269,6 +269,10 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& specified_style)
|
|||
if (justify_content.has_value())
|
||||
computed_values.set_justify_content(justify_content.value());
|
||||
|
||||
auto align_items = specified_style.align_items();
|
||||
if (align_items.has_value())
|
||||
computed_values.set_align_items(align_items.value());
|
||||
|
||||
auto position = specified_style.position();
|
||||
if (position.has_value()) {
|
||||
computed_values.set_position(position.value());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue