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:
parent
b062a0fb7c
commit
f8a2c0586a
6 changed files with 30 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue