浏览代码

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

Igor Pissolati 3 年之前
父节点
当前提交
7ae116b81b
共有 1 个文件被更改,包括 2 次插入0 次删除
  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());
 }