1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:27:35 +00:00

LibWeb: Replace TextDecorationStyleValue with ShorthandStyleValue

This commit is contained in:
Sam Atkins 2023-09-20 15:52:44 +01:00 committed by Sam Atkins
parent d40b3f2a34
commit 8efac89a16
11 changed files with 8 additions and 95 deletions

View file

@ -168,6 +168,8 @@ String ShorthandStyleValue::to_string() const
return align_self;
return MUST(String::formatted("{} {}", align_self, justify_self));
}
case PropertyID::TextDecoration:
return MUST(String::formatted("{} {} {} {}", longhand(PropertyID::TextDecorationLine)->to_string(), longhand(PropertyID::TextDecorationThickness)->to_string(), longhand(PropertyID::TextDecorationStyle)->to_string(), longhand(PropertyID::TextDecorationColor)->to_string()));
default:
StringBuilder builder;
auto first = true;