consider document.activeElement instead of *:focus