2023-07-17 16:34:12 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2023, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "PlaceItemsStyleValue.h"
|
|
|
|
|
|
|
|
|
|
namespace Web::CSS {
|
|
|
|
|
|
|
|
|
|
ErrorOr<String> PlaceItemsStyleValue::to_string() const
|
|
|
|
|
{
|
2023-08-05 11:12:18 +02:00
|
|
|
auto align_items = TRY(m_properties.align_items->to_string());
|
|
|
|
|
auto justify_items = TRY(m_properties.justify_items->to_string());
|
|
|
|
|
if (align_items == justify_items)
|
|
|
|
|
return String::formatted("{}", align_items);
|
|
|
|
|
return String::formatted("{} {}", align_items, justify_items);
|
2023-07-17 16:34:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|