Skip to content

Truly independent web browser

LibWeb: Interpolate perspective() pairs anywhere in a transform list

Andreas Kling443ac3020852
diff --git a/Libraries/LibWeb/Rust/src/css/animation.rs b/Libraries/LibWeb/Rust/src/css/animation.rs
index 7064818f671..2aae5178654 100644
--- a/Libraries/LibWeb/Rust/src/css/animation.rs
+++ b/Libraries/LibWeb/Rust/src/css/animation.rs
@@ -5847,23 +5847,14 @@ fn interpolate_transform_list(
else {
return None;
};
- if from_function == to_function
- && *from_function == TRANSFORM_FUNCTION_PERSPECTIVE
- && index + 1 == from_values.len()
- {
+ if from_function == to_function && *from_function == TRANSFORM_FUNCTION_PERSPECTIVE {
let ([from_argument], [to_argument]) = (from_arguments.as_slice(), to_arguments.as_slice()) else {
return None;
};
- let reciprocal_depth = |argument: &RetainedStyleValueData| match argument.data() {
- StyleValueData::Length { value, unit } => Some((1.0 / value.max(1.0), Some(*unit))),
- StyleValueData::Keyword { keyword } if *keyword == crate::css::style_compute::none_keyword() => {
- Some((0.0, None))
- }
- _ => None,
- };
- let (Some((from_reciprocal_depth, from_unit)), Some((to_reciprocal_depth, to_unit))) =
- (reciprocal_depth(from_argument), reciprocal_depth(to_argument))
- else {
+ let (Some((from_reciprocal_depth, from_unit)), Some((to_reciprocal_depth, to_unit))) = (
+ reciprocal_perspective_depth(from_argument),
+ reciprocal_perspective_depth(to_argument),
+ ) else {
return None;
};
if from_unit.is_some() && to_unit.is_some() && from_unit != to_unit {
@@ -5877,16 +5868,7 @@ fn interpolate_transform_list(
// interpolating that component and inverting it produces the same result without materializing
// and decomposing two matrices.
let reciprocal_depth = interpolate_f64(from_reciprocal_depth, to_reciprocal_depth, delta, None);
- let argument = if reciprocal_depth == 0.0 {
- retained_none_keyword()
- } else {
- RetainedStyleValueData::from_arc(Arc::new(StyleValueData::Length {
- value: 1.0 / reciprocal_depth,
- unit: from_unit
- .or(to_unit)
- .unwrap_or_else(crate::css::style_compute::px_length_unit),
- }))
- };
+ let argument = perspective_from_reciprocal_depth(reciprocal_depth, from_unit.or(to_unit));
let transformation = RetainedStyleValueData::from_arc(Arc::new(StyleValueData::Transformation {
property: *from_property,
transform_function: *from_function,
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/animation/transform-interpolation-001.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/animation/transform-interpolation-001.txt
index 3380e17a110..cf22218dc2c 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/animation/transform-interpolation-001.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/animation/transform-interpolation-001.txt
@@ -2,8 +2,7 @@ Harness status: OK
Found 448 tests
-440 Pass
-8 Fail
+448 Pass
Pass CSS Transitions: property <transform> from [perspective(400px)] to [perspective(500px)] at (-1) should be [perspective(333.3333333333333px)]
Pass CSS Transitions: property <transform> from [perspective(400px)] to [perspective(500px)] at (0) should be [perspective(400px)]
Pass CSS Transitions: property <transform> from [perspective(400px)] to [perspective(500px)] at (0.25) should be [perspective(421.0526315789474px)]
@@ -76,42 +75,42 @@ Pass Web Animations: property <transform> from [scaleZ(1) perspective(400px)] to
Pass Web Animations: property <transform> from [scaleZ(1) perspective(400px)] to [scaleZ(2) perspective(500px)] at (0.75) should be [scaleZ(1.75) perspective(470.5882352941176px)]
Pass Web Animations: property <transform> from [scaleZ(1) perspective(400px)] to [scaleZ(2) perspective(500px)] at (1) should be [scaleZ(2) perspective(500px)]
Pass Web Animations: property <transform> from [scaleZ(1) perspective(400px)] to [scaleZ(2) perspective(500px)] at (2) should be [scaleZ(3) perspective(666.6666666666666px)]
-Fail CSS Transitions: property <transform> from [scaleZ(2)] to [scaleZ(2) perspective(500px)] at (-1) should be [scaleZ(2)]
+Pass CSS Transitions: property <transform> from [scaleZ(2)] to [scaleZ(2) perspective(500px)] at (-1) should be [scaleZ(2)]
Pass CSS Transitions: property <transform> from [scaleZ(2)] to [scaleZ(2) perspective(500px)] at (0) should be [scaleZ(2)]
Pass CSS Transitions: property <transform> from [scaleZ(2)] to [scaleZ(2) perspective(500px)] at (0.5) should be [scaleZ(2) perspective(1000px)]
Pass CSS Transitions: property <transform> from [scaleZ(2)] to [scaleZ(2) perspective(500px)] at (1) should be [scaleZ(2) perspective(500px)]
Pass CSS Transitions: property <transform> from [scaleZ(2)] to [scaleZ(2) perspective(500px)] at (2) should be [scaleZ(2) perspective(250px)]
-Fail CSS Transitions with transition: all: property <transform> from [scaleZ(2)] to [scaleZ(2) perspective(500px)] at (-1) should be [scaleZ(2)]
+Pass CSS Transitions with transition: all: property <transform> from [scaleZ(2)] to [scaleZ(2) perspective(500px)] at (-1) should be [scaleZ(2)]
Pass CSS Transitions with transition: all: property <transform> from [scaleZ(2)] to [scaleZ(2) perspective(500px)] at (0) should be [scaleZ(2)]
Pass CSS Transitions with transition: all: property <transform> from [scaleZ(2)] to [scaleZ(2) perspective(500px)] at (0.5) should be [scaleZ(2) perspective(1000px)]
Pass CSS Transitions with transition: all: property <transform> from [scaleZ(2)] to [scaleZ(2) perspective(500px)] at (1) should be [scaleZ(2) perspective(500px)]
Pass CSS Transitions with transition: all: property <transform> from [scaleZ(2)] to [scaleZ(2) perspective(500px)] at (2) should be [scaleZ(2) perspective(250px)]
-Fail CSS Animations: property <transform> from [scaleZ(2)] to [scaleZ(2) perspective(500px)] at (-1) should be [scaleZ(2)]
+Pass CSS Animations: property <transform> from [scaleZ(2)] to [scaleZ(2) perspective(500px)] at (-1) should be [scaleZ(2)]
Pass CSS Animations: property <transform> from [scaleZ(2)] to [scaleZ(2) perspective(500px)] at (0) should be [scaleZ(2)]
Pass CSS Animations: property <transform> from [scaleZ(2)] to [scaleZ(2) perspective(500px)] at (0.5) should be [scaleZ(2) perspective(1000px)]
Pass CSS Animations: property <transform> from [scaleZ(2)] to [scaleZ(2) perspective(500px)] at (1) should be [scaleZ(2) perspective(500px)]
Pass CSS Animations: property <transform> from [scaleZ(2)] to [scaleZ(2) perspective(500px)] at (2) should be [scaleZ(2) perspective(250px)]
-Fail Web Animations: property <transform> from [scaleZ(2)] to [scaleZ(2) perspective(500px)] at (-1) should be [scaleZ(2)]
+Pass Web Animations: property <transform> from [scaleZ(2)] to [scaleZ(2) perspective(500px)] at (-1) should be [scaleZ(2)]
Pass Web Animations: property <transform> from [scaleZ(2)] to [scaleZ(2) perspective(500px)] at (0) should be [scaleZ(2)]
Pass Web Animations: property <transform> from [scaleZ(2)] to [scaleZ(2) perspective(500px)] at (0.5) should be [scaleZ(2) perspective(1000px)]
Pass Web Animations: property <transform> from [scaleZ(2)] to [scaleZ(2) perspective(500px)] at (1) should be [scaleZ(2) perspective(500px)]
Pass Web Animations: property <transform> from [scaleZ(2)] to [scaleZ(2) perspective(500px)] at (2) should be [scaleZ(2) perspective(250px)]
-Fail CSS Transitions: property <transform> from [perspective(none)] to [perspective(500px)] at (-1) should be [perspective(none)]
+Pass CSS Transitions: property <transform> from [perspective(none)] to [perspective(500px)] at (-1) should be [perspective(none)]
Pass CSS Transitions: property <transform> from [perspective(none)] to [perspective(500px)] at (0) should be [perspective(none)]
Pass CSS Transitions: property <transform> from [perspective(none)] to [perspective(500px)] at (0.5) should be [perspective(1000px)]
Pass CSS Transitions: property <transform> from [perspective(none)] to [perspective(500px)] at (1) should be [perspective(500px)]
Pass CSS Transitions: property <transform> from [perspective(none)] to [perspective(500px)] at (2) should be [perspective(250px)]
-Fail CSS Transitions with transition: all: property <transform> from [perspective(none)] to [perspective(500px)] at (-1) should be [perspective(none)]
+Pass CSS Transitions with transition: all: property <transform> from [perspective(none)] to [perspective(500px)] at (-1) should be [perspective(none)]
Pass CSS Transitions with transition: all: property <transform> from [perspective(none)] to [perspective(500px)] at (0) should be [perspective(none)]
Pass CSS Transitions with transition: all: property <transform> from [perspective(none)] to [perspective(500px)] at (0.5) should be [perspective(1000px)]
Pass CSS Transitions with transition: all: property <transform> from [perspective(none)] to [perspective(500px)] at (1) should be [perspective(500px)]
Pass CSS Transitions with transition: all: property <transform> from [perspective(none)] to [perspective(500px)] at (2) should be [perspective(250px)]
-Fail CSS Animations: property <transform> from [perspective(none)] to [perspective(500px)] at (-1) should be [perspective(none)]
+Pass CSS Animations: property <transform> from [perspective(none)] to [perspective(500px)] at (-1) should be [perspective(none)]
Pass CSS Animations: property <transform> from [perspective(none)] to [perspective(500px)] at (0) should be [perspective(none)]
Pass CSS Animations: property <transform> from [perspective(none)] to [perspective(500px)] at (0.5) should be [perspective(1000px)]
Pass CSS Animations: property <transform> from [perspective(none)] to [perspective(500px)] at (1) should be [perspective(500px)]
Pass CSS Animations: property <transform> from [perspective(none)] to [perspective(500px)] at (2) should be [perspective(250px)]
-Fail Web Animations: property <transform> from [perspective(none)] to [perspective(500px)] at (-1) should be [perspective(none)]
+Pass Web Animations: property <transform> from [perspective(none)] to [perspective(500px)] at (-1) should be [perspective(none)]
Pass Web Animations: property <transform> from [perspective(none)] to [perspective(500px)] at (0) should be [perspective(none)]
Pass Web Animations: property <transform> from [perspective(none)] to [perspective(500px)] at (0.5) should be [perspective(1000px)]
Pass Web Animations: property <transform> from [perspective(none)] to [perspective(500px)] at (1) should be [perspective(500px)]
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/animation/transform-interpolation-verify-reftests.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/animation/transform-interpolation-verify-reftests.txt
index 58138ec0e26..b5013d72cb5 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/animation/transform-interpolation-verify-reftests.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/animation/transform-interpolation-verify-reftests.txt
@@ -2,8 +2,8 @@ Harness status: OK
Found 176 tests
-144 Pass
-32 Fail
+172 Pass
+4 Fail
Pass CSS Transitions: property <transform> from [translateX(0px)] to [translateX(50px)] at (0.5) should be [translateX(25px)]
Pass CSS Transitions with transition: all: property <transform> from [translateX(0px)] to [translateX(50px)] at (0.5) should be [translateX(25px)]
Pass CSS Animations: property <transform> from [translateX(0px)] to [translateX(50px)] at (0.5) should be [translateX(25px)]
@@ -148,35 +148,35 @@ Pass CSS Transitions: property <transform> from [perspective(none) translateZ(15
Pass CSS Transitions with transition: all: property <transform> from [perspective(none) translateZ(15px)] to [perspective(none) translateZ(15px)] at (0.5) should be [perspective(none) translateZ(15px)]
Pass CSS Animations: property <transform> from [perspective(none) translateZ(15px)] to [perspective(none) translateZ(15px)] at (0.5) should be [perspective(none) translateZ(15px)]
Pass Web Animations: property <transform> from [perspective(none) translateZ(15px)] to [perspective(none) translateZ(15px)] at (0.5) should be [perspective(none) translateZ(15px)]
-Fail CSS Transitions: property <transform> from [perspective(100px) translateZ(50px)] to [perspective(none) translateZ(50px)] at (0.5) should be [perspective(200px) translateZ(50px)]
-Fail CSS Transitions with transition: all: property <transform> from [perspective(100px) translateZ(50px)] to [perspective(none) translateZ(50px)] at (0.5) should be [perspective(200px) translateZ(50px)]
-Fail CSS Animations: property <transform> from [perspective(100px) translateZ(50px)] to [perspective(none) translateZ(50px)] at (0.5) should be [perspective(200px) translateZ(50px)]
-Fail Web Animations: property <transform> from [perspective(100px) translateZ(50px)] to [perspective(none) translateZ(50px)] at (0.5) should be [perspective(200px) translateZ(50px)]
-Fail CSS Transitions: property <transform> from [perspective(none) translateZ(15px)] to [perspective(25px) translateZ(15px)] at (0.5) should be [perspective(50px) translateZ(15px)]
-Fail CSS Transitions with transition: all: property <transform> from [perspective(none) translateZ(15px)] to [perspective(25px) translateZ(15px)] at (0.5) should be [perspective(50px) translateZ(15px)]
-Fail CSS Animations: property <transform> from [perspective(none) translateZ(15px)] to [perspective(25px) translateZ(15px)] at (0.5) should be [perspective(50px) translateZ(15px)]
-Fail Web Animations: property <transform> from [perspective(none) translateZ(15px)] to [perspective(25px) translateZ(15px)] at (0.5) should be [perspective(50px) translateZ(15px)]
-Fail CSS Transitions: property <transform> from [perspective(100px) translateZ(15px)] to [perspective(25px) translateZ(15px)] at (0.5) should be [perspective(40px) translateZ(15px)]
-Fail CSS Transitions with transition: all: property <transform> from [perspective(100px) translateZ(15px)] to [perspective(25px) translateZ(15px)] at (0.5) should be [perspective(40px) translateZ(15px)]
-Fail CSS Animations: property <transform> from [perspective(100px) translateZ(15px)] to [perspective(25px) translateZ(15px)] at (0.5) should be [perspective(40px) translateZ(15px)]
-Fail Web Animations: property <transform> from [perspective(100px) translateZ(15px)] to [perspective(25px) translateZ(15px)] at (0.5) should be [perspective(40px) translateZ(15px)]
+Pass CSS Transitions: property <transform> from [perspective(100px) translateZ(50px)] to [perspective(none) translateZ(50px)] at (0.5) should be [perspective(200px) translateZ(50px)]
+Pass CSS Transitions with transition: all: property <transform> from [perspective(100px) translateZ(50px)] to [perspective(none) translateZ(50px)] at (0.5) should be [perspective(200px) translateZ(50px)]
+Pass CSS Animations: property <transform> from [perspective(100px) translateZ(50px)] to [perspective(none) translateZ(50px)] at (0.5) should be [perspective(200px) translateZ(50px)]
+Pass Web Animations: property <transform> from [perspective(100px) translateZ(50px)] to [perspective(none) translateZ(50px)] at (0.5) should be [perspective(200px) translateZ(50px)]
+Pass CSS Transitions: property <transform> from [perspective(none) translateZ(15px)] to [perspective(25px) translateZ(15px)] at (0.5) should be [perspective(50px) translateZ(15px)]
+Pass CSS Transitions with transition: all: property <transform> from [perspective(none) translateZ(15px)] to [perspective(25px) translateZ(15px)] at (0.5) should be [perspective(50px) translateZ(15px)]
+Pass CSS Animations: property <transform> from [perspective(none) translateZ(15px)] to [perspective(25px) translateZ(15px)] at (0.5) should be [perspective(50px) translateZ(15px)]
+Pass Web Animations: property <transform> from [perspective(none) translateZ(15px)] to [perspective(25px) translateZ(15px)] at (0.5) should be [perspective(50px) translateZ(15px)]
+Pass CSS Transitions: property <transform> from [perspective(100px) translateZ(15px)] to [perspective(25px) translateZ(15px)] at (0.5) should be [perspective(40px) translateZ(15px)]
+Pass CSS Transitions with transition: all: property <transform> from [perspective(100px) translateZ(15px)] to [perspective(25px) translateZ(15px)] at (0.5) should be [perspective(40px) translateZ(15px)]
+Pass CSS Animations: property <transform> from [perspective(100px) translateZ(15px)] to [perspective(25px) translateZ(15px)] at (0.5) should be [perspective(40px) translateZ(15px)]
+Pass Web Animations: property <transform> from [perspective(100px) translateZ(15px)] to [perspective(25px) translateZ(15px)] at (0.5) should be [perspective(40px) translateZ(15px)]
Pass CSS Transitions: property <transform> from [perspective(0.1px) translateZ(0.25px)] to [perspective(0.1px) translateZ(0.25px)] at (0.5) should be [perspective(1px) translateZ(0.25px)]
Pass CSS Transitions with transition: all: property <transform> from [perspective(0.1px) translateZ(0.25px)] to [perspective(0.1px) translateZ(0.25px)] at (0.5) should be [perspective(1px) translateZ(0.25px)]
-Fail CSS Animations: property <transform> from [perspective(0.1px) translateZ(0.25px)] to [perspective(0.1px) translateZ(0.25px)] at (0.5) should be [perspective(1px) translateZ(0.25px)]
-Fail Web Animations: property <transform> from [perspective(0.1px) translateZ(0.25px)] to [perspective(0.1px) translateZ(0.25px)] at (0.5) should be [perspective(1px) translateZ(0.25px)]
+Pass CSS Animations: property <transform> from [perspective(0.1px) translateZ(0.25px)] to [perspective(0.1px) translateZ(0.25px)] at (0.5) should be [perspective(1px) translateZ(0.25px)]
+Pass Web Animations: property <transform> from [perspective(0.1px) translateZ(0.25px)] to [perspective(0.1px) translateZ(0.25px)] at (0.5) should be [perspective(1px) translateZ(0.25px)]
Pass CSS Transitions: property <transform> from [perspective(0px) translateZ(0.25px)] to [perspective(0px) translateZ(0.25px)] at (0.5) should be [perspective(1px) translateZ(0.25px)]
Pass CSS Transitions with transition: all: property <transform> from [perspective(0px) translateZ(0.25px)] to [perspective(0px) translateZ(0.25px)] at (0.5) should be [perspective(1px) translateZ(0.25px)]
-Fail CSS Animations: property <transform> from [perspective(0px) translateZ(0.25px)] to [perspective(0px) translateZ(0.25px)] at (0.5) should be [perspective(1px) translateZ(0.25px)]
-Fail Web Animations: property <transform> from [perspective(0px) translateZ(0.25px)] to [perspective(0px) translateZ(0.25px)] at (0.5) should be [perspective(1px) translateZ(0.25px)]
-Fail CSS Transitions: property <transform> from [perspective(0px) translateZ(0.5px)] to [perspective(3px) translateZ(0.5px)] at (0.5) should be [perspective(1.5px) translateZ(0.5px)]
-Fail CSS Transitions with transition: all: property <transform> from [perspective(0px) translateZ(0.5px)] to [perspective(3px) translateZ(0.5px)] at (0.5) should be [perspective(1.5px) translateZ(0.5px)]
-Fail CSS Animations: property <transform> from [perspective(0px) translateZ(0.5px)] to [perspective(3px) translateZ(0.5px)] at (0.5) should be [perspective(1.5px) translateZ(0.5px)]
-Fail Web Animations: property <transform> from [perspective(0px) translateZ(0.5px)] to [perspective(3px) translateZ(0.5px)] at (0.5) should be [perspective(1.5px) translateZ(0.5px)]
-Fail CSS Transitions: property <transform> from [perspective(10px) translateZ(0.5px)] to [perspective(1px) translateZ(0.5px)] at (-1) should be [translateZ(0.5px)]
-Fail CSS Transitions with transition: all: property <transform> from [perspective(10px) translateZ(0.5px)] to [perspective(1px) translateZ(0.5px)] at (-1) should be [translateZ(0.5px)]
-Fail CSS Animations: property <transform> from [perspective(10px) translateZ(0.5px)] to [perspective(1px) translateZ(0.5px)] at (-1) should be [translateZ(0.5px)]
-Fail Web Animations: property <transform> from [perspective(10px) translateZ(0.5px)] to [perspective(1px) translateZ(0.5px)] at (-1) should be [translateZ(0.5px)]
-Fail CSS Transitions: property <transform> from [perspective(1px) translateZ(0.5px)] to [perspective(10px) translateZ(0.5px)] at (-1) should be [perspective(1px) translateZ(0.5px)]
-Fail CSS Transitions with transition: all: property <transform> from [perspective(1px) translateZ(0.5px)] to [perspective(10px) translateZ(0.5px)] at (-1) should be [perspective(1px) translateZ(0.5px)]
-Fail CSS Animations: property <transform> from [perspective(1px) translateZ(0.5px)] to [perspective(10px) translateZ(0.5px)] at (-1) should be [perspective(1px) translateZ(0.5px)]
-Fail Web Animations: property <transform> from [perspective(1px) translateZ(0.5px)] to [perspective(10px) translateZ(0.5px)] at (-1) should be [perspective(1px) translateZ(0.5px)]
\ No newline at end of file
+Pass CSS Animations: property <transform> from [perspective(0px) translateZ(0.25px)] to [perspective(0px) translateZ(0.25px)] at (0.5) should be [perspective(1px) translateZ(0.25px)]
+Pass Web Animations: property <transform> from [perspective(0px) translateZ(0.25px)] to [perspective(0px) translateZ(0.25px)] at (0.5) should be [perspective(1px) translateZ(0.25px)]
+Pass CSS Transitions: property <transform> from [perspective(0px) translateZ(0.5px)] to [perspective(3px) translateZ(0.5px)] at (0.5) should be [perspective(1.5px) translateZ(0.5px)]
+Pass CSS Transitions with transition: all: property <transform> from [perspective(0px) translateZ(0.5px)] to [perspective(3px) translateZ(0.5px)] at (0.5) should be [perspective(1.5px) translateZ(0.5px)]
+Pass CSS Animations: property <transform> from [perspective(0px) translateZ(0.5px)] to [perspective(3px) translateZ(0.5px)] at (0.5) should be [perspective(1.5px) translateZ(0.5px)]
+Pass Web Animations: property <transform> from [perspective(0px) translateZ(0.5px)] to [perspective(3px) translateZ(0.5px)] at (0.5) should be [perspective(1.5px) translateZ(0.5px)]
+Pass CSS Transitions: property <transform> from [perspective(10px) translateZ(0.5px)] to [perspective(1px) translateZ(0.5px)] at (-1) should be [translateZ(0.5px)]
+Pass CSS Transitions with transition: all: property <transform> from [perspective(10px) translateZ(0.5px)] to [perspective(1px) translateZ(0.5px)] at (-1) should be [translateZ(0.5px)]
+Pass CSS Animations: property <transform> from [perspective(10px) translateZ(0.5px)] to [perspective(1px) translateZ(0.5px)] at (-1) should be [translateZ(0.5px)]
+Pass Web Animations: property <transform> from [perspective(10px) translateZ(0.5px)] to [perspective(1px) translateZ(0.5px)] at (-1) should be [translateZ(0.5px)]
+Pass CSS Transitions: property <transform> from [perspective(1px) translateZ(0.5px)] to [perspective(10px) translateZ(0.5px)] at (-1) should be [perspective(1px) translateZ(0.5px)]
+Pass CSS Transitions with transition: all: property <transform> from [perspective(1px) translateZ(0.5px)] to [perspective(10px) translateZ(0.5px)] at (-1) should be [perspective(1px) translateZ(0.5px)]
+Pass CSS Animations: property <transform> from [perspective(1px) translateZ(0.5px)] to [perspective(10px) translateZ(0.5px)] at (-1) should be [perspective(1px) translateZ(0.5px)]
+Pass Web Animations: property <transform> from [perspective(1px) translateZ(0.5px)] to [perspective(10px) translateZ(0.5px)] at (-1) should be [perspective(1px) translateZ(0.5px)]
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/animation/transform-perspective-composition.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/animation/transform-perspective-composition.txt
index 2241e572dfe..d94787f4543 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/animation/transform-perspective-composition.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-transforms/animation/transform-perspective-composition.txt
@@ -2,22 +2,21 @@ Harness status: OK
Found 28 tests
-26 Pass
-2 Fail
+28 Pass
Pass Compositing CSS Animations: property <transform> underlying [perspective(10px)] from add [perspective(10px)] to add [perspective(50px)] at (-0.5) should be [perspective(4.12px)]
Pass Compositing CSS Animations: property <transform> underlying [perspective(10px)] from add [perspective(10px)] to add [perspective(50px)] at (0) should be [perspective(5px)]
Pass Compositing CSS Animations: property <transform> underlying [perspective(10px)] from add [perspective(10px)] to add [perspective(50px)] at (0.25) should be [perspective(5.45px)]
Pass Compositing CSS Animations: property <transform> underlying [perspective(10px)] from add [perspective(10px)] to add [perspective(50px)] at (0.5) should be [perspective(6.15px)]
Pass Compositing CSS Animations: property <transform> underlying [perspective(10px)] from add [perspective(10px)] to add [perspective(50px)] at (0.75) should be [perspective(7.06px)]
Pass Compositing CSS Animations: property <transform> underlying [perspective(10px)] from add [perspective(10px)] to add [perspective(50px)] at (1) should be [perspective(8.33px)]
-Fail Compositing CSS Animations: property <transform> underlying [perspective(10px)] from add [perspective(10px)] to add [perspective(50px)] at (1.5) should be [perspective(10px)]
+Pass Compositing CSS Animations: property <transform> underlying [perspective(10px)] from add [perspective(10px)] to add [perspective(50px)] at (1.5) should be [perspective(10px)]
Pass Compositing Web Animations: property <transform> underlying [perspective(10px)] from add [perspective(10px)] to add [perspective(50px)] at (-0.5) should be [perspective(4.12px)]
Pass Compositing Web Animations: property <transform> underlying [perspective(10px)] from add [perspective(10px)] to add [perspective(50px)] at (0) should be [perspective(5px)]
Pass Compositing Web Animations: property <transform> underlying [perspective(10px)] from add [perspective(10px)] to add [perspective(50px)] at (0.25) should be [perspective(5.45px)]
Pass Compositing Web Animations: property <transform> underlying [perspective(10px)] from add [perspective(10px)] to add [perspective(50px)] at (0.5) should be [perspective(6.15px)]
Pass Compositing Web Animations: property <transform> underlying [perspective(10px)] from add [perspective(10px)] to add [perspective(50px)] at (0.75) should be [perspective(7.06px)]
Pass Compositing Web Animations: property <transform> underlying [perspective(10px)] from add [perspective(10px)] to add [perspective(50px)] at (1) should be [perspective(8.33px)]
-Fail Compositing Web Animations: property <transform> underlying [perspective(10px)] from add [perspective(10px)] to add [perspective(50px)] at (1.5) should be [perspective(10px)]
+Pass Compositing Web Animations: property <transform> underlying [perspective(10px)] from add [perspective(10px)] to add [perspective(50px)] at (1.5) should be [perspective(10px)]
Pass Compositing CSS Animations: property <transform> underlying [perspective(10px)] from accumulate [perspective(10px)] to accumulate [perspective(50px)] at (-0.5) should be [perspective(4.12px)]
Pass Compositing CSS Animations: property <transform> underlying [perspective(10px)] from accumulate [perspective(10px)] to accumulate [perspective(50px)] at (0) should be [perspective(5px)]
Pass Compositing CSS Animations: property <transform> underlying [perspective(10px)] from accumulate [perspective(10px)] to accumulate [perspective(50px)] at (0.25) should be [perspective(5.45px)]