From e72b7c5de2896db0cd86cf7199b88c5122faa082 Mon Sep 17 00:00:00 2001 From: stelar7 Date: Sat, 27 May 2023 22:19:43 +0200 Subject: [PATCH] LibWeb: Serialize Time according to spec --- Userland/Libraries/LibWeb/CSS/Time.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/CSS/Time.cpp b/Userland/Libraries/LibWeb/CSS/Time.cpp index 48f0da23299..bd44a88e2d6 100644 --- a/Userland/Libraries/LibWeb/CSS/Time.cpp +++ b/Userland/Libraries/LibWeb/CSS/Time.cpp @@ -33,7 +33,7 @@ Time Time::percentage_of(Percentage const& percentage) const ErrorOr Time::to_string() const { - return String::formatted("{}{}", m_value, unit_name()); + return String::formatted("{}s", to_seconds()); } float Time::to_seconds() const