OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>SVGScriptElement.href should not be animatable</title> |
| 3 <script src="../../resources/testharness.js"></script> |
| 4 <script src="../../resources/testharnessreport.js"></script> |
| 5 <script> |
| 6 var foo = 42; |
| 7 |
| 8 async_test(t => { |
| 9 window.onload = () => { |
| 10 var s = document.createElementNS('http://www.w3.org/2000/svg', 'script'); |
| 11 s.onload = t.unreached_func('Should not get a load event'); |
| 12 s.id = 'x'; |
| 13 document.querySelector('svg').appendChild(s); |
| 14 requestAnimationFrame(_ => { |
| 15 requestAnimationFrame(t.step_func_done(_ => { |
| 16 assert_equals(foo, 42); |
| 17 })); |
| 18 }); |
| 19 }; |
| 20 }); |
| 21 </script> |
| 22 <svg xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 23 <set href="#x" attributeName="href" to="resources/set-foo.js"/> |
| 24 <set href="#x" attributeName="xlink:href" to="resources/set-foo.js"/> |
| 25 <animate href="#x" attributeName="href" to="resources/set-foo.js" dur="0.01s"/
> |
| 26 <animate href="#x" attributeName="xlink:href" to="resources/set-foo.js" dur="0
.01s"/> |
| 27 </svg> |
OLD | NEW |