Update web-platform-tests to revision e426a6933a05bf144eba06a1d4c47ba876a4e2d1

This commit is contained in:
WPT Sync Bot 2019-05-22 10:24:35 +00:00
parent 415b26e4f1
commit 5e5eccabf8
495 changed files with 14920 additions and 784 deletions

View file

@ -85,5 +85,25 @@ test(t => {
'changing the animation current time.');
}, 'Test setting target from a valid target to another target');
promise_test(async t => {
const animation = createDiv(t).animate(
{ opacity: 0 },
{ duration: 1, fill: 'forwards' }
);
const foreignElement
= document.createElementNS('http://example.org/test', 'test');
document.body.appendChild(foreignElement);
t.add_cleanup(() => {
foreignElement.remove();
});
animation.effect.target = foreignElement;
// Wait a frame to make sure nothing bad happens when the UA tries to update
// style.
await waitForNextFrame();
}, 'Target element can be set to a foreign element');
</script>
</body>