Summary: | :hover is sticky on iOS, even on touch-friendly webpages | ||
---|---|---|---|
Product: | WebKit | Reporter: | Chris Rebert <webkit> |
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW --- | ||
Severity: | Normal | CC: | benjamin, bfulgham, nekr.fabula, simon.fraser, webkit-bug-importer |
Priority: | P2 | Keywords: | HasReduction, InRadar |
Version: | Safari 9 | ||
Hardware: | iPhone / iPad | ||
OS: | iOS 10 | ||
URL: | http://jsbin.com/nepisob/edit?html,css,output | ||
See Also: | https://bugs.chromium.org/p/chromium/issues/detail?id=370155 | ||
Bug Depends on: | |||
Bug Blocks: | 159753 |
Description
Chris Rebert
2016-06-07 23:42:17 PDT
I don't think we can easily fix :hover because of legacy content. IMHO, ":active" should match elements under the primary touch point. It also makes more sense with the existing specs. (In reply to comment #1) > I don't think we can easily fix :hover because of legacy content. I don't understand why you're citing legacy content as a reason, when the suggestion is specifically to *not* change the semantics for legacy content. Only non-legacy content would be affected. > IMHO, ":active" should match elements under the primary touch point. Personally, I would be equally fine with having :hover never apply when using touch input on non-legacy webpages. (In reply to comment #2) > (In reply to comment #1) > > I don't think we can easily fix :hover because of legacy content. > > I don't understand why you're citing legacy content as a reason, when the > suggestion > is specifically to *not* change the semantics for legacy content. > Only non-legacy content would be affected. We could certainly have the behavior of :hover change depending on the viewport meta tag or other signals that a page is mobile friendly. I generally try to avoid "modes of operations" like that and prefer to have a consistent behavior. I was not rejecting your idea of getting rid of :hover for mobile. Just giving my opinion on how I would prefer the use case to be handled. |