Skip to content

Truly independent web browser

LibWeb: Resolve perspective-origin against the transform reference box

Andreas Klingac8f88b1dad4
diff --git a/Libraries/LibWeb/CSS/CSSStyleProperties.cpp b/Libraries/LibWeb/CSS/CSSStyleProperties.cpp
index c1cdd91e6ca..0bbc5809863 100644
--- a/Libraries/LibWeb/CSS/CSSStyleProperties.cpp
+++ b/Libraries/LibWeb/CSS/CSSStyleProperties.cpp
@@ -1364,6 +1364,24 @@ RefPtr<StyleValue const> CSSStyleProperties::style_value_for_computed_property(L
}
return style_value_for_transform_origin(layout_node.transform_origin(), reference_box);
}
+ case PropertyID::PerspectiveOrigin: {
+ // https://drafts.csswg.org/css-transforms-2/#perspective-origin-property
+ // The perspective-origin property is a resolved value special case property like height. [CSSOM]
+ Optional<CSSPixelRect> reference_box;
+ if (auto display = layout_node.display(); !display.is_none() && !display.is_contents()) {
+ if (Painting::has_committed_box(layout_node))
+ reference_box = Painting::transform_reference_box(layout_node);
+ }
+ if (!reference_box.has_value())
+ return get_computed_value(property_id);
+ auto const& transform_values = layout_node.style_group<ComputedValues::TransformValues>();
+ TransformOrigin perspective_origin {
+ LengthPercentage::view(transform_values.perspective_origin_x),
+ LengthPercentage::view(transform_values.perspective_origin_y),
+ Length::make_px(0),
+ };
+ return style_value_for_transform_origin(perspective_origin, reference_box);
+ }
case PropertyID::AnimationDuration: {
// https://drafts.csswg.org/css-animations-2/#animation-duration
// For backwards-compatibility with Level 1, when the computed value of animation-timeline is auto (i.e. only
diff --git a/Libraries/LibWeb/CSS/Properties.json b/Libraries/LibWeb/CSS/Properties.json
index 06027381044..6bcaf8252ea 100644
--- a/Libraries/LibWeb/CSS/Properties.json
+++ b/Libraries/LibWeb/CSS/Properties.json
@@ -4263,6 +4263,7 @@
"affects-layout": false,
"inherited": false,
"initial": "50% 50%",
+ "needs-layout-node-for-resolved-value": true,
"requires-computation": "cascaded-value",
"valid-types": [
"position"
diff --git a/Tests/LibWeb/Text/expected/css/CSSStyleProperties-all-supported-properties-and-default-values.txt b/Tests/LibWeb/Text/expected/css/CSSStyleProperties-all-supported-properties-and-default-values.txt
index d038a4b3026..8316f4926d1 100644
--- a/Tests/LibWeb/Text/expected/css/CSSStyleProperties-all-supported-properties-and-default-values.txt
+++ b/Tests/LibWeb/Text/expected/css/CSSStyleProperties-all-supported-properties-and-default-values.txt
@@ -149,9 +149,9 @@ All supported properties and their default values exposed from CSSStylePropertie
'WebkitPerspective': 'none'
'webkitPerspective': 'none'
'-webkit-perspective': 'none'
-'WebkitPerspectiveOrigin': '50% 50%'
-'webkitPerspectiveOrigin': '50% 50%'
-'-webkit-perspective-origin': '50% 50%'
+'WebkitPerspectiveOrigin': '142px 67px'
+'webkitPerspectiveOrigin': '142px 67px'
+'-webkit-perspective-origin': '142px 67px'
'WebkitTextFillColor': 'rgb(0, 0, 0)'
'webkitTextFillColor': 'rgb(0, 0, 0)'
'-webkit-text-fill-color': 'rgb(0, 0, 0)'
@@ -809,8 +809,8 @@ All supported properties and their default values exposed from CSSStylePropertie
'paintOrder': 'normal'
'paint-order': 'normal'
'perspective': 'none'
-'perspectiveOrigin': '50% 50%'
-'perspective-origin': '50% 50%'
+'perspectiveOrigin': '142px 67px'
+'perspective-origin': '142px 67px'
'placeContent': 'normal'
'place-content': 'normal'
'placeItems': 'normal legacy'
diff --git a/Tests/LibWeb/Text/expected/css/getComputedStyle-print-all.txt b/Tests/LibWeb/Text/expected/css/getComputedStyle-print-all.txt
index e6862f1b8fb..e4375721fbe 100644
--- a/Tests/LibWeb/Text/expected/css/getComputedStyle-print-all.txt
+++ b/Tests/LibWeb/Text/expected/css/getComputedStyle-print-all.txt
@@ -290,7 +290,7 @@ padding-left: 0px
padding-right: 0px
padding-top: 0px
perspective: none
-perspective-origin: 50% 50%
+perspective-origin: 392px 1898px
position: static
position-anchor: normal
position-area: none
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/animation/perspective-origin-composition.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/animation/perspective-origin-composition.txt
index dcaec7f87ae..4d33545f86c 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/animation/perspective-origin-composition.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/animation/perspective-origin-composition.txt
@@ -2,8 +2,7 @@ Harness status: OK
Found 56 tests
-42 Pass
-14 Fail
+56 Pass
Pass Compositing CSS Animations: property <perspective-origin> underlying [40px 60px] from add [60px 40px] to add [160px 140px] at (-0.25) should be [75px 75px]
Pass Compositing CSS Animations: property <perspective-origin> underlying [40px 60px] from add [60px 40px] to add [160px 140px] at (0) should be [100px 100px]
Pass Compositing CSS Animations: property <perspective-origin> underlying [40px 60px] from add [60px 40px] to add [160px 140px] at (0.25) should be [125px 125px]
@@ -18,20 +17,20 @@ Pass Compositing Web Animations: property <perspective-origin> underlying [40px
Pass Compositing Web Animations: property <perspective-origin> underlying [40px 60px] from add [60px 40px] to add [160px 140px] at (0.75) should be [175px 175px]
Pass Compositing Web Animations: property <perspective-origin> underlying [40px 60px] from add [60px 40px] to add [160px 140px] at (1) should be [200px 200px]
Pass Compositing Web Animations: property <perspective-origin> underlying [40px 60px] from add [60px 40px] to add [160px 140px] at (1.25) should be [225px 225px]
-Fail Compositing CSS Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (-0.25) should be [220px 210px]
-Fail Compositing CSS Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (0) should be [200px 200px]
-Fail Compositing CSS Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (0.25) should be [180px 190px]
-Fail Compositing CSS Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (0.5) should be [160px 180px]
-Fail Compositing CSS Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (0.75) should be [140px 170px]
-Fail Compositing CSS Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (1) should be [120px 160px]
-Fail Compositing CSS Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (1.25) should be [100px 150px]
-Fail Compositing Web Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (-0.25) should be [220px 210px]
-Fail Compositing Web Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (0) should be [200px 200px]
-Fail Compositing Web Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (0.25) should be [180px 190px]
-Fail Compositing Web Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (0.5) should be [160px 180px]
-Fail Compositing Web Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (0.75) should be [140px 170px]
-Fail Compositing Web Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (1) should be [120px 160px]
-Fail Compositing Web Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (1.25) should be [100px 150px]
+Pass Compositing CSS Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (-0.25) should be [220px 210px]
+Pass Compositing CSS Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (0) should be [200px 200px]
+Pass Compositing CSS Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (0.25) should be [180px 190px]
+Pass Compositing CSS Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (0.5) should be [160px 180px]
+Pass Compositing CSS Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (0.75) should be [140px 170px]
+Pass Compositing CSS Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (1) should be [120px 160px]
+Pass Compositing CSS Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (1.25) should be [100px 150px]
+Pass Compositing Web Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (-0.25) should be [220px 210px]
+Pass Compositing Web Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (0) should be [200px 200px]
+Pass Compositing Web Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (0.25) should be [180px 190px]
+Pass Compositing Web Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (0.5) should be [160px 180px]
+Pass Compositing Web Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (0.75) should be [140px 170px]
+Pass Compositing Web Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (1) should be [120px 160px]
+Pass Compositing Web Animations: property <perspective-origin> underlying [top 20% left 40%] from add [left 60% top 80%] to add [right 80% bottom 40%] at (1.25) should be [100px 150px]
Pass Compositing CSS Animations: property <perspective-origin> underlying [40px 60px] from replace [100px 200px] to add [160px 40px] at (-0.25) should be [75px 225px]
Pass Compositing CSS Animations: property <perspective-origin> underlying [40px 60px] from replace [100px 200px] to add [160px 40px] at (0) should be [100px 200px]
Pass Compositing CSS Animations: property <perspective-origin> underlying [40px 60px] from replace [100px 200px] to add [160px 40px] at (0.25) should be [125px 175px]
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/animation/perspective-origin-interpolation.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/animation/perspective-origin-interpolation.txt
index b06740e29f4..8133630ea41 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/animation/perspective-origin-interpolation.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/animation/perspective-origin-interpolation.txt
@@ -2,8 +2,7 @@ Harness status: OK
Found 120 tests
-72 Pass
-48 Fail
+120 Pass
Pass CSS Transitions: property <perspective-origin> from neutral to [20px 20px] at (-0.3) should be [7px 33px]
Pass CSS Transitions: property <perspective-origin> from neutral to [20px 20px] at (0) should be [10px 30px]
Pass CSS Transitions: property <perspective-origin> from neutral to [20px 20px] at (0.3) should be [13px 27px]
@@ -28,30 +27,30 @@ Pass Web Animations: property <perspective-origin> from neutral to [20px 20px] a
Pass Web Animations: property <perspective-origin> from neutral to [20px 20px] at (0.6) should be [16px 24px]
Pass Web Animations: property <perspective-origin> from neutral to [20px 20px] at (1) should be [20px 20px]
Pass Web Animations: property <perspective-origin> from neutral to [20px 20px] at (1.5) should be [25px 15px]
-Fail CSS Transitions: property <perspective-origin> from [initial] to [20px 20px] at (-0.3) should be [26.5px 26.5px]
-Fail CSS Transitions: property <perspective-origin> from [initial] to [20px 20px] at (0) should be [25px 25px]
-Fail CSS Transitions: property <perspective-origin> from [initial] to [20px 20px] at (0.3) should be [23.5px 23.5px]
-Fail CSS Transitions: property <perspective-origin> from [initial] to [20px 20px] at (0.6) should be [22px 22px]
-Fail CSS Transitions: property <perspective-origin> from [initial] to [20px 20px] at (1) should be [20px 20px]
-Fail CSS Transitions: property <perspective-origin> from [initial] to [20px 20px] at (1.5) should be [17.5px 17.5px]
-Fail CSS Transitions with transition: all: property <perspective-origin> from [initial] to [20px 20px] at (-0.3) should be [26.5px 26.5px]
-Fail CSS Transitions with transition: all: property <perspective-origin> from [initial] to [20px 20px] at (0) should be [25px 25px]
-Fail CSS Transitions with transition: all: property <perspective-origin> from [initial] to [20px 20px] at (0.3) should be [23.5px 23.5px]
-Fail CSS Transitions with transition: all: property <perspective-origin> from [initial] to [20px 20px] at (0.6) should be [22px 22px]
-Fail CSS Transitions with transition: all: property <perspective-origin> from [initial] to [20px 20px] at (1) should be [20px 20px]
-Fail CSS Transitions with transition: all: property <perspective-origin> from [initial] to [20px 20px] at (1.5) should be [17.5px 17.5px]
-Fail CSS Animations: property <perspective-origin> from [initial] to [20px 20px] at (-0.3) should be [26.5px 26.5px]
-Fail CSS Animations: property <perspective-origin> from [initial] to [20px 20px] at (0) should be [25px 25px]
-Fail CSS Animations: property <perspective-origin> from [initial] to [20px 20px] at (0.3) should be [23.5px 23.5px]
-Fail CSS Animations: property <perspective-origin> from [initial] to [20px 20px] at (0.6) should be [22px 22px]
-Fail CSS Animations: property <perspective-origin> from [initial] to [20px 20px] at (1) should be [20px 20px]
-Fail CSS Animations: property <perspective-origin> from [initial] to [20px 20px] at (1.5) should be [17.5px 17.5px]
-Fail Web Animations: property <perspective-origin> from [initial] to [20px 20px] at (-0.3) should be [26.5px 26.5px]
-Fail Web Animations: property <perspective-origin> from [initial] to [20px 20px] at (0) should be [25px 25px]
-Fail Web Animations: property <perspective-origin> from [initial] to [20px 20px] at (0.3) should be [23.5px 23.5px]
-Fail Web Animations: property <perspective-origin> from [initial] to [20px 20px] at (0.6) should be [22px 22px]
-Fail Web Animations: property <perspective-origin> from [initial] to [20px 20px] at (1) should be [20px 20px]
-Fail Web Animations: property <perspective-origin> from [initial] to [20px 20px] at (1.5) should be [17.5px 17.5px]
+Pass CSS Transitions: property <perspective-origin> from [initial] to [20px 20px] at (-0.3) should be [26.5px 26.5px]
+Pass CSS Transitions: property <perspective-origin> from [initial] to [20px 20px] at (0) should be [25px 25px]
+Pass CSS Transitions: property <perspective-origin> from [initial] to [20px 20px] at (0.3) should be [23.5px 23.5px]
+Pass CSS Transitions: property <perspective-origin> from [initial] to [20px 20px] at (0.6) should be [22px 22px]
+Pass CSS Transitions: property <perspective-origin> from [initial] to [20px 20px] at (1) should be [20px 20px]
+Pass CSS Transitions: property <perspective-origin> from [initial] to [20px 20px] at (1.5) should be [17.5px 17.5px]
+Pass CSS Transitions with transition: all: property <perspective-origin> from [initial] to [20px 20px] at (-0.3) should be [26.5px 26.5px]
+Pass CSS Transitions with transition: all: property <perspective-origin> from [initial] to [20px 20px] at (0) should be [25px 25px]
+Pass CSS Transitions with transition: all: property <perspective-origin> from [initial] to [20px 20px] at (0.3) should be [23.5px 23.5px]
+Pass CSS Transitions with transition: all: property <perspective-origin> from [initial] to [20px 20px] at (0.6) should be [22px 22px]
+Pass CSS Transitions with transition: all: property <perspective-origin> from [initial] to [20px 20px] at (1) should be [20px 20px]
+Pass CSS Transitions with transition: all: property <perspective-origin> from [initial] to [20px 20px] at (1.5) should be [17.5px 17.5px]
+Pass CSS Animations: property <perspective-origin> from [initial] to [20px 20px] at (-0.3) should be [26.5px 26.5px]
+Pass CSS Animations: property <perspective-origin> from [initial] to [20px 20px] at (0) should be [25px 25px]
+Pass CSS Animations: property <perspective-origin> from [initial] to [20px 20px] at (0.3) should be [23.5px 23.5px]
+Pass CSS Animations: property <perspective-origin> from [initial] to [20px 20px] at (0.6) should be [22px 22px]
+Pass CSS Animations: property <perspective-origin> from [initial] to [20px 20px] at (1) should be [20px 20px]
+Pass CSS Animations: property <perspective-origin> from [initial] to [20px 20px] at (1.5) should be [17.5px 17.5px]
+Pass Web Animations: property <perspective-origin> from [initial] to [20px 20px] at (-0.3) should be [26.5px 26.5px]
+Pass Web Animations: property <perspective-origin> from [initial] to [20px 20px] at (0) should be [25px 25px]
+Pass Web Animations: property <perspective-origin> from [initial] to [20px 20px] at (0.3) should be [23.5px 23.5px]
+Pass Web Animations: property <perspective-origin> from [initial] to [20px 20px] at (0.6) should be [22px 22px]
+Pass Web Animations: property <perspective-origin> from [initial] to [20px 20px] at (1) should be [20px 20px]
+Pass Web Animations: property <perspective-origin> from [initial] to [20px 20px] at (1.5) should be [17.5px 17.5px]
Pass CSS Transitions: property <perspective-origin> from [inherit] to [20px 20px] at (-0.3) should be [33px 7px]
Pass CSS Transitions: property <perspective-origin> from [inherit] to [20px 20px] at (0) should be [30px 10px]
Pass CSS Transitions: property <perspective-origin> from [inherit] to [20px 20px] at (0.3) should be [27px 13px]
@@ -76,30 +75,30 @@ Pass Web Animations: property <perspective-origin> from [inherit] to [20px 20px]
Pass Web Animations: property <perspective-origin> from [inherit] to [20px 20px] at (0.6) should be [24px 16px]
Pass Web Animations: property <perspective-origin> from [inherit] to [20px 20px] at (1) should be [20px 20px]
Pass Web Animations: property <perspective-origin> from [inherit] to [20px 20px] at (1.5) should be [15px 25px]
-Fail CSS Transitions: property <perspective-origin> from [unset] to [20px 20px] at (-0.3) should be [26.5px 26.5px]
-Fail CSS Transitions: property <perspective-origin> from [unset] to [20px 20px] at (0) should be [25px 25px]
-Fail CSS Transitions: property <perspective-origin> from [unset] to [20px 20px] at (0.3) should be [23.5px 23.5px]
-Fail CSS Transitions: property <perspective-origin> from [unset] to [20px 20px] at (0.6) should be [22px 22px]
-Fail CSS Transitions: property <perspective-origin> from [unset] to [20px 20px] at (1) should be [20px 20px]
-Fail CSS Transitions: property <perspective-origin> from [unset] to [20px 20px] at (1.5) should be [17.5px 17.5px]
-Fail CSS Transitions with transition: all: property <perspective-origin> from [unset] to [20px 20px] at (-0.3) should be [26.5px 26.5px]
-Fail CSS Transitions with transition: all: property <perspective-origin> from [unset] to [20px 20px] at (0) should be [25px 25px]
-Fail CSS Transitions with transition: all: property <perspective-origin> from [unset] to [20px 20px] at (0.3) should be [23.5px 23.5px]
-Fail CSS Transitions with transition: all: property <perspective-origin> from [unset] to [20px 20px] at (0.6) should be [22px 22px]
-Fail CSS Transitions with transition: all: property <perspective-origin> from [unset] to [20px 20px] at (1) should be [20px 20px]
-Fail CSS Transitions with transition: all: property <perspective-origin> from [unset] to [20px 20px] at (1.5) should be [17.5px 17.5px]
-Fail CSS Animations: property <perspective-origin> from [unset] to [20px 20px] at (-0.3) should be [26.5px 26.5px]
-Fail CSS Animations: property <perspective-origin> from [unset] to [20px 20px] at (0) should be [25px 25px]
-Fail CSS Animations: property <perspective-origin> from [unset] to [20px 20px] at (0.3) should be [23.5px 23.5px]
-Fail CSS Animations: property <perspective-origin> from [unset] to [20px 20px] at (0.6) should be [22px 22px]
-Fail CSS Animations: property <perspective-origin> from [unset] to [20px 20px] at (1) should be [20px 20px]
-Fail CSS Animations: property <perspective-origin> from [unset] to [20px 20px] at (1.5) should be [17.5px 17.5px]
-Fail Web Animations: property <perspective-origin> from [unset] to [20px 20px] at (-0.3) should be [26.5px 26.5px]
-Fail Web Animations: property <perspective-origin> from [unset] to [20px 20px] at (0) should be [25px 25px]
-Fail Web Animations: property <perspective-origin> from [unset] to [20px 20px] at (0.3) should be [23.5px 23.5px]
-Fail Web Animations: property <perspective-origin> from [unset] to [20px 20px] at (0.6) should be [22px 22px]
-Fail Web Animations: property <perspective-origin> from [unset] to [20px 20px] at (1) should be [20px 20px]
-Fail Web Animations: property <perspective-origin> from [unset] to [20px 20px] at (1.5) should be [17.5px 17.5px]
+Pass CSS Transitions: property <perspective-origin> from [unset] to [20px 20px] at (-0.3) should be [26.5px 26.5px]
+Pass CSS Transitions: property <perspective-origin> from [unset] to [20px 20px] at (0) should be [25px 25px]
+Pass CSS Transitions: property <perspective-origin> from [unset] to [20px 20px] at (0.3) should be [23.5px 23.5px]
+Pass CSS Transitions: property <perspective-origin> from [unset] to [20px 20px] at (0.6) should be [22px 22px]
+Pass CSS Transitions: property <perspective-origin> from [unset] to [20px 20px] at (1) should be [20px 20px]
+Pass CSS Transitions: property <perspective-origin> from [unset] to [20px 20px] at (1.5) should be [17.5px 17.5px]
+Pass CSS Transitions with transition: all: property <perspective-origin> from [unset] to [20px 20px] at (-0.3) should be [26.5px 26.5px]
+Pass CSS Transitions with transition: all: property <perspective-origin> from [unset] to [20px 20px] at (0) should be [25px 25px]
+Pass CSS Transitions with transition: all: property <perspective-origin> from [unset] to [20px 20px] at (0.3) should be [23.5px 23.5px]
+Pass CSS Transitions with transition: all: property <perspective-origin> from [unset] to [20px 20px] at (0.6) should be [22px 22px]
+Pass CSS Transitions with transition: all: property <perspective-origin> from [unset] to [20px 20px] at (1) should be [20px 20px]
+Pass CSS Transitions with transition: all: property <perspective-origin> from [unset] to [20px 20px] at (1.5) should be [17.5px 17.5px]
+Pass CSS Animations: property <perspective-origin> from [unset] to [20px 20px] at (-0.3) should be [26.5px 26.5px]
+Pass CSS Animations: property <perspective-origin> from [unset] to [20px 20px] at (0) should be [25px 25px]
+Pass CSS Animations: property <perspective-origin> from [unset] to [20px 20px] at (0.3) should be [23.5px 23.5px]
+Pass CSS Animations: property <perspective-origin> from [unset] to [20px 20px] at (0.6) should be [22px 22px]
+Pass CSS Animations: property <perspective-origin> from [unset] to [20px 20px] at (1) should be [20px 20px]
+Pass CSS Animations: property <perspective-origin> from [unset] to [20px 20px] at (1.5) should be [17.5px 17.5px]
+Pass Web Animations: property <perspective-origin> from [unset] to [20px 20px] at (-0.3) should be [26.5px 26.5px]
+Pass Web Animations: property <perspective-origin> from [unset] to [20px 20px] at (0) should be [25px 25px]
+Pass Web Animations: property <perspective-origin> from [unset] to [20px 20px] at (0.3) should be [23.5px 23.5px]
+Pass Web Animations: property <perspective-origin> from [unset] to [20px 20px] at (0.6) should be [22px 22px]
+Pass Web Animations: property <perspective-origin> from [unset] to [20px 20px] at (1) should be [20px 20px]
+Pass Web Animations: property <perspective-origin> from [unset] to [20px 20px] at (1.5) should be [17.5px 17.5px]
Pass CSS Transitions: property <perspective-origin> from [0% 50%] to [100% 150%] at (-0.3) should be [-30% 20%]
Pass CSS Transitions: property <perspective-origin> from [0% 50%] to [100% 150%] at (0) should be [0% 50%]
Pass CSS Transitions: property <perspective-origin> from [0% 50%] to [100% 150%] at (0.3) should be [30% 80%]
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/inheritance.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/inheritance.txt
index d3d4eb6fed9..a1c21665838 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/inheritance.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/inheritance.txt
@@ -2,13 +2,12 @@ Harness status: OK
Found 20 tests
-19 Pass
-1 Fail
+20 Pass
Pass Property backface-visibility has initial value visible
Pass Property backface-visibility does not inherit
Pass Property perspective has initial value none
Pass Property perspective does not inherit
-Fail Property perspective-origin has initial value 30px 20px
+Pass Property perspective-origin has initial value 30px 20px
Pass Property perspective-origin does not inherit
Pass Property rotate has initial value none
Pass Property rotate does not inherit
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/transforms-support-calc.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/transforms-support-calc.txt
index 95c68da3010..1de09bab4f5 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/transforms-support-calc.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/transforms-support-calc.txt
@@ -2,12 +2,11 @@ Harness status: OK
Found 7 tests
-6 Pass
-1 Fail
+7 Pass
Pass translate supports calc
Pass rotate supports calc
Pass scale supports calc
Pass perspective supports calc
-Fail perspective-origin supports calc
+Pass perspective-origin supports calc
Pass transform supports calc
Pass transform-origin supports calc
\ No newline at end of file