Re: [csswg-drafts] [selectors] Proposal: :near(<length>) pseudo-class for pointer proximity (“pre-hover” styling) (#13271)

I think you could achieve this using a [`pointer()` timeline](https://drafts.csswg.org/pointer-animations-1/) as a [`timeline-trigger`](https://drafts.csswg.org/animation-triggers-1/#timeline-triggers), simply by extending the ranges as much as you want.

If we want to fancier, we may consider using [pointer predicted events](https://www.w3.org/TR/pointerevents/#predicted-events) to the timeline somehow and using that? But, I think the above suggestion could cover that already.

-- 
GitHub Notification of comment by ydaniv
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13271#issuecomment-4062921113 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Sunday, 15 March 2026 12:46:04 UTC