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>
7 <p>PASS if no crash in debug.
</p>
9 if (window
.testRunner
) {
10 testRunner
.dumpAsText();
11 testRunner
.waitUntilDone();
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();
23 var root
= document
.getElementsByTagName('svg')[0];
24 root
.pauseAnimations();
26 onload = function () {
27 requestAnimationFrame(function() {
28 setTimeout(function() {
30 root
.appendChild(document
.getElementById('someRect').cloneNode(true));
31 root
.appendChild(completionTrigger());