1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:58:11 +00:00

LibWeb: Parse grid-template-areas CSS property

This commit is contained in:
martinfalisse 2023-01-16 18:17:05 +01:00 committed by Andreas Kling
parent 0448547553
commit a6548c4d80
10 changed files with 101 additions and 0 deletions

View file

@ -745,4 +745,10 @@ Optional<CSS::BorderCollapse> StyleProperties::border_collapse() const
return value_id_to_border_collapse(value->to_identifier());
}
Vector<Vector<String>> StyleProperties::grid_template_areas() const
{
auto value = property(CSS::PropertyID::GridTemplateAreas);
return value->as_grid_template_area().grid_template_area();
}
}