1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00

LibWeb: Parse the CSS transform-box property

This commit is contained in:
Sam Atkins 2024-01-25 17:02:37 +00:00 committed by Andreas Kling
parent c3c7707de4
commit 391cfdc085
Notes: sideshowbarker 2024-07-17 08:59:18 +09:00
8 changed files with 32 additions and 0 deletions

View file

@ -493,6 +493,12 @@ static Optional<LengthPercentage> length_percentage_for_style_value(StyleValue c
return {};
}
Optional<CSS::TransformBox> StyleProperties::transform_box() const
{
auto value = property(CSS::PropertyID::TransformBox);
return value_id_to_transform_box(value->to_identifier());
}
CSS::TransformOrigin StyleProperties::transform_origin() const
{
auto value = property(CSS::PropertyID::TransformOrigin);