[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 04:15:45 PDT 2021


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

Manuel Rego Casasnovas <rego at igalia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rego at igalia.com

--- Comment #58 from Manuel Rego Casasnovas <rego at igalia.com> ---
(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).

This will differ from the general Mac platform behavior somehow, but will align us with other browsers (Firefox has recently changed this in Mac too).
Also current WebKit behavior on Mac (e.g. an <input> loses focus when you click a <button>) doesn't match exactly what happens in the Mac platform (see https://bugzilla.mozilla.org/show_bug.cgi?id=1699570#c1).

-- 
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/d8b4e562/attachment-0001.htm>


More information about the webkit-unassigned mailing list