LibWeb: Implement CSS perspective-origin

This commit is contained in:
Psychpsyo 2025-11-12 21:47:17 +01:00 committed by Sam Atkins
parent 27e4793c5d
commit 2db3796fd3
Notes: github-actions[bot] 2025-11-21 11:15:32 +00:00
31 changed files with 547 additions and 42 deletions

View file

@ -751,6 +751,11 @@ Optional<CSSPixels> ComputedProperties::perspective() const
VERIFY_NOT_REACHED();
}
Position ComputedProperties::perspective_origin() const
{
return position_value(PropertyID::PerspectiveOrigin);
}
TransformOrigin ComputedProperties::transform_origin() const
{
auto length_percentage_with_keywords_resolved = [](StyleValue const& value) -> LengthPercentage {