2023-05-29 16:34:53 -04:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2023, Hunter Salyer <thefalsehonesty@gmail.com>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "PlaceContentStyleValue.h"
|
|
|
|
|
|
|
|
|
|
namespace Web::CSS {
|
|
|
|
|
|
2023-08-22 14:08:15 +01:00
|
|
|
String PlaceContentStyleValue::to_string() const
|
2023-05-29 16:34:53 -04:00
|
|
|
{
|
2023-08-22 14:08:15 +01:00
|
|
|
auto align_content = m_properties.align_content->to_string();
|
|
|
|
|
auto justify_content = m_properties.justify_content->to_string();
|
2023-08-05 11:12:18 +02:00
|
|
|
if (align_content == justify_content)
|
2023-08-22 14:08:15 +01:00
|
|
|
return MUST(String::formatted("{}", align_content));
|
|
|
|
|
return MUST(String::formatted("{} {}", align_content, justify_content));
|
2023-05-29 16:34:53 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|