mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09:00
LibWeb: Expand CSS builtin values in border shorthands
This commit is contained in:
parent
ae9eaeffc4
commit
66300794a6
Notes:
sideshowbarker
2024-07-16 22:51:10 +09:00
Author: https://github.com/AtkinsSJ
Commit: 66300794a6
Pull-request: https://github.com/SerenityOS/serenity/pull/21168
1 changed files with 24 additions and 0 deletions
|
@ -587,6 +587,30 @@ static void set_property_expanding_shorthands(StyleProperties& style, CSS::Prope
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (property_id == CSS::PropertyID::BorderTop) {
|
||||||
|
set_longhand_property(PropertyID::BorderTopWidth, value);
|
||||||
|
set_longhand_property(PropertyID::BorderTopStyle, value);
|
||||||
|
set_longhand_property(PropertyID::BorderTopColor, value);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (property_id == CSS::PropertyID::BorderRight) {
|
||||||
|
set_longhand_property(PropertyID::BorderRightWidth, value);
|
||||||
|
set_longhand_property(PropertyID::BorderRightStyle, value);
|
||||||
|
set_longhand_property(PropertyID::BorderRightColor, value);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (property_id == CSS::PropertyID::BorderBottom) {
|
||||||
|
set_longhand_property(PropertyID::BorderBottomWidth, value);
|
||||||
|
set_longhand_property(PropertyID::BorderBottomStyle, value);
|
||||||
|
set_longhand_property(PropertyID::BorderBottomColor, value);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (property_id == CSS::PropertyID::BorderLeft) {
|
||||||
|
set_longhand_property(PropertyID::BorderLeftWidth, value);
|
||||||
|
set_longhand_property(PropertyID::BorderLeftStyle, value);
|
||||||
|
set_longhand_property(PropertyID::BorderLeftColor, value);
|
||||||
|
return
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue