mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:28:11 +00:00
LibWeb: Parse grid-template-columns and grid-template-rows
Add functionality to begin parsing grid-template-columns and grid-template-rows. There are still things to be added, like parsing functions, but I would say a couple of the major points are already adressed like length, percentage, and flexible-length.
This commit is contained in:
parent
c40dd9ee78
commit
92a00648b1
8 changed files with 87 additions and 0 deletions
|
@ -525,6 +525,8 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& computed_style)
|
|||
do_border_style(computed_values.border_bottom(), CSS::PropertyID::BorderBottomWidth, CSS::PropertyID::BorderBottomColor, CSS::PropertyID::BorderBottomStyle);
|
||||
|
||||
computed_values.set_content(computed_style.content());
|
||||
computed_values.set_grid_template_columns(computed_style.grid_template_columns());
|
||||
computed_values.set_grid_template_rows(computed_style.grid_template_rows());
|
||||
|
||||
if (auto fill = computed_style.property(CSS::PropertyID::Fill); fill->has_color())
|
||||
computed_values.set_fill(fill->to_color(*this));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue