summaryrefslogtreecommitdiffstats
path: root/devtools/client/inspector/animation/test/doc_mutations_add_remove_immediately.html
blob: c8b3db749b9b6bbc2e10763fcffe45ed68d43244 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
  </head>
  <body>
    <div></div>

    <script>
    "use strict";

    // This function is called from test.
    // eslint-disable-next-line
    function startMutation() {
      const target = document.querySelector("div");
      const animation = target.animate({ opacity: [1, 0] }, 100000);
      animation.currentTime = 1;
      animation.cancel();
    }
    </script>
  </body>
</html>