mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:38:10 +00:00
LibWeb: Parse grid-column-start and related CSS properties
Parse grid-column-start, end, and the equivalent for rows.
This commit is contained in:
parent
92a00648b1
commit
44d08b81b7
8 changed files with 140 additions and 0 deletions
|
@ -667,4 +667,28 @@ Vector<CSS::GridTrackSize> StyleProperties::grid_template_rows() const
|
|||
return value->as_grid_track_size().grid_track_size();
|
||||
}
|
||||
|
||||
CSS::GridTrackPlacement StyleProperties::grid_column_end() const
|
||||
{
|
||||
auto value = property(CSS::PropertyID::GridColumnEnd);
|
||||
return value->as_grid_track_placement().grid_track_placement();
|
||||
}
|
||||
|
||||
CSS::GridTrackPlacement StyleProperties::grid_column_start() const
|
||||
{
|
||||
auto value = property(CSS::PropertyID::GridColumnStart);
|
||||
return value->as_grid_track_placement().grid_track_placement();
|
||||
}
|
||||
|
||||
CSS::GridTrackPlacement StyleProperties::grid_row_end() const
|
||||
{
|
||||
auto value = property(CSS::PropertyID::GridRowEnd);
|
||||
return value->as_grid_track_placement().grid_track_placement();
|
||||
}
|
||||
|
||||
CSS::GridTrackPlacement StyleProperties::grid_row_start() const
|
||||
{
|
||||
auto value = property(CSS::PropertyID::GridRowStart);
|
||||
return value->as_grid_track_placement().grid_track_placement();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue