tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

deferred-tree-3b.xhtml (1065B)


      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          // These calls *should* have an effect, since they happen
     18          // after 'svg' has been attached to the XHTML document.
     19          svg.setCurrentTime(1.0);
     20          svg.pauseAnimations();
     21 
     22          // Shift the SVG element to its parent's parent.
     23          // (If we're sane, this shouldn't reset its time container.)
     24          target.appendChild(svg);
     25 
     26          // Reftest Snapshot
     27          document.documentElement.removeAttribute("class");
     28        }
     29    </script>
     30  </head>
     31 
     32  <body onload="animate()">
     33    <p id="tree-container"/>
     34  </body>
     35 </html>