summaryrefslogtreecommitdiff
path: root/layout/reftests/web-animations/1246046-1.html
blob: ced7e5b2836db81e2dfd84d3a41aaad072514c7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!doctype html>
<html class="reftest-wait">
  <head>
    <meta charset=utf-8>
    <title>Bug 1246046</title>
    <style>
      div {
        width: 0px;
        height: 100px;
        background: green;
      }
    </style>
  </head>
  <body>
    <div></div>
    <script>
      var target = document.querySelector("div");
      var anim = target.animate(
        [ { width: "0px" }, { width: "200px" } ], 2000);
      anim.pause();
      anim.currentTime = 1000;
      document.documentElement.removeAttribute("class");
    </script>
  </body>
</html>