1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 07:28:11 +00:00

LibWeb: Parse the CSS align-content property

This commit is contained in:
Andreas Kling 2022-10-14 13:50:06 +02:00
parent b062a0fb7c
commit f8a2c0586a
6 changed files with 30 additions and 0 deletions

View file

@ -349,6 +349,12 @@ CSS::TransformOrigin StyleProperties::transform_origin() const
return { x_value.value(), y_value.value() };
}
Optional<CSS::AlignContent> StyleProperties::align_content() const
{
auto value = property(CSS::PropertyID::AlignContent);
return value_id_to_align_content(value->to_identifier());
}
Optional<CSS::AlignItems> StyleProperties::align_items() const
{
auto value = property(CSS::PropertyID::AlignItems);