mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +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:
parent
af4d80af4d
commit
ae61e9ded2
5 changed files with 46 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue