mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +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
Notes:
sideshowbarker
2024-07-18 02:47:59 +09:00
Author: https://github.com/martinfalisse
Commit: 44d08b81b7
Pull-request: https://github.com/SerenityOS/serenity/pull/14996
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