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

LibWeb: Parse CSS gap property

Including the legacy grid-gap, grid-column-gap and grid-row-gap
properties.
This commit is contained in:
martinfalisse 2022-11-06 12:42:22 +01:00 committed by Andreas Kling
parent e00b16460c
commit 9e6612c49b
5 changed files with 131 additions and 0 deletions

View file

@ -573,6 +573,9 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& computed_style)
computed_values.set_stroke_width(CSS::Length::make_px(stroke_width->to_number()));
else
computed_values.set_stroke_width(stroke_width->to_length());
computed_values.set_column_gap(computed_style.size_value(CSS::PropertyID::ColumnGap));
computed_values.set_row_gap(computed_style.size_value(CSS::PropertyID::RowGap));
}
bool Node::is_root_element() const