[Webkit-unassigned] [Bug 221366] New: :active pseudoclass not removed when element ineligible for click event (iOS)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 3 17:09:25 PST 2021
https://bugs.webkit.org/show_bug.cgi?id=221366
Bug ID: 221366
Summary: :active pseudoclass not removed when element
ineligible for click event (iOS)
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jordojw at gmail.com
The :active pseudoclass is correctly applied to elements that have an ontouchstart event handler, when the user begins touching an anchor element (probably buttons too). However, when the tap become ineligible while the touches are still active, the :active pseudoclass is not removed. This can occur when the user moves their touch beyond some threshold, *or* if the element is contained inside of a scroll view (or page) that scrolls. In those cases, the :active pseudoclass should be removed. Having a reliable :active class is important for providing visual feedback to the user that when they release their touch, a "click" (or href redirect on anchor) will be triggered.
https://twitter.com/jordwalke/status/1355644884502278144
The :hover pseudoclass also remains "stuck" even after the user removes their touches, but this behavior may not be as critical to fix because there are other ways of removing the :hover class at the application level or css. The :active class is more important to fix because there is no reliable way to fix this in application space / css.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210204/1c6c05c7/attachment.htm>
More information about the webkit-unassigned
mailing list