1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 21:17:45 +00:00

LibWeb: Place grid items in grid-areas if applicable

If valid grid-template-areas were given, then place grid items within
these areas. Grid-template-areas take precedence over named line
tracks, meaning if there are grid-areas as well as named tracks, should
use the grid-areas.
This commit is contained in:
martinfalisse 2023-01-17 14:07:28 +01:00 committed by Andreas Kling
parent 47c77858b6
commit fa2c3b7c3d
2 changed files with 63 additions and 57 deletions

View file

@ -117,6 +117,7 @@ private:
int get_count_of_tracks(Vector<CSS::ExplicitGridTrack> const&, AvailableSpace const&, Box const&);
void build_valid_grid_areas(Box const&);
int find_valid_grid_area(String const& needle);
void place_item_with_row_and_column_position(Box const& box, Box const& child_box);
void place_item_with_row_position(Box const& box, Box const& child_box);