Bug 1731994: part 4) Declare more methods around `ContentPermissionRequestBase` ...
[gecko.git] / layout / reftests / transform-3d / animate-backface-hidden.html
blobf52b912f663fffaf371974815c2c9a6875664be5
1 <!DOCTYPE HTML>
2 <html class="reftest-wait reftest-no-flush">
3 <title>Testcase, bug 1186061</title>
4 <style>
6 html { overflow: hidden }
8 body { padding: 50px }
10 @keyframes flip {
11 0%, 85% { transform: rotateX(170deg); }
12 90%, 100% { transform: rotateX(10deg); }
15 #test {
16 background: blue;
17 height: 200px; width: 200px;
18 backface-visibility: hidden;
19 /* use a -99.9s delay to start at 99.9% and then move to 0% */
20 animation: flip 100s -99.9s linear 2 paused;
23 </style>
25 <div id="test">
26 </div>
28 <script>
30 document.getElementById("test")
31 .addEventListener("animationstart", StartListener);
33 function StartListener(event) {
34 var test = document.getElementById("test");
35 test.style.animationPlayState = 'running';
36 test.addEventListener("animationiteration", IterationListener);
39 function IterationListener(event) {
40 setTimeout(RemoveReftestWait, 0);
43 function RemoveReftestWait() {
44 document.documentElement.classList.remove("reftest-wait");
47 </script>