Re: [csswg-drafts] Add "show interest" and "lose interest" hover delays to CSS (#9236)

Even if the trigger and card *are* next to each other, mouse movement that doesn't *perfectly* stay within the bounds of both of them will still close the card immediately if the delay is 0. This sort of interaction anti-pattern has been talked about a lot, and there are various ways to get around it (like creating a triangle- shaped invisible element extending from the target to the card, so all straight paths from anywhere in the target to anywhere in the card remain on a child that triggers :hover), but just having the "lose interest" delay be a small fraction of a second by default will do the job just fine. We generally shouldn't design an initial value that feels *broken* and requires author attention unless there's no way for us to predict what a non-broken value would be; in this case we can do so, so we should.

So I think the "lose interest" initial delay should still be non-zero (but maybe smaller than .5s, I dunno), and I don't have too much of an opinion on whether the "show interest" initial value should be zero or non-zero. 

(I do think the initial values should be `normal` or `auto`, tho, rather than a fixed number, to allow for platform divergence or us adjusting things as we go.)

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


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

Received on Tuesday, 6 May 2025 18:00:41 UTC