diff options
author | stelar7 <dudedbz@gmail.com> | 2023-05-27 22:28:35 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-31 05:56:25 +0200 |
commit | b6d767fbb0e22f93579379ae0b0c18b0cf9e31c0 (patch) | |
tree | f24de0e9cae2075b43a9a7d3c410a7b411b09d76 | |
parent | 5dc82db0cbacc2a87566966060642f0cb41a459d (diff) | |
download | serenity-b6d767fbb0e22f93579379ae0b0c18b0cf9e31c0.zip |
LibWeb: Serialize Frequency according to spec
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/Frequency.cpp | 2 |
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 |