Skip to content

Commit

Permalink
Bug 1754261 [wpt PR 32753] - WebKit export of https://bugs.webkit.org…
Browse files Browse the repository at this point in the history
…/show_bug.cgi?id=236314, a=testonly

Automatic update from web-platform-tests
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=236314 (#32753)

--

wpt-commits: df792c9398b98876d2f9d0c65aef743c69de4ee3
wpt-pr: 32753
  • Loading branch information
graouts authored and moz-wptsync-bot committed Mar 7, 2022
1 parent b03d037 commit 0eb1d5d
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,34 @@
'Animated style at 50%');
}, `${composite} onto an underlying animation value`);

test(t => {
const div = createDiv(t);
const anims = [];
anims.push(div.animate({ transform: 'translateX(100px)' }, { duration: 100, composite: 'replace' }));
anims.push(div.animate({ transform: 'translateY(100px)' }, { duration: 100, composite }));

for (const anim of anims) {
anim.currentTime = 50;
}

assert_equals(getComputedStyle(div).transform, 'matrix(1, 0, 0, 1, 50, 50)',
'Animated style at 50%');
}, `${composite} onto an underlying animation value with implicit from values`);

test(t => {
const div = createDiv(t);
const anims = [];
anims.push(div.animate([{ offset: 1, transform: 'translateX(100px)' }], { duration: 100, composite: 'replace' }));
anims.push(div.animate([{ offset: 1, transform: 'translateY(100px)' }], { duration: 100, composite }));

for (const anim of anims) {
anim.currentTime = 50;
}

assert_equals(getComputedStyle(div).transform, 'matrix(1, 0, 0, 1, 50, 50)',
'Animated style at 50%');
}, `${composite} onto an underlying animation value with implicit to values`);

test(t => {
const div = createDiv(t);
div.style.marginLeft = '10px';
Expand Down

0 comments on commit 0eb1d5d

Please sign in to comment.