WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
245571
Hover state on iOS background-color
https://bugs.webkit.org/show_bug.cgi?id=245571
Summary
Hover state on iOS background-color
Nilesh Prajapati
Reported
2022-09-23 04:49:49 PDT
Issue: Hover styling applied to button on the touch screen. I notice an issue with the hover state on a touch screen device where the hover styling is applied and occurs when toggling a button (e.g. a navigation menu). This issue only occurs when a user exits the navigation menu or selected a button on the same page. A hover styling is presented and disappears when clicking away from the button. While "@media (hover) and (pointer: fine)" media queries do fix this issue. @media (hover) and (pointer: fine) { button:hover { background: yellow; } } I am on the assumption that the CSS hover should only apply to devices with a mouse cursor, etc. Please correct me if this is wrong.
Attachments
Add attachment
proposed patch, testcase, etc.
Tim Horton
Comment 1
2022-09-23 23:18:16 PDT
This is longstanding behavior intended to make pages that are not touch-adopted (and depend on hover for important functionality) work on touch-only devices.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug