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:
parent
e00b16460c
commit
9e6612c49b
5 changed files with 131 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue