1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00

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

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