mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
LibWeb: Bring BorderRadiusStyleValue::to_string() closer to spec
This commit is contained in:
parent
db75bab493
commit
7ae116b81b
Notes:
sideshowbarker
2024-07-17 14:30:04 +09:00
Author: https://github.com/Igoorx 🔰 Commit: https://github.com/SerenityOS/serenity/commit/7ae116b81b Pull-request: https://github.com/SerenityOS/serenity/pull/13486 Reviewed-by: https://github.com/AtkinsSJ ✅
|
@ -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…
Reference in a new issue