summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorIgor Pissolati <igo08an@hotmail.com>2022-04-03 17:03:32 -0300
committerAndreas Kling <kling@serenityos.org>2022-04-04 00:03:15 +0200
commit7ae116b81b0ddabfe4c20c1db0d97788a1149d1f (patch)
tree2e32151b01a7765b14d291ddb8fef1cde021410f /Userland
parentdb75bab4934d381dbf37bb9b4cc1c287549982a9 (diff)
downloadserenity-7ae116b81b0ddabfe4c20c1db0d97788a1149d1f.zip
LibWeb: Bring BorderRadiusStyleValue::to_string() closer to spec
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibWeb/CSS/StyleValue.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleValue.cpp b/Userland/Libraries/LibWeb/CSS/StyleValue.cpp
index 92c763ffe7..824e0acb2b 100644
--- a/Userland/Libraries/LibWeb/CSS/StyleValue.cpp
+++ b/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());
}