Skip to content

Commit 955f430

Browse files
dbaronchromium-wpt-export-bot
authored andcommitted
Allow 'transform' to be 'none' while animating.
This allows the computed value of 'transform' to be 'none' while the transform property is animating, or while one of the independent transform properties is set, or while offset-position or offset-path are used. This depends on the previous patch to avoid having the transitions-specific bug fixed there cause new failures in transform-interpolation-00{1,2,5,6}.html . Fixed: 897358 Change-Id: I9ac00024a2497684e00a0407c59d357a5ab77e43 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3198752 Commit-Queue: David Baron <[email protected]> Reviewed-by: Rune Lillesveen <[email protected]> Cr-Commit-Position: refs/heads/main@{#927466}
1 parent 2987fa6 commit 955f430

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

animation-worklet/worklet-animation-local-time-null-1.https.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
);
4848
animation.play();
4949
await waitForAsyncAnimationFrames(1);
50-
assert_equals(getComputedStyle(target).transform, "matrix(1, 0, 0, 1, 0, 0)");
50+
assert_equals(getComputedStyle(target).transform, "none");
5151
}, "A worklet which never sets localTime has no effect.");
5252

5353
promise_test(async t => {
@@ -72,7 +72,7 @@
7272
);
7373
animation.play();
7474
await waitForAsyncAnimationFrames(1);
75-
assert_equals(getComputedStyle(target).transform, "matrix(1, 0, 0, 1, 0, 0)");
75+
assert_equals(getComputedStyle(target).transform, "none");
7676
}, "A worklet which sets localTime to null has no effect.");
7777

7878
promise_test(async t => {
@@ -112,7 +112,7 @@
112112

113113
await waitForAnimationFrameWithCondition(() => animation.currentTime > 1000);
114114
await waitForAsyncAnimationFrames(1);
115-
assert_equals(getComputedStyle(target).transform, "matrix(1, 0, 0, 1, 0, 0)",
115+
assert_equals(getComputedStyle(target).transform, "none",
116116
"The effect stops on nulling of localTime");
117117

118118
}, "A worklet which changes localTime to from a number to null has no effect on transform.");

0 commit comments

Comments
 (0)