1371450-1.html (830B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <title></title> 4 <style> 5 @keyframes anim { 6 to { transform: rotate(360deg); } 7 } 8 #animation { 9 animation: anim 3s infinite; 10 } 11 .red { 12 color: red; 13 } 14 </style> 15 <div><span id="target">text</span></div> 16 <div id="animation">animation</div> 17 <script> 18 window.addEventListener('load', () => { 19 var target = document.getElementById('target'); 20 target.classList.add('red'); 21 setTimeout(() => { 22 target.classList.remove('red'); 23 SpecialPowers.wrap(window) 24 .synthesizeMouseEvent("mousemove", 100, 100, { button: 1, modifiers: 1 }); 25 setTimeout(() => { 26 document.documentElement.classList.remove("reftest-wait"); 27 }, 0); 28 }, 0); 29 SpecialPowers.wrap(window) 30 .synthesizeMouseEvent("mousemove", 100, 100, { button: 1, modifiers: 1 }); 31 }); 32 </script>