tor-browser

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

svg-style-animate-crash.html (482B)


      1 <!DOCTYPE html>
      2 <title>Starting a CSS Animation and Web Animation at the same time on SVG style elements</title>
      3 <link rel="help" href="https://crbug.com/1264236">
      4 <style>
      5  @keyframes anim {
      6    from { color: green; }
      7    to { color: red; }
      8  }
      9 
     10  #target {
     11    animation: anim 1s linear;
     12  }
     13 </style>
     14 <svg>
     15  <style id=target>Test</style>
     16 </svg>
     17 <script>
     18  addEventListener('load', () => {
     19    target.animate({'top': ['0px', '10px']}, 1000);
     20    target.offsetTop;
     21  });
     22 </script>