mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Update web-platform-tests to revision e426a6933a05bf144eba06a1d4c47ba876a4e2d1
This commit is contained in:
parent
415b26e4f1
commit
5e5eccabf8
495 changed files with 14920 additions and 784 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue