summaryrefslogtreecommitdiffstats
path: root/layout/reftests/web-animations/1363639-1.html
blob: e18a8f16f8cf7e379e8436843d4198c52b4f52cd (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
26
27
28
<!doctype html>
<html class="reftest-wait">
  <head>
    <meta charset=utf-8>
    <title>Bug 1363639</title>
    <style>
      #outer {
        position: absolute;
        width: 100px;
        height: 200px;
        background: green;
      }
    </style>
  </head>
  <body>
    <div id="outer"><div id="inner"></div></div>
    <script>
      var target = document.querySelector("#outer");
      var anim = target.animate([
          {clip: 'rect(0px, auto, 0px, 0px)'},
          {clip: 'rect(0px, auto, 200px, 0px)'}
      ], 2000);
      anim.pause();
      anim.currentTime = 1000;
      document.documentElement.removeAttribute("class");
    </script>
  </body>
</html>