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:
parent
c3c7707de4
commit
391cfdc085
Notes:
sideshowbarker
2024-07-17 08:59:18 +09:00
Author: https://github.com/AtkinsSJ
Commit: 391cfdc085
Pull-request: https://github.com/SerenityOS/serenity/pull/22950
8 changed files with 32 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue