1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:47:35 +00:00

LibWeb: Add parsing for the justify-content property

This commit is contained in:
Tobias Christiansen 2021-07-16 18:38:26 +02:00 committed by Ali Mohammad Pur
parent fb66feef5e
commit 80a44c3891
7 changed files with 45 additions and 0 deletions

View file

@ -271,6 +271,10 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& specified_style)
computed_values.set_flex_grow_factor(specified_style.flex_grow_factor());
computed_values.set_flex_shrink_factor(specified_style.flex_shrink_factor());
auto justify_content = specified_style.justify_content();
if (justify_content.has_value())
computed_values.set_justify_content(justify_content.value());
auto position = specified_style.position();
if (position.has_value()) {
computed_values.set_position(position.value());