1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:27:35 +00:00

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
parent 6f52272d34
commit 289285cd6e
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)