LibWeb: Support transitions between 3D and non-derivative 2D functions

If either of the two transform functions during interpolation is a 3D
function, both of them get coerced to a 3D function before deciding what
to do next. However, we only supported converting 2D functions to 3D if
they had a 2D primitive they could be converted to first.

Change our behavior to default to converting to matrix3d() if there is
no explicit conversion path. Fixes a crash in
`css/css-transforms/animation/transform-interpolation-004.html`.
This commit is contained in:
Jelle Raaijmakers 2025-11-19 09:39:12 +01:00 committed by Jelle Raaijmakers
parent 8348c55570
commit 674e1a5c47
Notes: github-actions[bot] 2025-11-19 09:09:17 +00:00
3 changed files with 493 additions and 7 deletions

View file

@ -971,6 +971,15 @@ static Optional<FloatMatrix4x4> interpolate_matrices(FloatMatrix4x4 const& from,
return recompose(interpolated_decomposed);
}
static StyleValueVector matrix_to_style_value_vector(FloatMatrix4x4 const& matrix)
{
StyleValueVector values;
values.ensure_capacity(16);
for (int i = 0; i < 16; i++)
values.unchecked_append(NumberStyleValue::create(matrix[i % 4, i / 4]));
return values;
}
// https://drafts.csswg.org/css-transforms-1/#interpolation-of-transforms
RefPtr<StyleValue const> interpolate_transform(DOM::Element& element, CalculationContext const& calculation_context,
StyleValue const& from, StyleValue const& to, float delta, AllowDiscrete)
@ -1153,7 +1162,8 @@ RefPtr<StyleValue const> interpolate_transform(DOM::Element& element, Calculatio
parameters.append(transform->values()[0]);
break;
default:
VERIFY_NOT_REACHED();
generic_function = TransformFunction::Matrix3d;
parameters = matrix_to_style_value_vector(MUST(transform->to_transformation().to_matrix({})));
}
return TransformationStyleValue::create(PropertyID::Transform, generic_function, move(parameters));
};
@ -1272,12 +1282,8 @@ RefPtr<StyleValue const> interpolate_transform(DOM::Element& element, Calculatio
auto maybe_interpolated_matrix = interpolate_matrices(from_matrix, to_matrix, delta);
if (maybe_interpolated_matrix.has_value()) {
auto interpolated_matrix = maybe_interpolated_matrix.release_value();
StyleValueVector values;
values.ensure_capacity(16);
for (int i = 0; i < 16; i++)
values.unchecked_append(NumberStyleValue::create(interpolated_matrix[i % 4, i / 4]));
result.append(TransformationStyleValue::create(PropertyID::Transform, TransformFunction::Matrix3d, move(values)));
result.append(TransformationStyleValue::create(PropertyID::Transform, TransformFunction::Matrix3d,
matrix_to_style_value_vector(maybe_interpolated_matrix.release_value())));
} else {
dbgln("Unable to interpolate matrices.");
}

View file

@ -0,0 +1,293 @@
Harness status: OK
Found 288 tests
288 Pass
Pass CSS Transitions: property <transform> from [translate(12px, 70%)] to [translate(13px, 90%)] at (-1) should be [translate(11px, 50%)]
Pass CSS Transitions: property <transform> from [translate(12px, 70%)] to [translate(13px, 90%)] at (0) should be [translate(12px, 70%)]
Pass CSS Transitions: property <transform> from [translate(12px, 70%)] to [translate(13px, 90%)] at (0.25) should be [translate(12.25px, 75%)]
Pass CSS Transitions: property <transform> from [translate(12px, 70%)] to [translate(13px, 90%)] at (0.75) should be [translate(12.75px, 85%)]
Pass CSS Transitions: property <transform> from [translate(12px, 70%)] to [translate(13px, 90%)] at (1) should be [translate(13px, 90%)]
Pass CSS Transitions: property <transform> from [translate(12px, 70%)] to [translate(13px, 90%)] at (2) should be [translate(14px, 110%)]
Pass CSS Transitions with transition: all: property <transform> from [translate(12px, 70%)] to [translate(13px, 90%)] at (-1) should be [translate(11px, 50%)]
Pass CSS Transitions with transition: all: property <transform> from [translate(12px, 70%)] to [translate(13px, 90%)] at (0) should be [translate(12px, 70%)]
Pass CSS Transitions with transition: all: property <transform> from [translate(12px, 70%)] to [translate(13px, 90%)] at (0.25) should be [translate(12.25px, 75%)]
Pass CSS Transitions with transition: all: property <transform> from [translate(12px, 70%)] to [translate(13px, 90%)] at (0.75) should be [translate(12.75px, 85%)]
Pass CSS Transitions with transition: all: property <transform> from [translate(12px, 70%)] to [translate(13px, 90%)] at (1) should be [translate(13px, 90%)]
Pass CSS Transitions with transition: all: property <transform> from [translate(12px, 70%)] to [translate(13px, 90%)] at (2) should be [translate(14px, 110%)]
Pass CSS Animations: property <transform> from [translate(12px, 70%)] to [translate(13px, 90%)] at (-1) should be [translate(11px, 50%)]
Pass CSS Animations: property <transform> from [translate(12px, 70%)] to [translate(13px, 90%)] at (0) should be [translate(12px, 70%)]
Pass CSS Animations: property <transform> from [translate(12px, 70%)] to [translate(13px, 90%)] at (0.25) should be [translate(12.25px, 75%)]
Pass CSS Animations: property <transform> from [translate(12px, 70%)] to [translate(13px, 90%)] at (0.75) should be [translate(12.75px, 85%)]
Pass CSS Animations: property <transform> from [translate(12px, 70%)] to [translate(13px, 90%)] at (1) should be [translate(13px, 90%)]
Pass CSS Animations: property <transform> from [translate(12px, 70%)] to [translate(13px, 90%)] at (2) should be [translate(14px, 110%)]
Pass Web Animations: property <transform> from [translate(12px, 70%)] to [translate(13px, 90%)] at (-1) should be [translate(11px, 50%)]
Pass Web Animations: property <transform> from [translate(12px, 70%)] to [translate(13px, 90%)] at (0) should be [translate(12px, 70%)]
Pass Web Animations: property <transform> from [translate(12px, 70%)] to [translate(13px, 90%)] at (0.25) should be [translate(12.25px, 75%)]
Pass Web Animations: property <transform> from [translate(12px, 70%)] to [translate(13px, 90%)] at (0.75) should be [translate(12.75px, 85%)]
Pass Web Animations: property <transform> from [translate(12px, 70%)] to [translate(13px, 90%)] at (1) should be [translate(13px, 90%)]
Pass Web Animations: property <transform> from [translate(12px, 70%)] to [translate(13px, 90%)] at (2) should be [translate(14px, 110%)]
Pass CSS Transitions: property <transform> from [translateX(12px)] to [translateX(13px)] at (-1) should be [translateX(11px)]
Pass CSS Transitions: property <transform> from [translateX(12px)] to [translateX(13px)] at (0) should be [translateX(12px)]
Pass CSS Transitions: property <transform> from [translateX(12px)] to [translateX(13px)] at (0.25) should be [translateX(12.25px)]
Pass CSS Transitions: property <transform> from [translateX(12px)] to [translateX(13px)] at (0.75) should be [translateX(12.75px)]
Pass CSS Transitions: property <transform> from [translateX(12px)] to [translateX(13px)] at (1) should be [translateX(13px)]
Pass CSS Transitions: property <transform> from [translateX(12px)] to [translateX(13px)] at (2) should be [translateX(14px)]
Pass CSS Transitions with transition: all: property <transform> from [translateX(12px)] to [translateX(13px)] at (-1) should be [translateX(11px)]
Pass CSS Transitions with transition: all: property <transform> from [translateX(12px)] to [translateX(13px)] at (0) should be [translateX(12px)]
Pass CSS Transitions with transition: all: property <transform> from [translateX(12px)] to [translateX(13px)] at (0.25) should be [translateX(12.25px)]
Pass CSS Transitions with transition: all: property <transform> from [translateX(12px)] to [translateX(13px)] at (0.75) should be [translateX(12.75px)]
Pass CSS Transitions with transition: all: property <transform> from [translateX(12px)] to [translateX(13px)] at (1) should be [translateX(13px)]
Pass CSS Transitions with transition: all: property <transform> from [translateX(12px)] to [translateX(13px)] at (2) should be [translateX(14px)]
Pass CSS Animations: property <transform> from [translateX(12px)] to [translateX(13px)] at (-1) should be [translateX(11px)]
Pass CSS Animations: property <transform> from [translateX(12px)] to [translateX(13px)] at (0) should be [translateX(12px)]
Pass CSS Animations: property <transform> from [translateX(12px)] to [translateX(13px)] at (0.25) should be [translateX(12.25px)]
Pass CSS Animations: property <transform> from [translateX(12px)] to [translateX(13px)] at (0.75) should be [translateX(12.75px)]
Pass CSS Animations: property <transform> from [translateX(12px)] to [translateX(13px)] at (1) should be [translateX(13px)]
Pass CSS Animations: property <transform> from [translateX(12px)] to [translateX(13px)] at (2) should be [translateX(14px)]
Pass Web Animations: property <transform> from [translateX(12px)] to [translateX(13px)] at (-1) should be [translateX(11px)]
Pass Web Animations: property <transform> from [translateX(12px)] to [translateX(13px)] at (0) should be [translateX(12px)]
Pass Web Animations: property <transform> from [translateX(12px)] to [translateX(13px)] at (0.25) should be [translateX(12.25px)]
Pass Web Animations: property <transform> from [translateX(12px)] to [translateX(13px)] at (0.75) should be [translateX(12.75px)]
Pass Web Animations: property <transform> from [translateX(12px)] to [translateX(13px)] at (1) should be [translateX(13px)]
Pass Web Animations: property <transform> from [translateX(12px)] to [translateX(13px)] at (2) should be [translateX(14px)]
Pass CSS Transitions: property <transform> from [translateY(70%)] to [translateY(90%)] at (-1) should be [translateY(50%)]
Pass CSS Transitions: property <transform> from [translateY(70%)] to [translateY(90%)] at (0) should be [translateY(70%)]
Pass CSS Transitions: property <transform> from [translateY(70%)] to [translateY(90%)] at (0.25) should be [translateY(75%)]
Pass CSS Transitions: property <transform> from [translateY(70%)] to [translateY(90%)] at (0.75) should be [translateY(85%)]
Pass CSS Transitions: property <transform> from [translateY(70%)] to [translateY(90%)] at (1) should be [translateY(90%)]
Pass CSS Transitions: property <transform> from [translateY(70%)] to [translateY(90%)] at (2) should be [translateY(110%)]
Pass CSS Transitions with transition: all: property <transform> from [translateY(70%)] to [translateY(90%)] at (-1) should be [translateY(50%)]
Pass CSS Transitions with transition: all: property <transform> from [translateY(70%)] to [translateY(90%)] at (0) should be [translateY(70%)]
Pass CSS Transitions with transition: all: property <transform> from [translateY(70%)] to [translateY(90%)] at (0.25) should be [translateY(75%)]
Pass CSS Transitions with transition: all: property <transform> from [translateY(70%)] to [translateY(90%)] at (0.75) should be [translateY(85%)]
Pass CSS Transitions with transition: all: property <transform> from [translateY(70%)] to [translateY(90%)] at (1) should be [translateY(90%)]
Pass CSS Transitions with transition: all: property <transform> from [translateY(70%)] to [translateY(90%)] at (2) should be [translateY(110%)]
Pass CSS Animations: property <transform> from [translateY(70%)] to [translateY(90%)] at (-1) should be [translateY(50%)]
Pass CSS Animations: property <transform> from [translateY(70%)] to [translateY(90%)] at (0) should be [translateY(70%)]
Pass CSS Animations: property <transform> from [translateY(70%)] to [translateY(90%)] at (0.25) should be [translateY(75%)]
Pass CSS Animations: property <transform> from [translateY(70%)] to [translateY(90%)] at (0.75) should be [translateY(85%)]
Pass CSS Animations: property <transform> from [translateY(70%)] to [translateY(90%)] at (1) should be [translateY(90%)]
Pass CSS Animations: property <transform> from [translateY(70%)] to [translateY(90%)] at (2) should be [translateY(110%)]
Pass Web Animations: property <transform> from [translateY(70%)] to [translateY(90%)] at (-1) should be [translateY(50%)]
Pass Web Animations: property <transform> from [translateY(70%)] to [translateY(90%)] at (0) should be [translateY(70%)]
Pass Web Animations: property <transform> from [translateY(70%)] to [translateY(90%)] at (0.25) should be [translateY(75%)]
Pass Web Animations: property <transform> from [translateY(70%)] to [translateY(90%)] at (0.75) should be [translateY(85%)]
Pass Web Animations: property <transform> from [translateY(70%)] to [translateY(90%)] at (1) should be [translateY(90%)]
Pass Web Animations: property <transform> from [translateY(70%)] to [translateY(90%)] at (2) should be [translateY(110%)]
Pass CSS Transitions: property <transform> from [translateZ(2em)] to [translateZ(3em)] at (-1) should be [translateZ(1em)]
Pass CSS Transitions: property <transform> from [translateZ(2em)] to [translateZ(3em)] at (0) should be [translateZ(2em)]
Pass CSS Transitions: property <transform> from [translateZ(2em)] to [translateZ(3em)] at (0.25) should be [translateZ(2.25em)]
Pass CSS Transitions: property <transform> from [translateZ(2em)] to [translateZ(3em)] at (0.75) should be [translateZ(2.75em)]
Pass CSS Transitions: property <transform> from [translateZ(2em)] to [translateZ(3em)] at (1) should be [translateZ(3em)]
Pass CSS Transitions: property <transform> from [translateZ(2em)] to [translateZ(3em)] at (2) should be [translateZ(4em)]
Pass CSS Transitions with transition: all: property <transform> from [translateZ(2em)] to [translateZ(3em)] at (-1) should be [translateZ(1em)]
Pass CSS Transitions with transition: all: property <transform> from [translateZ(2em)] to [translateZ(3em)] at (0) should be [translateZ(2em)]
Pass CSS Transitions with transition: all: property <transform> from [translateZ(2em)] to [translateZ(3em)] at (0.25) should be [translateZ(2.25em)]
Pass CSS Transitions with transition: all: property <transform> from [translateZ(2em)] to [translateZ(3em)] at (0.75) should be [translateZ(2.75em)]
Pass CSS Transitions with transition: all: property <transform> from [translateZ(2em)] to [translateZ(3em)] at (1) should be [translateZ(3em)]
Pass CSS Transitions with transition: all: property <transform> from [translateZ(2em)] to [translateZ(3em)] at (2) should be [translateZ(4em)]
Pass CSS Animations: property <transform> from [translateZ(2em)] to [translateZ(3em)] at (-1) should be [translateZ(1em)]
Pass CSS Animations: property <transform> from [translateZ(2em)] to [translateZ(3em)] at (0) should be [translateZ(2em)]
Pass CSS Animations: property <transform> from [translateZ(2em)] to [translateZ(3em)] at (0.25) should be [translateZ(2.25em)]
Pass CSS Animations: property <transform> from [translateZ(2em)] to [translateZ(3em)] at (0.75) should be [translateZ(2.75em)]
Pass CSS Animations: property <transform> from [translateZ(2em)] to [translateZ(3em)] at (1) should be [translateZ(3em)]
Pass CSS Animations: property <transform> from [translateZ(2em)] to [translateZ(3em)] at (2) should be [translateZ(4em)]
Pass Web Animations: property <transform> from [translateZ(2em)] to [translateZ(3em)] at (-1) should be [translateZ(1em)]
Pass Web Animations: property <transform> from [translateZ(2em)] to [translateZ(3em)] at (0) should be [translateZ(2em)]
Pass Web Animations: property <transform> from [translateZ(2em)] to [translateZ(3em)] at (0.25) should be [translateZ(2.25em)]
Pass Web Animations: property <transform> from [translateZ(2em)] to [translateZ(3em)] at (0.75) should be [translateZ(2.75em)]
Pass Web Animations: property <transform> from [translateZ(2em)] to [translateZ(3em)] at (1) should be [translateZ(3em)]
Pass Web Animations: property <transform> from [translateZ(2em)] to [translateZ(3em)] at (2) should be [translateZ(4em)]
Pass CSS Transitions: property <transform> from [translate3d(12px, 70%, 2em)] to [translate3d(13px, 90%, 3em)] at (-1) should be [translate3d(11px, 50%, 1em)]
Pass CSS Transitions: property <transform> from [translate3d(12px, 70%, 2em)] to [translate3d(13px, 90%, 3em)] at (0) should be [translate3d(12px, 70%, 2em)]
Pass CSS Transitions: property <transform> from [translate3d(12px, 70%, 2em)] to [translate3d(13px, 90%, 3em)] at (0.25) should be [translate3d(12.25px, 75%, 2.25em)]
Pass CSS Transitions: property <transform> from [translate3d(12px, 70%, 2em)] to [translate3d(13px, 90%, 3em)] at (0.75) should be [translate3d(12.75px, 85%, 2.75em)]
Pass CSS Transitions: property <transform> from [translate3d(12px, 70%, 2em)] to [translate3d(13px, 90%, 3em)] at (1) should be [translate3d(13px, 90%, 3em)]
Pass CSS Transitions: property <transform> from [translate3d(12px, 70%, 2em)] to [translate3d(13px, 90%, 3em)] at (2) should be [translate3d(14px, 110%, 4em)]
Pass CSS Transitions with transition: all: property <transform> from [translate3d(12px, 70%, 2em)] to [translate3d(13px, 90%, 3em)] at (-1) should be [translate3d(11px, 50%, 1em)]
Pass CSS Transitions with transition: all: property <transform> from [translate3d(12px, 70%, 2em)] to [translate3d(13px, 90%, 3em)] at (0) should be [translate3d(12px, 70%, 2em)]
Pass CSS Transitions with transition: all: property <transform> from [translate3d(12px, 70%, 2em)] to [translate3d(13px, 90%, 3em)] at (0.25) should be [translate3d(12.25px, 75%, 2.25em)]
Pass CSS Transitions with transition: all: property <transform> from [translate3d(12px, 70%, 2em)] to [translate3d(13px, 90%, 3em)] at (0.75) should be [translate3d(12.75px, 85%, 2.75em)]
Pass CSS Transitions with transition: all: property <transform> from [translate3d(12px, 70%, 2em)] to [translate3d(13px, 90%, 3em)] at (1) should be [translate3d(13px, 90%, 3em)]
Pass CSS Transitions with transition: all: property <transform> from [translate3d(12px, 70%, 2em)] to [translate3d(13px, 90%, 3em)] at (2) should be [translate3d(14px, 110%, 4em)]
Pass CSS Animations: property <transform> from [translate3d(12px, 70%, 2em)] to [translate3d(13px, 90%, 3em)] at (-1) should be [translate3d(11px, 50%, 1em)]
Pass CSS Animations: property <transform> from [translate3d(12px, 70%, 2em)] to [translate3d(13px, 90%, 3em)] at (0) should be [translate3d(12px, 70%, 2em)]
Pass CSS Animations: property <transform> from [translate3d(12px, 70%, 2em)] to [translate3d(13px, 90%, 3em)] at (0.25) should be [translate3d(12.25px, 75%, 2.25em)]
Pass CSS Animations: property <transform> from [translate3d(12px, 70%, 2em)] to [translate3d(13px, 90%, 3em)] at (0.75) should be [translate3d(12.75px, 85%, 2.75em)]
Pass CSS Animations: property <transform> from [translate3d(12px, 70%, 2em)] to [translate3d(13px, 90%, 3em)] at (1) should be [translate3d(13px, 90%, 3em)]
Pass CSS Animations: property <transform> from [translate3d(12px, 70%, 2em)] to [translate3d(13px, 90%, 3em)] at (2) should be [translate3d(14px, 110%, 4em)]
Pass Web Animations: property <transform> from [translate3d(12px, 70%, 2em)] to [translate3d(13px, 90%, 3em)] at (-1) should be [translate3d(11px, 50%, 1em)]
Pass Web Animations: property <transform> from [translate3d(12px, 70%, 2em)] to [translate3d(13px, 90%, 3em)] at (0) should be [translate3d(12px, 70%, 2em)]
Pass Web Animations: property <transform> from [translate3d(12px, 70%, 2em)] to [translate3d(13px, 90%, 3em)] at (0.25) should be [translate3d(12.25px, 75%, 2.25em)]
Pass Web Animations: property <transform> from [translate3d(12px, 70%, 2em)] to [translate3d(13px, 90%, 3em)] at (0.75) should be [translate3d(12.75px, 85%, 2.75em)]
Pass Web Animations: property <transform> from [translate3d(12px, 70%, 2em)] to [translate3d(13px, 90%, 3em)] at (1) should be [translate3d(13px, 90%, 3em)]
Pass Web Animations: property <transform> from [translate3d(12px, 70%, 2em)] to [translate3d(13px, 90%, 3em)] at (2) should be [translate3d(14px, 110%, 4em)]
Pass CSS Transitions: property <transform> from [translateX(12px) translateY(70%) translateZ(2em)] to [translateX(13px) translateY(90%) translateZ(3em)] at (-1) should be [translateX(11px) translateY(50%) translateZ(1em)]
Pass CSS Transitions: property <transform> from [translateX(12px) translateY(70%) translateZ(2em)] to [translateX(13px) translateY(90%) translateZ(3em)] at (0) should be [translateX(12px) translateY(70%) translateZ(2em)]
Pass CSS Transitions: property <transform> from [translateX(12px) translateY(70%) translateZ(2em)] to [translateX(13px) translateY(90%) translateZ(3em)] at (0.25) should be [translateX(12.25px) translateY(75%) translateZ(2.25em)]
Pass CSS Transitions: property <transform> from [translateX(12px) translateY(70%) translateZ(2em)] to [translateX(13px) translateY(90%) translateZ(3em)] at (0.75) should be [translateX(12.75px) translateY(85%) translateZ(2.75em)]
Pass CSS Transitions: property <transform> from [translateX(12px) translateY(70%) translateZ(2em)] to [translateX(13px) translateY(90%) translateZ(3em)] at (1) should be [translateX(13px) translateY(90%) translateZ(3em)]
Pass CSS Transitions: property <transform> from [translateX(12px) translateY(70%) translateZ(2em)] to [translateX(13px) translateY(90%) translateZ(3em)] at (2) should be [translateX(14px) translateY(110%) translateZ(4em)]
Pass CSS Transitions with transition: all: property <transform> from [translateX(12px) translateY(70%) translateZ(2em)] to [translateX(13px) translateY(90%) translateZ(3em)] at (-1) should be [translateX(11px) translateY(50%) translateZ(1em)]
Pass CSS Transitions with transition: all: property <transform> from [translateX(12px) translateY(70%) translateZ(2em)] to [translateX(13px) translateY(90%) translateZ(3em)] at (0) should be [translateX(12px) translateY(70%) translateZ(2em)]
Pass CSS Transitions with transition: all: property <transform> from [translateX(12px) translateY(70%) translateZ(2em)] to [translateX(13px) translateY(90%) translateZ(3em)] at (0.25) should be [translateX(12.25px) translateY(75%) translateZ(2.25em)]
Pass CSS Transitions with transition: all: property <transform> from [translateX(12px) translateY(70%) translateZ(2em)] to [translateX(13px) translateY(90%) translateZ(3em)] at (0.75) should be [translateX(12.75px) translateY(85%) translateZ(2.75em)]
Pass CSS Transitions with transition: all: property <transform> from [translateX(12px) translateY(70%) translateZ(2em)] to [translateX(13px) translateY(90%) translateZ(3em)] at (1) should be [translateX(13px) translateY(90%) translateZ(3em)]
Pass CSS Transitions with transition: all: property <transform> from [translateX(12px) translateY(70%) translateZ(2em)] to [translateX(13px) translateY(90%) translateZ(3em)] at (2) should be [translateX(14px) translateY(110%) translateZ(4em)]
Pass CSS Animations: property <transform> from [translateX(12px) translateY(70%) translateZ(2em)] to [translateX(13px) translateY(90%) translateZ(3em)] at (-1) should be [translateX(11px) translateY(50%) translateZ(1em)]
Pass CSS Animations: property <transform> from [translateX(12px) translateY(70%) translateZ(2em)] to [translateX(13px) translateY(90%) translateZ(3em)] at (0) should be [translateX(12px) translateY(70%) translateZ(2em)]
Pass CSS Animations: property <transform> from [translateX(12px) translateY(70%) translateZ(2em)] to [translateX(13px) translateY(90%) translateZ(3em)] at (0.25) should be [translateX(12.25px) translateY(75%) translateZ(2.25em)]
Pass CSS Animations: property <transform> from [translateX(12px) translateY(70%) translateZ(2em)] to [translateX(13px) translateY(90%) translateZ(3em)] at (0.75) should be [translateX(12.75px) translateY(85%) translateZ(2.75em)]
Pass CSS Animations: property <transform> from [translateX(12px) translateY(70%) translateZ(2em)] to [translateX(13px) translateY(90%) translateZ(3em)] at (1) should be [translateX(13px) translateY(90%) translateZ(3em)]
Pass CSS Animations: property <transform> from [translateX(12px) translateY(70%) translateZ(2em)] to [translateX(13px) translateY(90%) translateZ(3em)] at (2) should be [translateX(14px) translateY(110%) translateZ(4em)]
Pass Web Animations: property <transform> from [translateX(12px) translateY(70%) translateZ(2em)] to [translateX(13px) translateY(90%) translateZ(3em)] at (-1) should be [translateX(11px) translateY(50%) translateZ(1em)]
Pass Web Animations: property <transform> from [translateX(12px) translateY(70%) translateZ(2em)] to [translateX(13px) translateY(90%) translateZ(3em)] at (0) should be [translateX(12px) translateY(70%) translateZ(2em)]
Pass Web Animations: property <transform> from [translateX(12px) translateY(70%) translateZ(2em)] to [translateX(13px) translateY(90%) translateZ(3em)] at (0.25) should be [translateX(12.25px) translateY(75%) translateZ(2.25em)]
Pass Web Animations: property <transform> from [translateX(12px) translateY(70%) translateZ(2em)] to [translateX(13px) translateY(90%) translateZ(3em)] at (0.75) should be [translateX(12.75px) translateY(85%) translateZ(2.75em)]
Pass Web Animations: property <transform> from [translateX(12px) translateY(70%) translateZ(2em)] to [translateX(13px) translateY(90%) translateZ(3em)] at (1) should be [translateX(13px) translateY(90%) translateZ(3em)]
Pass Web Animations: property <transform> from [translateX(12px) translateY(70%) translateZ(2em)] to [translateX(13px) translateY(90%) translateZ(3em)] at (2) should be [translateX(14px) translateY(110%) translateZ(4em)]
Pass CSS Transitions: property <transform> from [skewX(10rad) translateY(70%)] to [skewX(20rad) translateY(90%)] at (-1) should be [skewX(0rad) translateY(50%)]
Pass CSS Transitions: property <transform> from [skewX(10rad) translateY(70%)] to [skewX(20rad) translateY(90%)] at (0) should be [skewX(10rad) translateY(70%)]
Pass CSS Transitions: property <transform> from [skewX(10rad) translateY(70%)] to [skewX(20rad) translateY(90%)] at (0.25) should be [skewX(12.5rad) translateY(75%)]
Pass CSS Transitions: property <transform> from [skewX(10rad) translateY(70%)] to [skewX(20rad) translateY(90%)] at (0.75) should be [skewX(17.5rad) translateY(85%)]
Pass CSS Transitions: property <transform> from [skewX(10rad) translateY(70%)] to [skewX(20rad) translateY(90%)] at (1) should be [skewX(20rad) translateY(90%)]
Pass CSS Transitions: property <transform> from [skewX(10rad) translateY(70%)] to [skewX(20rad) translateY(90%)] at (2) should be [skewX(30rad) translateY(110%)]
Pass CSS Transitions with transition: all: property <transform> from [skewX(10rad) translateY(70%)] to [skewX(20rad) translateY(90%)] at (-1) should be [skewX(0rad) translateY(50%)]
Pass CSS Transitions with transition: all: property <transform> from [skewX(10rad) translateY(70%)] to [skewX(20rad) translateY(90%)] at (0) should be [skewX(10rad) translateY(70%)]
Pass CSS Transitions with transition: all: property <transform> from [skewX(10rad) translateY(70%)] to [skewX(20rad) translateY(90%)] at (0.25) should be [skewX(12.5rad) translateY(75%)]
Pass CSS Transitions with transition: all: property <transform> from [skewX(10rad) translateY(70%)] to [skewX(20rad) translateY(90%)] at (0.75) should be [skewX(17.5rad) translateY(85%)]
Pass CSS Transitions with transition: all: property <transform> from [skewX(10rad) translateY(70%)] to [skewX(20rad) translateY(90%)] at (1) should be [skewX(20rad) translateY(90%)]
Pass CSS Transitions with transition: all: property <transform> from [skewX(10rad) translateY(70%)] to [skewX(20rad) translateY(90%)] at (2) should be [skewX(30rad) translateY(110%)]
Pass CSS Animations: property <transform> from [skewX(10rad) translateY(70%)] to [skewX(20rad) translateY(90%)] at (-1) should be [skewX(0rad) translateY(50%)]
Pass CSS Animations: property <transform> from [skewX(10rad) translateY(70%)] to [skewX(20rad) translateY(90%)] at (0) should be [skewX(10rad) translateY(70%)]
Pass CSS Animations: property <transform> from [skewX(10rad) translateY(70%)] to [skewX(20rad) translateY(90%)] at (0.25) should be [skewX(12.5rad) translateY(75%)]
Pass CSS Animations: property <transform> from [skewX(10rad) translateY(70%)] to [skewX(20rad) translateY(90%)] at (0.75) should be [skewX(17.5rad) translateY(85%)]
Pass CSS Animations: property <transform> from [skewX(10rad) translateY(70%)] to [skewX(20rad) translateY(90%)] at (1) should be [skewX(20rad) translateY(90%)]
Pass CSS Animations: property <transform> from [skewX(10rad) translateY(70%)] to [skewX(20rad) translateY(90%)] at (2) should be [skewX(30rad) translateY(110%)]
Pass Web Animations: property <transform> from [skewX(10rad) translateY(70%)] to [skewX(20rad) translateY(90%)] at (-1) should be [skewX(0rad) translateY(50%)]
Pass Web Animations: property <transform> from [skewX(10rad) translateY(70%)] to [skewX(20rad) translateY(90%)] at (0) should be [skewX(10rad) translateY(70%)]
Pass Web Animations: property <transform> from [skewX(10rad) translateY(70%)] to [skewX(20rad) translateY(90%)] at (0.25) should be [skewX(12.5rad) translateY(75%)]
Pass Web Animations: property <transform> from [skewX(10rad) translateY(70%)] to [skewX(20rad) translateY(90%)] at (0.75) should be [skewX(17.5rad) translateY(85%)]
Pass Web Animations: property <transform> from [skewX(10rad) translateY(70%)] to [skewX(20rad) translateY(90%)] at (1) should be [skewX(20rad) translateY(90%)]
Pass Web Animations: property <transform> from [skewX(10rad) translateY(70%)] to [skewX(20rad) translateY(90%)] at (2) should be [skewX(30rad) translateY(110%)]
Pass CSS Transitions: property <transform> from [skewX(1rad)] to [translate3d(8px, -4px, 12px) skewX(2rad)] at (-1) should be [matrix3d(1, 0, 0, 0, 5.2998553125713235, 1, 0, 0, 0, 0, 1, 0, -8, 4, -12, 1)]
Pass CSS Transitions: property <transform> from [skewX(1rad)] to [translate3d(8px, -4px, 12px) skewX(2rad)] at (0) should be [matrix(1, 0, 1.5574077246549023, 1, 0, 0)]
Pass CSS Transitions: property <transform> from [skewX(1rad)] to [translate3d(8px, -4px, 12px) skewX(2rad)] at (0.25) should be [matrix3d(1, 0, 0, 0, 0.621795827675797, 1, 0, 0, 0, 0, 1, 0, 2, -1, 3, 1)]
Pass CSS Transitions: property <transform> from [skewX(1rad)] to [translate3d(8px, -4px, 12px) skewX(2rad)] at (0.75) should be [matrix3d(1, 0, 0, 0, -1.2494279662824135, 1, 0, 0, 0, 0, 1, 0, 6, -3, 9, 1)]
Pass CSS Transitions: property <transform> from [skewX(1rad)] to [translate3d(8px, -4px, 12px) skewX(2rad)] at (1) should be [matrix3d(1, 0, 0, 0, -2.185039863261519, 1, 0, 0, 0, 0, 1, 0, 8, -4, 12, 1)]
Pass CSS Transitions: property <transform> from [skewX(1rad)] to [translate3d(8px, -4px, 12px) skewX(2rad)] at (2) should be [matrix3d(1, 0, 0, 0, -5.9274874511779405, 1, 0, 0, 0, 0, 1, 0, 16, -8, 24, 1)]
Pass CSS Transitions with transition: all: property <transform> from [skewX(1rad)] to [translate3d(8px, -4px, 12px) skewX(2rad)] at (-1) should be [matrix3d(1, 0, 0, 0, 5.2998553125713235, 1, 0, 0, 0, 0, 1, 0, -8, 4, -12, 1)]
Pass CSS Transitions with transition: all: property <transform> from [skewX(1rad)] to [translate3d(8px, -4px, 12px) skewX(2rad)] at (0) should be [matrix(1, 0, 1.5574077246549023, 1, 0, 0)]
Pass CSS Transitions with transition: all: property <transform> from [skewX(1rad)] to [translate3d(8px, -4px, 12px) skewX(2rad)] at (0.25) should be [matrix3d(1, 0, 0, 0, 0.621795827675797, 1, 0, 0, 0, 0, 1, 0, 2, -1, 3, 1)]
Pass CSS Transitions with transition: all: property <transform> from [skewX(1rad)] to [translate3d(8px, -4px, 12px) skewX(2rad)] at (0.75) should be [matrix3d(1, 0, 0, 0, -1.2494279662824135, 1, 0, 0, 0, 0, 1, 0, 6, -3, 9, 1)]
Pass CSS Transitions with transition: all: property <transform> from [skewX(1rad)] to [translate3d(8px, -4px, 12px) skewX(2rad)] at (1) should be [matrix3d(1, 0, 0, 0, -2.185039863261519, 1, 0, 0, 0, 0, 1, 0, 8, -4, 12, 1)]
Pass CSS Transitions with transition: all: property <transform> from [skewX(1rad)] to [translate3d(8px, -4px, 12px) skewX(2rad)] at (2) should be [matrix3d(1, 0, 0, 0, -5.9274874511779405, 1, 0, 0, 0, 0, 1, 0, 16, -8, 24, 1)]
Pass CSS Animations: property <transform> from [skewX(1rad)] to [translate3d(8px, -4px, 12px) skewX(2rad)] at (-1) should be [matrix3d(1, 0, 0, 0, 5.2998553125713235, 1, 0, 0, 0, 0, 1, 0, -8, 4, -12, 1)]
Pass CSS Animations: property <transform> from [skewX(1rad)] to [translate3d(8px, -4px, 12px) skewX(2rad)] at (0) should be [matrix(1, 0, 1.5574077246549023, 1, 0, 0)]
Pass CSS Animations: property <transform> from [skewX(1rad)] to [translate3d(8px, -4px, 12px) skewX(2rad)] at (0.25) should be [matrix3d(1, 0, 0, 0, 0.621795827675797, 1, 0, 0, 0, 0, 1, 0, 2, -1, 3, 1)]
Pass CSS Animations: property <transform> from [skewX(1rad)] to [translate3d(8px, -4px, 12px) skewX(2rad)] at (0.75) should be [matrix3d(1, 0, 0, 0, -1.2494279662824135, 1, 0, 0, 0, 0, 1, 0, 6, -3, 9, 1)]
Pass CSS Animations: property <transform> from [skewX(1rad)] to [translate3d(8px, -4px, 12px) skewX(2rad)] at (1) should be [matrix3d(1, 0, 0, 0, -2.185039863261519, 1, 0, 0, 0, 0, 1, 0, 8, -4, 12, 1)]
Pass CSS Animations: property <transform> from [skewX(1rad)] to [translate3d(8px, -4px, 12px) skewX(2rad)] at (2) should be [matrix3d(1, 0, 0, 0, -5.9274874511779405, 1, 0, 0, 0, 0, 1, 0, 16, -8, 24, 1)]
Pass Web Animations: property <transform> from [skewX(1rad)] to [translate3d(8px, -4px, 12px) skewX(2rad)] at (-1) should be [matrix3d(1, 0, 0, 0, 5.2998553125713235, 1, 0, 0, 0, 0, 1, 0, -8, 4, -12, 1)]
Pass Web Animations: property <transform> from [skewX(1rad)] to [translate3d(8px, -4px, 12px) skewX(2rad)] at (0) should be [matrix(1, 0, 1.5574077246549023, 1, 0, 0)]
Pass Web Animations: property <transform> from [skewX(1rad)] to [translate3d(8px, -4px, 12px) skewX(2rad)] at (0.25) should be [matrix3d(1, 0, 0, 0, 0.621795827675797, 1, 0, 0, 0, 0, 1, 0, 2, -1, 3, 1)]
Pass Web Animations: property <transform> from [skewX(1rad)] to [translate3d(8px, -4px, 12px) skewX(2rad)] at (0.75) should be [matrix3d(1, 0, 0, 0, -1.2494279662824135, 1, 0, 0, 0, 0, 1, 0, 6, -3, 9, 1)]
Pass Web Animations: property <transform> from [skewX(1rad)] to [translate3d(8px, -4px, 12px) skewX(2rad)] at (1) should be [matrix3d(1, 0, 0, 0, -2.185039863261519, 1, 0, 0, 0, 0, 1, 0, 8, -4, 12, 1)]
Pass Web Animations: property <transform> from [skewX(1rad)] to [translate3d(8px, -4px, 12px) skewX(2rad)] at (2) should be [matrix3d(1, 0, 0, 0, -5.9274874511779405, 1, 0, 0, 0, 0, 1, 0, 16, -8, 24, 1)]
Pass CSS Transitions: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [scaleY(2) skewX(2rad) perspective(500px)] at (-1) should be [matrix3d(1, 0, 0, 0, 0, 0, 0, 0, -0.03876288659793814, 0.01938144329896907, 0.94, -0.0029653608247422686, 16, -8, 24, 0.986144329896907)]
Pass CSS Transitions: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [scaleY(2) skewX(2rad) perspective(500px)] at (0) should be [matrix3d(1, 0, 0, 0, 1.5574077246549023, 1, 0, 0, -0.02, 0.01, 0.97, -0.0025, 8, -4, 12, 1)]
Pass CSS Transitions: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [scaleY(2) skewX(2rad) perspective(500px)] at (0.25) should be [matrix3d(1, 0, 0, 0, 1.1186572632293585, 1.25, 0, 0, -0.0151159793814433, 0.00755798969072165, 0.9775, -0.002378247422680413, 6, -3, 9, 1.0012989690721648)]
Pass CSS Transitions: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [scaleY(2) skewX(2rad) perspective(500px)] at (0.75) should be [matrix3d(1, 0, 0, 0, -0.7525665307288518, 1.75, 0, 0, -0.005115979381443298, 0.002557989690721649, 0.9924999999999999, -0.002128247422680412, 2, -1, 3, 1.001298969072165)]
Pass CSS Transitions: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [scaleY(2) skewX(2rad) perspective(500px)] at (1) should be [matrix3d(1, 0, 0, 0, -2.185039863261519, 2, 0, 0, 0, 0, 1, -0.002, 0, 0, 0, 1)]
Pass CSS Transitions: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [scaleY(2) skewX(2rad) perspective(500px)] at (2) should be [matrix3d(1, 0, 0, 0, -11.227342763749263, 3, 0, 0, 0.021237113402061854, -0.010618556701030927, 1.03, -0.0014653608247422677, -8, 4, -12, 0.9861443298969074)]
Pass CSS Transitions with transition: all: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [scaleY(2) skewX(2rad) perspective(500px)] at (-1) should be [matrix3d(1, 0, 0, 0, 0, 0, 0, 0, -0.03876288659793814, 0.01938144329896907, 0.94, -0.0029653608247422686, 16, -8, 24, 0.986144329896907)]
Pass CSS Transitions with transition: all: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [scaleY(2) skewX(2rad) perspective(500px)] at (0) should be [matrix3d(1, 0, 0, 0, 1.5574077246549023, 1, 0, 0, -0.02, 0.01, 0.97, -0.0025, 8, -4, 12, 1)]
Pass CSS Transitions with transition: all: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [scaleY(2) skewX(2rad) perspective(500px)] at (0.25) should be [matrix3d(1, 0, 0, 0, 1.1186572632293585, 1.25, 0, 0, -0.0151159793814433, 0.00755798969072165, 0.9775, -0.002378247422680413, 6, -3, 9, 1.0012989690721648)]
Pass CSS Transitions with transition: all: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [scaleY(2) skewX(2rad) perspective(500px)] at (0.75) should be [matrix3d(1, 0, 0, 0, -0.7525665307288518, 1.75, 0, 0, -0.005115979381443298, 0.002557989690721649, 0.9924999999999999, -0.002128247422680412, 2, -1, 3, 1.001298969072165)]
Pass CSS Transitions with transition: all: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [scaleY(2) skewX(2rad) perspective(500px)] at (1) should be [matrix3d(1, 0, 0, 0, -2.185039863261519, 2, 0, 0, 0, 0, 1, -0.002, 0, 0, 0, 1)]
Pass CSS Transitions with transition: all: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [scaleY(2) skewX(2rad) perspective(500px)] at (2) should be [matrix3d(1, 0, 0, 0, -11.227342763749263, 3, 0, 0, 0.021237113402061854, -0.010618556701030927, 1.03, -0.0014653608247422677, -8, 4, -12, 0.9861443298969074)]
Pass CSS Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [scaleY(2) skewX(2rad) perspective(500px)] at (-1) should be [matrix3d(1, 0, 0, 0, 0, 0, 0, 0, -0.03876288659793814, 0.01938144329896907, 0.94, -0.0029653608247422686, 16, -8, 24, 0.986144329896907)]
Pass CSS Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [scaleY(2) skewX(2rad) perspective(500px)] at (0) should be [matrix3d(1, 0, 0, 0, 1.5574077246549023, 1, 0, 0, -0.02, 0.01, 0.97, -0.0025, 8, -4, 12, 1)]
Pass CSS Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [scaleY(2) skewX(2rad) perspective(500px)] at (0.25) should be [matrix3d(1, 0, 0, 0, 1.1186572632293585, 1.25, 0, 0, -0.0151159793814433, 0.00755798969072165, 0.9775, -0.002378247422680413, 6, -3, 9, 1.0012989690721648)]
Pass CSS Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [scaleY(2) skewX(2rad) perspective(500px)] at (0.75) should be [matrix3d(1, 0, 0, 0, -0.7525665307288518, 1.75, 0, 0, -0.005115979381443298, 0.002557989690721649, 0.9924999999999999, -0.002128247422680412, 2, -1, 3, 1.001298969072165)]
Pass CSS Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [scaleY(2) skewX(2rad) perspective(500px)] at (1) should be [matrix3d(1, 0, 0, 0, -2.185039863261519, 2, 0, 0, 0, 0, 1, -0.002, 0, 0, 0, 1)]
Pass CSS Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [scaleY(2) skewX(2rad) perspective(500px)] at (2) should be [matrix3d(1, 0, 0, 0, -11.227342763749263, 3, 0, 0, 0.021237113402061854, -0.010618556701030927, 1.03, -0.0014653608247422677, -8, 4, -12, 0.9861443298969074)]
Pass Web Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [scaleY(2) skewX(2rad) perspective(500px)] at (-1) should be [matrix3d(1, 0, 0, 0, 0, 0, 0, 0, -0.03876288659793814, 0.01938144329896907, 0.94, -0.0029653608247422686, 16, -8, 24, 0.986144329896907)]
Pass Web Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [scaleY(2) skewX(2rad) perspective(500px)] at (0) should be [matrix3d(1, 0, 0, 0, 1.5574077246549023, 1, 0, 0, -0.02, 0.01, 0.97, -0.0025, 8, -4, 12, 1)]
Pass Web Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [scaleY(2) skewX(2rad) perspective(500px)] at (0.25) should be [matrix3d(1, 0, 0, 0, 1.1186572632293585, 1.25, 0, 0, -0.0151159793814433, 0.00755798969072165, 0.9775, -0.002378247422680413, 6, -3, 9, 1.0012989690721648)]
Pass Web Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [scaleY(2) skewX(2rad) perspective(500px)] at (0.75) should be [matrix3d(1, 0, 0, 0, -0.7525665307288518, 1.75, 0, 0, -0.005115979381443298, 0.002557989690721649, 0.9924999999999999, -0.002128247422680412, 2, -1, 3, 1.001298969072165)]
Pass Web Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [scaleY(2) skewX(2rad) perspective(500px)] at (1) should be [matrix3d(1, 0, 0, 0, -2.185039863261519, 2, 0, 0, 0, 0, 1, -0.002, 0, 0, 0, 1)]
Pass Web Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [scaleY(2) skewX(2rad) perspective(500px)] at (2) should be [matrix3d(1, 0, 0, 0, -11.227342763749263, 3, 0, 0, 0.021237113402061854, -0.010618556701030927, 1.03, -0.0014653608247422677, -8, 4, -12, 0.9861443298969074)]
Pass CSS Transitions: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) scaleY(2) perspective(500px)] at (-1) should be [translate3d(12px, 4px, 16px) matrix3d(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -0.003, 0, 0, 0, 1)]
Pass CSS Transitions: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) scaleY(2) perspective(500px)] at (0) should be [translate3d(8px, -4px, 12px) matrix3d(1, 0, 0, 0, 1.55741, 1, 0, 0, 0, 0, 1, -0.0025, 0, 0, 0, 1)]
Pass CSS Transitions: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) scaleY(2) perspective(500px)] at (0.25) should be [translate3d(7px, -6px, 11px) matrix3d(1, 0, 0, 0, 1.46007, 1.25, 0, 0, 0, 0, 1, -0.002375, 0, 0, 0, 1)]
Pass CSS Transitions: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) scaleY(2) perspective(500px)] at (0.75) should be [translate3d(5px, -10px, 9px) matrix3d(1, 0, 0, 0, 0.681366, 1.75, 0, 0, 0, 0, 1, -0.002125, 0, 0, 0, 1)]
Pass CSS Transitions: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) scaleY(2) perspective(500px)] at (1) should be [translate3d(4px, -12px, 8px) matrix3d(1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1, -0.002, 0, 0, 0, 1)]
Pass CSS Transitions: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) scaleY(2) perspective(500px)] at (2) should be [translate3d(0px, -20px, 4px) matrix3d(1, 0, 0, 0, -4.67222, 3, 0, 0, 0, 0, 1, -0.0015, 0, 0, 0, 1)]
Pass CSS Transitions with transition: all: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) scaleY(2) perspective(500px)] at (-1) should be [translate3d(12px, 4px, 16px) matrix3d(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -0.003, 0, 0, 0, 1)]
Pass CSS Transitions with transition: all: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) scaleY(2) perspective(500px)] at (0) should be [translate3d(8px, -4px, 12px) matrix3d(1, 0, 0, 0, 1.55741, 1, 0, 0, 0, 0, 1, -0.0025, 0, 0, 0, 1)]
Pass CSS Transitions with transition: all: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) scaleY(2) perspective(500px)] at (0.25) should be [translate3d(7px, -6px, 11px) matrix3d(1, 0, 0, 0, 1.46007, 1.25, 0, 0, 0, 0, 1, -0.002375, 0, 0, 0, 1)]
Pass CSS Transitions with transition: all: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) scaleY(2) perspective(500px)] at (0.75) should be [translate3d(5px, -10px, 9px) matrix3d(1, 0, 0, 0, 0.681366, 1.75, 0, 0, 0, 0, 1, -0.002125, 0, 0, 0, 1)]
Pass CSS Transitions with transition: all: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) scaleY(2) perspective(500px)] at (1) should be [translate3d(4px, -12px, 8px) matrix3d(1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1, -0.002, 0, 0, 0, 1)]
Pass CSS Transitions with transition: all: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) scaleY(2) perspective(500px)] at (2) should be [translate3d(0px, -20px, 4px) matrix3d(1, 0, 0, 0, -4.67222, 3, 0, 0, 0, 0, 1, -0.0015, 0, 0, 0, 1)]
Pass CSS Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) scaleY(2) perspective(500px)] at (-1) should be [translate3d(12px, 4px, 16px) matrix3d(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -0.003, 0, 0, 0, 1)]
Pass CSS Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) scaleY(2) perspective(500px)] at (0) should be [translate3d(8px, -4px, 12px) matrix3d(1, 0, 0, 0, 1.55741, 1, 0, 0, 0, 0, 1, -0.0025, 0, 0, 0, 1)]
Pass CSS Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) scaleY(2) perspective(500px)] at (0.25) should be [translate3d(7px, -6px, 11px) matrix3d(1, 0, 0, 0, 1.46007, 1.25, 0, 0, 0, 0, 1, -0.002375, 0, 0, 0, 1)]
Pass CSS Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) scaleY(2) perspective(500px)] at (0.75) should be [translate3d(5px, -10px, 9px) matrix3d(1, 0, 0, 0, 0.681366, 1.75, 0, 0, 0, 0, 1, -0.002125, 0, 0, 0, 1)]
Pass CSS Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) scaleY(2) perspective(500px)] at (1) should be [translate3d(4px, -12px, 8px) matrix3d(1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1, -0.002, 0, 0, 0, 1)]
Pass CSS Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) scaleY(2) perspective(500px)] at (2) should be [translate3d(0px, -20px, 4px) matrix3d(1, 0, 0, 0, -4.67222, 3, 0, 0, 0, 0, 1, -0.0015, 0, 0, 0, 1)]
Pass Web Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) scaleY(2) perspective(500px)] at (-1) should be [translate3d(12px, 4px, 16px) matrix3d(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -0.003, 0, 0, 0, 1)]
Pass Web Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) scaleY(2) perspective(500px)] at (0) should be [translate3d(8px, -4px, 12px) matrix3d(1, 0, 0, 0, 1.55741, 1, 0, 0, 0, 0, 1, -0.0025, 0, 0, 0, 1)]
Pass Web Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) scaleY(2) perspective(500px)] at (0.25) should be [translate3d(7px, -6px, 11px) matrix3d(1, 0, 0, 0, 1.46007, 1.25, 0, 0, 0, 0, 1, -0.002375, 0, 0, 0, 1)]
Pass Web Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) scaleY(2) perspective(500px)] at (0.75) should be [translate3d(5px, -10px, 9px) matrix3d(1, 0, 0, 0, 0.681366, 1.75, 0, 0, 0, 0, 1, -0.002125, 0, 0, 0, 1)]
Pass Web Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) scaleY(2) perspective(500px)] at (1) should be [translate3d(4px, -12px, 8px) matrix3d(1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1, -0.002, 0, 0, 0, 1)]
Pass Web Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) scaleY(2) perspective(500px)] at (2) should be [translate3d(0px, -20px, 4px) matrix3d(1, 0, 0, 0, -4.67222, 3, 0, 0, 0, 0, 1, -0.0015, 0, 0, 0, 1)]
Pass CSS Transitions: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) skewX(2rad) scaleY(2)] at (-1) should be [translate3d(12px, 4px, 16px) skewX(0rad) matrix3d(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -0.005, 0, 0, 0, 1)]
Pass CSS Transitions: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) skewX(2rad) scaleY(2)] at (0) should be [translate3d(8px, -4px, 12px) skewX(1rad) matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.0025, 0, 0, 0, 1)]
Pass CSS Transitions: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) skewX(2rad) scaleY(2)] at (0.25) should be [translate3d(7px, -6px, 11px) skewX(1.25rad) matrix3d(1, 0, 0, 0, 0, 1.25, 0, 0, 0, 0, 1, -0.001875, 0, 0, 0, 1)]
Pass CSS Transitions: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) skewX(2rad) scaleY(2)] at (0.75) should be [translate3d(5px, -10px, 9px) skewX(1.75rad) matrix3d(1, 0, 0, 0, 0, 1.75, 0, 0, 0, 0, 1, -0.000625, 0, 0, 0, 1)]
Pass CSS Transitions: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) skewX(2rad) scaleY(2)] at (1) should be [translate3d(4px, -12px, 8px) skewX(2rad) matrix(1, 0, 0, 2, 0, 0)]
Pass CSS Transitions: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) skewX(2rad) scaleY(2)] at (2) should be [translate3d(0px, -20px, 4px) skewX(3rad) matrix3d(1, 0, 0, 0, 0, 3, 0, 0, 0, 0, 1, 0.0025, 0, 0, 0, 1)]
Pass CSS Transitions with transition: all: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) skewX(2rad) scaleY(2)] at (-1) should be [translate3d(12px, 4px, 16px) skewX(0rad) matrix3d(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -0.005, 0, 0, 0, 1)]
Pass CSS Transitions with transition: all: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) skewX(2rad) scaleY(2)] at (0) should be [translate3d(8px, -4px, 12px) skewX(1rad) matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.0025, 0, 0, 0, 1)]
Pass CSS Transitions with transition: all: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) skewX(2rad) scaleY(2)] at (0.25) should be [translate3d(7px, -6px, 11px) skewX(1.25rad) matrix3d(1, 0, 0, 0, 0, 1.25, 0, 0, 0, 0, 1, -0.001875, 0, 0, 0, 1)]
Pass CSS Transitions with transition: all: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) skewX(2rad) scaleY(2)] at (0.75) should be [translate3d(5px, -10px, 9px) skewX(1.75rad) matrix3d(1, 0, 0, 0, 0, 1.75, 0, 0, 0, 0, 1, -0.000625, 0, 0, 0, 1)]
Pass CSS Transitions with transition: all: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) skewX(2rad) scaleY(2)] at (1) should be [translate3d(4px, -12px, 8px) skewX(2rad) matrix(1, 0, 0, 2, 0, 0)]
Pass CSS Transitions with transition: all: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) skewX(2rad) scaleY(2)] at (2) should be [translate3d(0px, -20px, 4px) skewX(3rad) matrix3d(1, 0, 0, 0, 0, 3, 0, 0, 0, 0, 1, 0.0025, 0, 0, 0, 1)]
Pass CSS Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) skewX(2rad) scaleY(2)] at (-1) should be [translate3d(12px, 4px, 16px) skewX(0rad) matrix3d(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -0.005, 0, 0, 0, 1)]
Pass CSS Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) skewX(2rad) scaleY(2)] at (0) should be [translate3d(8px, -4px, 12px) skewX(1rad) matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.0025, 0, 0, 0, 1)]
Pass CSS Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) skewX(2rad) scaleY(2)] at (0.25) should be [translate3d(7px, -6px, 11px) skewX(1.25rad) matrix3d(1, 0, 0, 0, 0, 1.25, 0, 0, 0, 0, 1, -0.001875, 0, 0, 0, 1)]
Pass CSS Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) skewX(2rad) scaleY(2)] at (0.75) should be [translate3d(5px, -10px, 9px) skewX(1.75rad) matrix3d(1, 0, 0, 0, 0, 1.75, 0, 0, 0, 0, 1, -0.000625, 0, 0, 0, 1)]
Pass CSS Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) skewX(2rad) scaleY(2)] at (1) should be [translate3d(4px, -12px, 8px) skewX(2rad) matrix(1, 0, 0, 2, 0, 0)]
Pass CSS Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) skewX(2rad) scaleY(2)] at (2) should be [translate3d(0px, -20px, 4px) skewX(3rad) matrix3d(1, 0, 0, 0, 0, 3, 0, 0, 0, 0, 1, 0.0025, 0, 0, 0, 1)]
Pass Web Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) skewX(2rad) scaleY(2)] at (-1) should be [translate3d(12px, 4px, 16px) skewX(0rad) matrix3d(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -0.005, 0, 0, 0, 1)]
Pass Web Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) skewX(2rad) scaleY(2)] at (0) should be [translate3d(8px, -4px, 12px) skewX(1rad) matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.0025, 0, 0, 0, 1)]
Pass Web Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) skewX(2rad) scaleY(2)] at (0.25) should be [translate3d(7px, -6px, 11px) skewX(1.25rad) matrix3d(1, 0, 0, 0, 0, 1.25, 0, 0, 0, 0, 1, -0.001875, 0, 0, 0, 1)]
Pass Web Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) skewX(2rad) scaleY(2)] at (0.75) should be [translate3d(5px, -10px, 9px) skewX(1.75rad) matrix3d(1, 0, 0, 0, 0, 1.75, 0, 0, 0, 0, 1, -0.000625, 0, 0, 0, 1)]
Pass Web Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) skewX(2rad) scaleY(2)] at (1) should be [translate3d(4px, -12px, 8px) skewX(2rad) matrix(1, 0, 0, 2, 0, 0)]
Pass Web Animations: property <transform> from [translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)] to [translate3d(4px, -12px, 8px) skewX(2rad) scaleY(2)] at (2) should be [translate3d(0px, -20px, 4px) skewX(3rad) matrix3d(1, 0, 0, 0, 0, 3, 0, 0, 0, 0, 1, 0.0025, 0, 0, 0, 1)]
Pass CSS Transitions: property <transform> from [translate3D(100px, 200px, 300px)] to [none] at (-1) should be [matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 200, 400, 600, 1)]
Pass CSS Transitions: property <transform> from [translate3D(100px, 200px, 300px)] to [none] at (0) should be [matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 100, 200, 300, 1)]
Pass CSS Transitions: property <transform> from [translate3D(100px, 200px, 300px)] to [none] at (0.25) should be [matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 75, 150, 225, 1)]
Pass CSS Transitions: property <transform> from [translate3D(100px, 200px, 300px)] to [none] at (0.75) should be [matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 25, 50, 75, 1)]
Pass CSS Transitions: property <transform> from [translate3D(100px, 200px, 300px)] to [none] at (1) should be [matrix(1, 0, 0, 1, 0, 0) ]
Pass CSS Transitions: property <transform> from [translate3D(100px, 200px, 300px)] to [none] at (2) should be [matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -100, -200, -300, 1)]
Pass CSS Transitions with transition: all: property <transform> from [translate3D(100px, 200px, 300px)] to [none] at (-1) should be [matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 200, 400, 600, 1)]
Pass CSS Transitions with transition: all: property <transform> from [translate3D(100px, 200px, 300px)] to [none] at (0) should be [matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 100, 200, 300, 1)]
Pass CSS Transitions with transition: all: property <transform> from [translate3D(100px, 200px, 300px)] to [none] at (0.25) should be [matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 75, 150, 225, 1)]
Pass CSS Transitions with transition: all: property <transform> from [translate3D(100px, 200px, 300px)] to [none] at (0.75) should be [matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 25, 50, 75, 1)]
Pass CSS Transitions with transition: all: property <transform> from [translate3D(100px, 200px, 300px)] to [none] at (1) should be [matrix(1, 0, 0, 1, 0, 0) ]
Pass CSS Transitions with transition: all: property <transform> from [translate3D(100px, 200px, 300px)] to [none] at (2) should be [matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -100, -200, -300, 1)]
Pass CSS Animations: property <transform> from [translate3D(100px, 200px, 300px)] to [none] at (-1) should be [matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 200, 400, 600, 1)]
Pass CSS Animations: property <transform> from [translate3D(100px, 200px, 300px)] to [none] at (0) should be [matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 100, 200, 300, 1)]
Pass CSS Animations: property <transform> from [translate3D(100px, 200px, 300px)] to [none] at (0.25) should be [matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 75, 150, 225, 1)]
Pass CSS Animations: property <transform> from [translate3D(100px, 200px, 300px)] to [none] at (0.75) should be [matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 25, 50, 75, 1)]
Pass CSS Animations: property <transform> from [translate3D(100px, 200px, 300px)] to [none] at (1) should be [matrix(1, 0, 0, 1, 0, 0) ]
Pass CSS Animations: property <transform> from [translate3D(100px, 200px, 300px)] to [none] at (2) should be [matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -100, -200, -300, 1)]
Pass Web Animations: property <transform> from [translate3D(100px, 200px, 300px)] to [none] at (-1) should be [matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 200, 400, 600, 1)]
Pass Web Animations: property <transform> from [translate3D(100px, 200px, 300px)] to [none] at (0) should be [matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 100, 200, 300, 1)]
Pass Web Animations: property <transform> from [translate3D(100px, 200px, 300px)] to [none] at (0.25) should be [matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 75, 150, 225, 1)]
Pass Web Animations: property <transform> from [translate3D(100px, 200px, 300px)] to [none] at (0.75) should be [matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 25, 50, 75, 1)]
Pass Web Animations: property <transform> from [translate3D(100px, 200px, 300px)] to [none] at (1) should be [matrix(1, 0, 0, 1, 0, 0) ]
Pass Web Animations: property <transform> from [translate3D(100px, 200px, 300px)] to [none] at (2) should be [matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -100, -200, -300, 1)]

