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

LibWeb: Parse flex-basis

Flex-basis accepts either 'content' or a Length.
This commit is contained in:
Tobias Christiansen 2021-05-30 14:23:43 +02:00 committed by Ali Mohammad Pur
parent 27704f5f9e
commit ae3e6510d6
7 changed files with 39 additions and 0 deletions

View file

@ -263,6 +263,10 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& specified_style)
if (flex_wrap.has_value())
computed_values.set_flex_wrap(flex_wrap.value());
auto flex_basis = specified_style.flex_basis();
if (flex_basis.has_value())
computed_values.set_flex_basis(flex_basis.value());
auto position = specified_style.position();
if (position.has_value()) {
computed_values.set_position(position.value());