Re: [csswg-drafts] [selectors] Proposal for a :hover-only pseudo class (#7544)

@GermanJablo – I can't answer for Devon, but a couple thoughts I had reading your reply:

- I don't think it's possible to change the behavior of `:hover` on touch devices now. It would break existing websites which rely on the current behavior.
- The problem here is that we need a way to select more precisely when an element is hovered with a pointer, for styles that should never apply on touch devices. There is a big difference between hovering an element and holding your finger down on it, the main one (IMO) being that clicking on the target is an easy and logical next step to hovering. That is why hover styles make sense, to indicate that you can click. If an element's hover styles were triggered by holding it, you would have to first lift your finger up and then tap the element again, which isn't as intuitive.

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


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

Received on Tuesday, 13 February 2024 00:58:36 UTC