OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <svg> |
| 3 <set id='cssPropAnim' xlink:href='#cssPropAnim' attributeName='fill' to='gold'
></set> |
| 4 <rect id='someRect'><animate></animate></rect> |
| 5 <use clip-path='url(#someRect)' xlink:href='#cssPropAnim'></use> |
| 6 </svg> |
| 7 <p>PASS if no crash in debug.</p> |
| 8 <script> |
| 9 if (window.testRunner) { |
| 10 testRunner.dumpAsText(); |
| 11 testRunner.waitUntilDone(); |
| 12 } |
| 13 function completionTrigger() { |
| 14 var set = document.createElementNS('http://www.w3.org/2000/svg', 'set'); |
| 15 set.setAttribute('attributeName', 'x'); |
| 16 set.setAttribute('to', '0'); |
| 17 set.onbegin = function() { |
| 18 if (window.testRunner) |
| 19 testRunner.notifyDone(); |
| 20 }; |
| 21 return set; |
| 22 } |
| 23 var root = document.getElementsByTagName('svg')[0]; |
| 24 root.pauseAnimations(); |
| 25 |
| 26 onload = function () { |
| 27 requestAnimationFrame(function() { |
| 28 setTimeout(function() { |
| 29 root.style.zoom = 2; |
| 30 root.appendChild(document.getElementById('someRect').cloneNode(true)); |
| 31 root.appendChild(completionTrigger()); |
| 32 }, 0); |
| 33 }); |
| 34 } |
| 35 </script> |
OLD | NEW |