switching-animated-target-to-unknown-element.html (753B)
1 <!DOCTYPE html> 2 <title>Switching animated target to an unknown element</title> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <svg height="0"> 6 <path id="path"> 7 <animateMotion/> 8 </path> 9 <unknown id="unknown"></unknown> 10 </svg> 11 <script> 12 async_test(t => { 13 let path = document.getElementById("path"); 14 let anim = path.firstElementChild; 15 t.step_timeout(() => { 16 path.appendChild(document.createElementNS('http://www.w3.org/2000/svg', 'animateMotion')); 17 anim.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', '#unknown'); 18 requestAnimationFrame(t.step_func(() => { 19 requestAnimationFrame(t.step_func_done()); 20 })); 21 }); 22 }); 23 </script>