LibWeb: Add proper parsing of the AlignItems property

This teaches all the relevant places about 'align-items'.
This commit is contained in:
Tobias Christiansen 2021-09-15 18:27:20 +02:00 committed by Andreas Kling
commit 307f90b675
Notes: sideshowbarker 2024-07-18 03:55:04 +09:00
5 changed files with 37 additions and 0 deletions

View file

@ -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());