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

LibWeb: Parse the CSS "flex-direction" property

This commit is contained in:
Andreas Kling 2021-01-18 17:41:57 +01:00
parent fd7920fa8f
commit 149f10b0b9
7 changed files with 43 additions and 0 deletions

View file

@ -239,6 +239,10 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& specified_style)
computed_values.set_display(specified_style.display());
auto flex_direction = specified_style.flex_direction();
if (flex_direction.has_value())
computed_values.set_flex_direction(flex_direction.value());
auto position = specified_style.position();
if (position.has_value())
computed_values.set_position(position.value());