diff options
author | Andreas Kling <kling@serenityos.org> | 2021-01-18 17:41:57 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-18 20:20:16 +0100 |
commit | 149f10b0b97715ac6c45308654940a17667cdcfb (patch) | |
tree | 2217ba58914888775659b8d7fe01fb8e325749e0 /Userland/Libraries/LibWeb/Layout | |
parent | fd7920fa8f1deae5fb4b96c03d61c5e176cc12bc (diff) | |
download | serenity-149f10b0b97715ac6c45308654940a17667cdcfb.zip |
LibWeb: Parse the CSS "flex-direction" property
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/Node.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/Node.cpp b/Userland/Libraries/LibWeb/Layout/Node.cpp index ef4841bccc..509878395e 100644 --- a/Userland/Libraries/LibWeb/Layout/Node.cpp +++ b/Userland/Libraries/LibWeb/Layout/Node.cpp @@ -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()); |