mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb/CSS: Mark grid-[gap, column-gap, row-gap] properties as aliases
These are legacy name aliases for the properties without the 'grid-' prefix. See https://drafts.csswg.org/css-align-3/#gap-legacy
This commit is contained in:
parent
6114e69a53
commit
c79f261bec
Notes:
github-actions[bot]
2024-10-14 15:58:28 +00:00
Author: https://github.com/AtkinsSJ
Commit: c79f261bec
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1785
3 changed files with 5 additions and 51 deletions
|
@ -726,7 +726,7 @@ void StyleComputer::for_each_property_expanding_shorthands(PropertyID property_i
|
|||
return;
|
||||
}
|
||||
|
||||
if (property_id == CSS::PropertyID::Gap || property_id == CSS::PropertyID::GridGap) {
|
||||
if (property_id == CSS::PropertyID::Gap) {
|
||||
if (value.is_value_list()) {
|
||||
auto const& values_list = value.as_value_list();
|
||||
set_longhand_property(CSS::PropertyID::RowGap, values_list.values()[0]);
|
||||
|
@ -738,16 +738,6 @@ void StyleComputer::for_each_property_expanding_shorthands(PropertyID property_i
|
|||
return;
|
||||
}
|
||||
|
||||
if (property_id == CSS::PropertyID::RowGap || property_id == CSS::PropertyID::GridRowGap) {
|
||||
set_longhand_property(CSS::PropertyID::RowGap, value);
|
||||
return;
|
||||
}
|
||||
|
||||
if (property_id == CSS::PropertyID::ColumnGap || property_id == CSS::PropertyID::GridColumnGap) {
|
||||
set_longhand_property(CSS::PropertyID::ColumnGap, value);
|
||||
return;
|
||||
}
|
||||
|
||||
if (property_id == CSS::PropertyID::MaxInlineSize || property_id == CSS::PropertyID::MinInlineSize) {
|
||||
// FIXME: Use writing-mode to determine if we should set width or height.
|
||||
bool is_horizontal = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue