[Webkit-unassigned] [Bug 22261] Clicking on a non-text input element does not give it focus

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 15 15:27:35 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=22261

--- Comment #59 from Ryosuke Niwa <rniwa at webkit.org> ---
(In reply to Manuel Rego Casasnovas from comment #58)
> (In reply to Dave from comment #57)
> > Adding my vote that it's pretty terrible that this behavior is different
> > than the rest of the browsers, going on 13 years.  It would seem that this
> > bug makes the recent for for ":focus-visible" pointless in Safari. Having to
> > find work-arounds for components that rely on the focus not arbitrarily
> > moving to the body when a user clicks a button.  This bug is forcing people
> > to do hacky things. Is their any intention of fixing this?
> 
> I believe that if we use :focus-visible in the default UA stylesheet, then
> we could make buttons focusable even on Mac platform, as they won't be
> showing any focus ring (which I understand it's something people want to
> avoid).

Not really. Buttons can't be focused via keyboard by default, for example, and it's non-sensical for a button to have a focus. That's not really a thing on macOS unless you change the system preferences.

-- 
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/20210415/9a24f792/attachment.htm>


More information about the webkit-unassigned mailing list