summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout
diff options
context:
space:
mode:
authorTobias Christiansen <tobi@tobyase.de>2021-05-30 12:11:32 +0200
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-06-06 01:46:06 +0430
commite6545d5259f18cbc793328866d4c2e213152c9a2 (patch)
treefeca2b3af1f2650043434a682fbb7b3b3b568c1c /Userland/Libraries/LibWeb/Layout
parent72d5394b8cd5fbb15d14149ce42a6bcbb4e67b04 (diff)
downloadserenity-e6545d5259f18cbc793328866d4c2e213152c9a2.zip
LibWeb: Add parsing for flex-wrap property
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout')
-rw-r--r--Userland/Libraries/LibWeb/Layout/Node.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/Node.cpp b/Userland/Libraries/LibWeb/Layout/Node.cpp
index 0c15350a1d..6771564ff3 100644
--- a/Userland/Libraries/LibWeb/Layout/Node.cpp
+++ b/Userland/Libraries/LibWeb/Layout/Node.cpp
@@ -259,6 +259,10 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& specified_style)
if (flex_direction.has_value())
computed_values.set_flex_direction(flex_direction.value());
+ auto flex_wrap = specified_style.flex_wrap();
+ if (flex_wrap.has_value())
+ computed_values.set_flex_wrap(flex_wrap.value());
+
auto position = specified_style.position();
if (position.has_value())
computed_values.set_position(position.value());