mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-07 19:57:45 +03: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: https://github.com/SerenityOS/serenity/commit/66300794a6 Pull-request: https://github.com/SerenityOS/serenity/pull/21168
@ -587,6 +587,30 @@ static void set_property_expanding_shorthands(StyleProperties& style, CSS::Prope
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user