Explorar el Código

LibWeb: Bring BorderRadiusStyleValue::to_string() closer to spec

Igor Pissolati hace 3 años
padre
commit
7ae116b81b
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      Userland/Libraries/LibWeb/CSS/StyleValue.cpp

+ 2 - 0
Userland/Libraries/LibWeb/CSS/StyleValue.cpp

@@ -292,6 +292,8 @@ String BorderStyleValue::to_string() const
 
 String BorderRadiusStyleValue::to_string() const
 {
+    if (m_horizontal_radius == m_vertical_radius)
+        return m_horizontal_radius.to_string();
     return String::formatted("{} / {}", m_horizontal_radius.to_string(), m_vertical_radius.to_string());
 }