Browse Source

LibWeb: Serialize Angle according to spec

stelar7 2 years ago
parent
commit
5dc82db0cb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/Libraries/LibWeb/CSS/Angle.cpp

+ 1 - 1
Userland/Libraries/LibWeb/CSS/Angle.cpp

@@ -34,7 +34,7 @@ Angle Angle::percentage_of(Percentage const& percentage) const
 
 ErrorOr<String> Angle::to_string() const
 {
-    return String::formatted("{}{}", m_value, unit_name());
+    return String::formatted("{}deg", to_degrees());
 }
 
 float Angle::to_degrees() const