summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstelar7 <dudedbz@gmail.com>2023-05-27 22:28:35 +0200
committerAndreas Kling <kling@serenityos.org>2023-05-31 05:56:25 +0200
commitb6d767fbb0e22f93579379ae0b0c18b0cf9e31c0 (patch)
treef24de0e9cae2075b43a9a7d3c410a7b411b09d76
parent5dc82db0cbacc2a87566966060642f0cb41a459d (diff)
downloadserenity-b6d767fbb0e22f93579379ae0b0c18b0cf9e31c0.zip
LibWeb: Serialize Frequency according to spec
-rw-r--r--Userland/Libraries/LibWeb/CSS/Frequency.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Frequency.cpp b/Userland/Libraries/LibWeb/CSS/Frequency.cpp
index 1582e8fb1a..6a975b7ebe 100644
--- a/Userland/Libraries/LibWeb/CSS/Frequency.cpp
+++ b/Userland/Libraries/LibWeb/CSS/Frequency.cpp
@@ -33,7 +33,7 @@ Frequency Frequency::percentage_of(Percentage const& percentage) const
ErrorOr<String> Frequency::to_string() const
{
- return String::formatted("{}{}", m_value, unit_name());
+ return String::formatted("{}hz", to_hertz());
}
float Frequency::to_hertz() const