summaryrefslogtreecommitdiffstats
path: root/layout/style/crashtests/972199-1.html
blob: a4e0de0d81ca7d9a73954095449690b05c8d49b6 (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
29
30
31
32
33
34
35
36
37
<!DOCTYPE HTML>
<html class="reftest-wait">
<head>
  <style type="text/css">
    @keyframes anim {
       0% { transform: translate(0px) }
       100% { transform: translate(100px) }
    }
    div {
      width: 100px;
      height: 100px;
      background-color: white;
    }
  </style>
</head>
<body>
<div></div>
<script type="application/javascript">

window.addEventListener("load", function() {
  document.querySelector("div").setAttribute("style",
    "animation: 100s 300s anim linear");
  advance_clock(200000);
  advance_clock(300000);

  Promise.resolve().then(function() {
    SpecialPowers.DOMWindowUtils.restoreNormalRefresh();
  }).then(function() {
    document.documentElement.className = "";
  });
});

function advance_clock(milliseconds) {
  SpecialPowers.DOMWindowUtils.advanceTimeAndRefresh(milliseconds);
}
</script>
</html>