deferred-tree-3d.xhtml (1375B)
1 <?xml version="1.0" encoding="UTF-8" standalone="no" ?> 2 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> 3 <head> 4 <title>Deferred tree</title> 5 <script src="deferred-tree-util.js" type="text/javascript"/> 6 <script> 7 function animate() 8 { 9 // Set up 10 var div = makeDiv(); 11 var svg = makeSvg(); 12 var target = document.getElementById('tree-container'); 13 14 div.appendChild(svg); 15 target.appendChild(div); 16 17 // Create another div container, and move svg element there 18 // (temporarily detaching it from the document). 19 div2 = makeDiv(); 20 div2.appendChild(svg); 21 22 // These calls *should* have an effect, since they happen 23 // after 'svg' has been attached to the XHTML document (even though 24 // it's not currently attached) 25 svg.setCurrentTime(1.0); 26 svg.pauseAnimations(); 27 28 // Attach the div2+svg subtree onto the document. Our current 29 // behavior (which matches Opera 9.64) is to preserve svg's time 30 // container through this manipulation. 31 div.appendChild(div2); 32 33 // Reftest Snapshot 34 document.documentElement.removeAttribute("class"); 35 } 36 </script> 37 </head> 38 39 <body onload="animate()"> 40 <p id="tree-container"/> 41 </body> 42 </html>