
Adds support for place-items property which allows to specify both align-items and justify-items in a single declaration.
16 lines
374 B
C++
16 lines
374 B
C++
/*
|
|
* 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
|
|
{
|
|
return String::formatted("{} {}", TRY(m_properties.align_items->to_string()), TRY(m_properties.justify_items->to_string()));
|
|
}
|
|
|
|
}
|