[Webkit-unassigned] [Bug 247416] New: focus-visible is triggered when opening dialog using mouse
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 3 01:33:30 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=247416
Bug ID: 247416
Summary: focus-visible is triggered when opening dialog using
mouse
Product: WebKit
Version: Safari Technology Preview
Hardware: Mac (Apple Silicon)
OS: macOS 13
Status: NEW
Severity: Minor
Priority: P2
Component: Forms
Assignee: webkit-unassigned at lists.webkit.org
Reporter: andreas.ehrencrona at hyperlab.se
CC: cdumez at apple.com, wenson_hsieh at apple.com
Created attachment 463380
--> https://bugs.webkit.org/attachment.cgi?id=463380&action=review
Repro
When opening a dialog using `showModal`, the first focusable element is given focus. So far so good.
However, the element always receives a focus highlight. In fact, `:focus-visible` is triggered. I would expect this not happen if I use a mouse to open the dialog.
See the attached reproduction, where clicking the open button shows a dialog with button with a pink border. The pink border is from a `:focus-visible` style.
--
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/20221103/6147d739/attachment-0001.htm>
More information about the webkit-unassigned
mailing list