[Webkit-unassigned] [Bug 255507] New: AX: showModal() does not include slotted content as "focusable"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 17 02:25:52 PDT 2023


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

            Bug ID: 255507
           Summary: AX: showModal() does not include slotted content as
                    "focusable"
           Product: WebKit
           Version: Safari 16
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Accessibility
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: westbrook.johnson at gmail.com
                CC: andresg_22 at apple.com,
                    webkit-bug-importer at group.apple.com

When open a "modal" `<dialog>` via the `.showModal()` method, the flat tree is not used to calculate the "first focusable" element and rather than passing focus into content that should otherwise receive it, the focus is passed the `<dialog>` element.

https://codepen.io/Westbrook/pen/VwEjLEo

In the above demo, see the `<input type="text" />` that is slotted into the `<dialog>` element present in the shadow root created on the `<section>` element. When clicking the "Open slotted dialog" button, a visitor would expect to see focus passed into the `<input>` element directly due to the use of `.showModal()`. This is based on the way that clicking "Open flattened dialog" focus is accurately passed in the `<input type="text" />` within the `<dialog>` sharing the same DOM tree.

-- 
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/20230417/47b07c2c/attachment.htm>


More information about the webkit-unassigned mailing list