1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:48:11 +00:00

LibWeb: Add support for parsing place-content shorthand CSS property

This commit is contained in:
FalseHonesty 2023-05-29 16:34:53 -04:00 committed by Andreas Kling
parent 23be1c5482
commit dcead6f5eb
12 changed files with 139 additions and 0 deletions

View file

@ -0,0 +1,16 @@
/*
* Copyright (c) 2023, Hunter Salyer <thefalsehonesty@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "PlaceContentStyleValue.h"
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()));
}
}