1959666.html (655B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <style> 4 @keyframes anim { 5 from { opacity: 1; } 6 to { opacity: 0; } 7 } 8 #target { 9 background-color: blue; 10 animation: anim 2s infinite; 11 } 12 #target:hover { 13 opacity: 1 !important; 14 } 15 </style> 16 <div id="target">target</div> 17 <script> 18 addEventListener("load", () => { 19 setTimeout(() => { 20 SpecialPowers.wrap(window).InspectorUtils.addPseudoClassLock(document.querySelector("#target"), ":hover", true); 21 requestAnimationFrame(() => { 22 requestAnimationFrame(() => { 23 document.documentElement.classList.remove("reftest-wait"); 24 }); 25 }); 26 }, 500); 27 }); 28 </script> 29 </html>