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

LibWeb: Parse auto-fill and auto-fit attributes

Parse auto-fill and auto-fit attributes for the CSS Grid.
This commit is contained in:
martinfalisse 2022-10-15 13:02:45 +02:00 committed by Andreas Kling
parent 3cba4b6e41
commit a5f042b424
3 changed files with 31 additions and 2 deletions

View file

@ -84,6 +84,13 @@ ExplicitTrackSizing::ExplicitTrackSizing(Vector<CSS::MetaGridTrackSize> meta_gri
{
}
ExplicitTrackSizing::ExplicitTrackSizing(Vector<CSS::MetaGridTrackSize> meta_grid_track_sizes, Type type)
: m_meta_grid_track_sizes(meta_grid_track_sizes)
, m_is_auto_fill(type == Type::AutoFill)
, m_is_auto_fit(type == Type::AutoFit)
{
}
String ExplicitTrackSizing::to_string() const
{
StringBuilder builder;