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

LibWeb: Add flex-grow and flex-shrink

They get parsed and are available to the programmer of Layouts :^)
This commit is contained in:
Tobias Christiansen 2021-05-30 20:22:25 +02:00 committed by Ali Mohammad Pur
parent af4d80af4d
commit ae61e9ded2
5 changed files with 46 additions and 1 deletions

View file

@ -267,6 +267,9 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& specified_style)
if (flex_basis.has_value())
computed_values.set_flex_basis(flex_basis.value());
computed_values.set_flex_grow_factor(specified_style.flex_grow_factor());
computed_values.set_flex_shrink_factor(specified_style.flex_shrink_factor());
auto position = specified_style.position();
if (position.has_value()) {
computed_values.set_position(position.value());