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:
parent
fb66feef5e
commit
80a44c3891
7 changed files with 45 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue