summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-02-02 21:19:43 +0000
committerAndreas Kling <kling@serenityos.org>2022-02-03 00:45:49 +0100
commit181d1e2dd6afd89d8e56f9aa7effd3dbca08b2f2 (patch)
tree01540907f07f3e5ba4fa16786a15f7ab532d9917 /Userland/Libraries
parent5826fe094f8a37f2dc788cf3ca4685d7a7fbffcc (diff)
downloadserenity-181d1e2dd6afd89d8e56f9aa7effd3dbca08b2f2.zip
LibWeb: Implement TransformationStyleValue::to_string()
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibWeb/CSS/StyleValue.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleValue.cpp b/Userland/Libraries/LibWeb/CSS/StyleValue.cpp
index d1f4604e2e..0d13528d84 100644
--- a/Userland/Libraries/LibWeb/CSS/StyleValue.cpp
+++ b/Userland/Libraries/LibWeb/CSS/StyleValue.cpp
@@ -582,7 +582,21 @@ String TextDecorationStyleValue::to_string() const
String TransformationStyleValue::to_string() const
{
- return "TransformationStyleValue";
+ StringBuilder builder;
+
+ switch (m_transform_function) {
+ case TransformFunction::TranslateY:
+ builder.append("translateY");
+ break;
+ default:
+ VERIFY_NOT_REACHED();
+ }
+
+ builder.append('(');
+ builder.join(", ", m_values);
+ builder.append(')');
+
+ return builder.to_string();
}
String UnresolvedStyleValue::to_string() const