mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 18:37:58 +03:00
LibWeb: Implement more of the grid spec
This is a small change that implements more of the CSS Grid spec.
This commit is contained in:
parent
e227e8027f
commit
4745a0c20a
Notes:
sideshowbarker
2024-07-17 05:45:22 +09:00
Author: https://github.com/martinfalisse Commit: https://github.com/SerenityOS/serenity/commit/4745a0c20a Pull-request: https://github.com/SerenityOS/serenity/pull/15612 Reviewed-by: https://github.com/awesomekling ✅
@ -652,6 +652,11 @@ void GridFormattingContext::run(Box const& box, LayoutMode, AvailableSpace const
|
||||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
// In all cases, if the growth limit is less than the base size, increase the growth limit to match
|
||||
// the base size.
|
||||
if (grid_column.growth_limit != -1 && grid_column.growth_limit < grid_column.base_size)
|
||||
grid_column.growth_limit = grid_column.base_size;
|
||||
}
|
||||
|
||||
// Initialize each track’s base size and growth limit.
|
||||
@ -698,10 +703,12 @@ void GridFormattingContext::run(Box const& box, LayoutMode, AvailableSpace const
|
||||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME: In all cases, if the growth limit is less than the base size, increase the growth limit to match
|
||||
// the base size.
|
||||
// In all cases, if the growth limit is less than the base size, increase the growth limit to match
|
||||
// the base size.
|
||||
if (grid_row.growth_limit != -1 && grid_row.growth_limit < grid_row.base_size)
|
||||
grid_row.growth_limit = grid_row.base_size;
|
||||
}
|
||||
|
||||
// https://www.w3.org/TR/css-grid-2/#algo-content
|
||||
// 12.5. Resolve Intrinsic Track Sizes
|
||||
|
Loading…
Reference in New Issue
Block a user