[Webkit-unassigned] [Bug 278019] Calling element.focus() from an event listener can show :focus-visible styles

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 13 17:06:54 PDT 2024


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

--- Comment #1 from Nikita Ourazbaev <nikita.ourazbaev at gmail.com> ---
Just to clarify, the :focus-visible styles are shown (or not shown) on the element that is focused, but whether or not they’re shown depends on the content of the button that triggers the event listener that calls element.focus().

The content/markup of the element that gets focus does not seem to matter here, but in the code example it happens to also be a button.

-- 
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/20240814/91ea3684/attachment-0001.htm>


More information about the webkit-unassigned mailing list