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

LibWeb: Add parsing for flex-wrap property

This commit is contained in:
Tobias Christiansen 2021-05-30 12:11:32 +02:00 committed by Ali Mohammad Pur
parent 72d5394b8c
commit e6545d5259
7 changed files with 38 additions and 0 deletions

View file

@ -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());