|
@@ -10,7 +10,11 @@ namespace Web::CSS {
|
|
|
|
|
|
ErrorOr<String> PlaceContentStyleValue::to_string() const
|
|
|
{
|
|
|
- return String::formatted("{} {}", TRY(m_properties.align_content->to_string()), TRY(m_properties.justify_content->to_string()));
|
|
|
+ auto align_content = TRY(m_properties.align_content->to_string());
|
|
|
+ auto justify_content = TRY(m_properties.justify_content->to_string());
|
|
|
+ if (align_content == justify_content)
|
|
|
+ return String::formatted("{}", align_content);
|
|
|
+ return String::formatted("{} {}", align_content, justify_content);
|
|
|
}
|
|
|
|
|
|
}
|