:near(<length>) has been proposed, which would match whenever the pointer is within a specified proximity of the element.
Thank You (2025 Edition)
This is the best job I’ve had in my life and it’s only possible because you keep showing up each day to read, learn, share, and discuss all-things-front-end (and a little CSS, of course) with us.