From 5cdeb994b29c6c3befbeb00e7a0b14c0d91b0056 Mon Sep 17 00:00:00 2001 From: stelar7 Date: Sat, 27 May 2023 22:30:10 +0200 Subject: [PATCH] LibWeb: Serialize Resolution according to spec --- Userland/Libraries/LibWeb/CSS/Resolution.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/CSS/Resolution.cpp b/Userland/Libraries/LibWeb/CSS/Resolution.cpp index c7a0cad344..2e0a3568e8 100644 --- a/Userland/Libraries/LibWeb/CSS/Resolution.cpp +++ b/Userland/Libraries/LibWeb/CSS/Resolution.cpp @@ -22,7 +22,7 @@ Resolution::Resolution(float value, Type type) ErrorOr Resolution::to_string() const { - return String::formatted("{}{}", m_value, unit_name()); + return String::formatted("{}dppx", to_dots_per_pixel()); } float Resolution::to_dots_per_pixel() const