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:
parent
db75bab493
commit
7ae116b81b
1 changed files with 2 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue