mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 02:59:45 +00:00
LibWeb: Add borders functionality to CSS Grid
This commit is contained in:
parent
6f52272d34
commit
289285cd6e
Notes:
sideshowbarker
2024-07-17 01:12:07 +09:00
Author: https://github.com/martinfalisse
Commit: 289285cd6e
Pull-request: https://github.com/SerenityOS/serenity/pull/18148
4 changed files with 283 additions and 17 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue