1
Fork 0
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:
Tobias Christiansen 2021-09-15 18:27:20 +02:00 committed by Andreas Kling
parent 51b42e0463
commit 307f90b675
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());