mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Parse border-image
shorthand property
This commit is contained in:
parent
c0390f759c
commit
923deb0c01
Notes:
github-actions[bot]
2025-07-03 09:20:50 +00:00
Author: https://github.com/tcl3
Commit: 923deb0c01
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5253
Reviewed-by: https://github.com/AtkinsSJ ✅
10 changed files with 318 additions and 3 deletions
|
@ -205,6 +205,19 @@ String ShorthandStyleValue::to_string(SerializationMode mode) const
|
|||
|
||||
return MUST(builder.to_string());
|
||||
}
|
||||
case PropertyID::BorderImage: {
|
||||
auto source = longhand(PropertyID::BorderImageSource);
|
||||
auto slice = longhand(PropertyID::BorderImageSlice);
|
||||
auto width = longhand(PropertyID::BorderImageWidth);
|
||||
auto outset = longhand(PropertyID::BorderImageOutset);
|
||||
auto repeat = longhand(PropertyID::BorderImageRepeat);
|
||||
return MUST(String::formatted("{} {} / {} / {} {}",
|
||||
source->to_string(mode),
|
||||
slice->to_string(mode),
|
||||
width->to_string(mode),
|
||||
outset->to_string(mode),
|
||||
repeat->to_string(mode)));
|
||||
}
|
||||
case PropertyID::BorderRadius: {
|
||||
auto top_left = longhand(PropertyID::BorderTopLeftRadius);
|
||||
auto top_right = longhand(PropertyID::BorderTopRightRadius);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue