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

This commit is contained in:
Igor Pissolati 2022-04-03 17:03:32 -03:00 committed by Andreas Kling
parent db75bab493
commit 7ae116b81b
Notes: sideshowbarker 2024-07-17 14:30:04 +09:00

View file

@ -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());
}