LibWeb: Add borders functionality to CSS Grid

This commit is contained in:
martinfalisse 2023-04-02 16:37:14 +02:00 committed by Andreas Kling
commit 289285cd6e
Notes: sideshowbarker 2024-07-17 01:12:07 +09:00
4 changed files with 283 additions and 17 deletions

View file

@ -80,6 +80,21 @@ private:
CSSPixels planned_increase { 0 };
bool is_gap { false };
CSSPixels border_left { 0 };
CSSPixels border_right { 0 };
CSSPixels border_top { 0 };
CSSPixels border_bottom { 0 };
CSSPixels full_horizontal_size() const
{
return base_size + border_left + border_right;
}
CSSPixels full_vertical_size() const
{
return base_size + border_top + border_bottom;
}
TemporaryTrack(CSS::GridSize min_track_sizing_function, CSS::GridSize max_track_sizing_function)
: min_track_sizing_function(min_track_sizing_function)
, max_track_sizing_function(max_track_sizing_function)