View file

@ -0,0 +1,187 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<title>transform interpolation</title>
<link rel="help" href="https://drafts.csswg.org/css-transforms/#transform-property">
<meta name="assert" content="transform supports animation as a transform list">
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<script src="../../../css/support/interpolation-testcommon.js"></script>
<style>
.target {
color: white;
width: 100px;
height: 100px;
background-color: black;
display: inline-block;
overflow: hidden;
}
.expected {
background-color: green;
}
.target > div {
width: 10px;
height: 10px;
display: inline-block;
background: orange;
margin: 1px;
}
.test {
overflow: hidden;
}
</style>
<body>
<template id="target-template">
<div></div>
</template>
</body>
<script>
// Translate
test_interpolation({
property: 'transform',
from: 'translate(12px, 70%)',
to: 'translate(13px, 90%)'
}, [
{at: -1, expect: 'translate(11px, 50%)'},
{at: 0, expect: 'translate(12px, 70%)'},
{at: 0.25, expect: 'translate(12.25px, 75%)'},
{at: 0.75, expect: 'translate(12.75px, 85%)'},
{at: 1, expect: 'translate(13px, 90%)'},
{at: 2, expect: 'translate(14px, 110%)'},
]);
test_interpolation({
property: 'transform',
from: 'translateX(12px)',
to: 'translateX(13px)'
}, [
{at: -1, expect: 'translateX(11px)'},
{at: 0, expect: 'translateX(12px)'},
{at: 0.25, expect: 'translateX(12.25px)'},
{at: 0.75, expect: 'translateX(12.75px)'},
{at: 1, expect: 'translateX(13px)'},
{at: 2, expect: 'translateX(14px)'},
]);
test_interpolation({
property: 'transform',
from: 'translateY(70%)',
to: 'translateY(90%)'
}, [
{at: -1, expect: 'translateY(50%)'},
{at: 0, expect: 'translateY(70%)'},
{at: 0.25, expect: 'translateY(75%)'},
{at: 0.75, expect: 'translateY(85%)'},
{at: 1, expect: 'translateY(90%)'},
{at: 2, expect: 'translateY(110%)'},
]);
test_interpolation({
property: 'transform',
from: 'translateZ(2em)',
to: 'translateZ(3em)'
}, [
{at: -1, expect: 'translateZ(1em)'},
{at: 0, expect: 'translateZ(2em)'},
{at: 0.25, expect: 'translateZ(2.25em)'},
{at: 0.75, expect: 'translateZ(2.75em)'},
{at: 1, expect: 'translateZ(3em)'},
{at: 2, expect: 'translateZ(4em)'},
]);
test_interpolation({
property: 'transform',
from: 'translate3d(12px, 70%, 2em)',
to: 'translate3d(13px, 90%, 3em)'
}, [
{at: -1, expect: 'translate3d(11px, 50%, 1em)'},
{at: 0, expect: 'translate3d(12px, 70%, 2em)'},
{at: 0.25, expect: 'translate3d(12.25px, 75%, 2.25em)'},
{at: 0.75, expect: 'translate3d(12.75px, 85%, 2.75em)'},
{at: 1, expect: 'translate3d(13px, 90%, 3em)'},
{at: 2, expect: 'translate3d(14px, 110%, 4em)'},
]);
test_interpolation({
property: 'transform',
from: 'translateX(12px) translateY(70%) translateZ(2em)',
to: 'translateX(13px) translateY(90%) translateZ(3em)'
}, [
{at: -1, expect: 'translateX(11px) translateY(50%) translateZ(1em)'},
{at: 0, expect: 'translateX(12px) translateY(70%) translateZ(2em)'},
{at: 0.25, expect: 'translateX(12.25px) translateY(75%) translateZ(2.25em)'},
{at: 0.75, expect: 'translateX(12.75px) translateY(85%) translateZ(2.75em)'},
{at: 1, expect: 'translateX(13px) translateY(90%) translateZ(3em)'},
{at: 2, expect: 'translateX(14px) translateY(110%) translateZ(4em)'},
]);
test_interpolation({
property: 'transform',
from: 'skewX(10rad) translateY(70%)',
to: 'skewX(20rad) translateY(90%)'
}, [
{at: -1, expect: 'skewX(0rad) translateY(50%)'},
{at: 0, expect: 'skewX(10rad) translateY(70%)'},
{at: 0.25, expect: 'skewX(12.5rad) translateY(75%)'},
{at: 0.75, expect: 'skewX(17.5rad) translateY(85%)'},
{at: 1, expect: 'skewX(20rad) translateY(90%)'},
{at: 2, expect: 'skewX(30rad) translateY(110%)'},
]);
test_interpolation({
property: 'transform',
from: 'skewX(1rad)',
to: 'translate3d(8px, -4px, 12px) skewX(2rad)'
}, [
{at: -1, expect: 'matrix3d(1, 0, 0, 0, 5.2998553125713235, 1, 0, 0, 0, 0, 1, 0, -8, 4, -12, 1)'},
{at: 0, expect: 'matrix(1, 0, 1.5574077246549023, 1, 0, 0)'},
{at: 0.25, expect: 'matrix3d(1, 0, 0, 0, 0.621795827675797, 1, 0, 0, 0, 0, 1, 0, 2, -1, 3, 1)'},
{at: 0.75, expect: 'matrix3d(1, 0, 0, 0, -1.2494279662824135, 1, 0, 0, 0, 0, 1, 0, 6, -3, 9, 1)'},
{at: 1, expect: 'matrix3d(1, 0, 0, 0, -2.185039863261519, 1, 0, 0, 0, 0, 1, 0, 8, -4, 12, 1)'},
{at: 2, expect: 'matrix3d(1, 0, 0, 0, -5.9274874511779405, 1, 0, 0, 0, 0, 1, 0, 16, -8, 24, 1)'},
]);
test_interpolation({
property: 'transform',
from: 'translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)',
to: 'scaleY(2) skewX(2rad) perspective(500px)'
}, [
{at: -1, expect: 'matrix3d(1, 0, 0, 0, 0, 0, 0, 0, -0.03876288659793814, 0.01938144329896907, 0.94, -0.0029653608247422686, 16, -8, 24, 0.986144329896907)'},
{at: 0, expect: 'matrix3d(1, 0, 0, 0, 1.5574077246549023, 1, 0, 0, -0.02, 0.01, 0.97, -0.0025, 8, -4, 12, 1)'},
{at: 0.25, expect: 'matrix3d(1, 0, 0, 0, 1.1186572632293585, 1.25, 0, 0, -0.0151159793814433, 0.00755798969072165, 0.9775, -0.002378247422680413, 6, -3, 9, 1.0012989690721648)'},
{at: 0.75, expect: 'matrix3d(1, 0, 0, 0, -0.7525665307288518, 1.75, 0, 0, -0.005115979381443298, 0.002557989690721649, 0.9924999999999999, -0.002128247422680412, 2, -1, 3, 1.001298969072165)'},
{at: 1, expect: 'matrix3d(1, 0, 0, 0, -2.185039863261519, 2, 0, 0, 0, 0, 1, -0.002, 0, 0, 0, 1)'},
{at: 2, expect: 'matrix3d(1, 0, 0, 0, -11.227342763749263, 3, 0, 0, 0.021237113402061854, -0.010618556701030927, 1.03, -0.0014653608247422677, -8, 4, -12, 0.9861443298969074)'},
]);
test_interpolation({
property: 'transform',
from: 'translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)',
to: 'translate3d(4px, -12px, 8px) scaleY(2) perspective(500px)'
}, [
{at: -1, expect: 'translate3d(12px, 4px, 16px) matrix3d(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -0.003, 0, 0, 0, 1)'},
{at: 0, expect: 'translate3d(8px, -4px, 12px) matrix3d(1, 0, 0, 0, 1.55741, 1, 0, 0, 0, 0, 1, -0.0025, 0, 0, 0, 1)'},
{at: 0.25, expect: 'translate3d(7px, -6px, 11px) matrix3d(1, 0, 0, 0, 1.46007, 1.25, 0, 0, 0, 0, 1, -0.002375, 0, 0, 0, 1)'},
{at: 0.75, expect: 'translate3d(5px, -10px, 9px) matrix3d(1, 0, 0, 0, 0.681366, 1.75, 0, 0, 0, 0, 1, -0.002125, 0, 0, 0, 1)'},
{at: 1, expect: 'translate3d(4px, -12px, 8px) matrix3d(1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1, -0.002, 0, 0, 0, 1)'},
{at: 2, expect: 'translate3d(0px, -20px, 4px) matrix3d(1, 0, 0, 0, -4.67222, 3, 0, 0, 0, 0, 1, -0.0015, 0, 0, 0, 1)'},
]);
test_interpolation({
property: 'transform',
from: 'translate3d(8px, -4px, 12px) skewX(1rad) perspective(400px)',
to: 'translate3d(4px, -12px, 8px) skewX(2rad) scaleY(2)'
}, [
{at: -1, expect: 'translate3d(12px, 4px, 16px) skewX(0rad) matrix3d(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -0.005, 0, 0, 0, 1)'},
{at: 0, expect: 'translate3d(8px, -4px, 12px) skewX(1rad) matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.0025, 0, 0, 0, 1)'},
{at: 0.25, expect: 'translate3d(7px, -6px, 11px) skewX(1.25rad) matrix3d(1, 0, 0, 0, 0, 1.25, 0, 0, 0, 0, 1, -0.001875, 0, 0, 0, 1)'},
{at: 0.75, expect: 'translate3d(5px, -10px, 9px) skewX(1.75rad) matrix3d(1, 0, 0, 0, 0, 1.75, 0, 0, 0, 0, 1, -0.000625, 0, 0, 0, 1)'},
{at: 1, expect: 'translate3d(4px, -12px, 8px) skewX(2rad) matrix(1, 0, 0, 2, 0, 0)'},
{at: 2, expect: 'translate3d(0px, -20px, 4px) skewX(3rad) matrix3d(1, 0, 0, 0, 0, 3, 0, 0, 0, 0, 1, 0.0025, 0, 0, 0, 1)'},
]);
test_interpolation({
property: 'transform',
from: 'translate3D(100px, 200px, 300px)',
to: 'none'
}, [
{at: -1, expect: 'matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 200, 400, 600, 1)'},
{at: 0, expect: 'matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 100, 200, 300, 1)'},
{at: 0.25, expect: 'matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 75, 150, 225, 1)'},
{at: 0.75, expect: 'matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 25, 50, 75, 1)'},
{at: 1, expect: 'matrix(1, 0, 0, 1, 0, 0) '},
{at: 2, expect: 'matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -100, -200, -300, 1)'},
]);
</script>