Bug 245549
| Summary: | AX: Focusable Elements in shadowroots in modal <dialog> not announced | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Elliott Marquez <emarquez> |
| Component: | Accessibility | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | andresg_22, tanel.terras, tyler_w, webkit-bug-importer, witty.moon7410 |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | All | ||
| OS: | All | ||
Elliott Marquez
If you have focusable elements inside of a shadow root inside of a `<dialog>` element that has been opened with `dialog.showModal()`, the focusable elements are not announced by VoiceOver.
Here is a reproduction:
https://lit.dev/playground/#gist=8fb2373fd14faaf8f763e14a354dc4b5
Dialogs opened normally are fine, it just seems to be dialogs opened with `showModal/90`.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/100302206>
Kevin Zolkiewicz
I've just ran into this one as well. Slotted elements can not be navigated to using VoiceOver. The issue only seems to occur when calling the `showModal()` method; it does not occur if the dialog is rendered with the `open` attribute.
This issue remains present in Safari 16.3 and Safari Technology Preview Release 161. It also affects Mobile Safari in iOS 16.3.
The issue does not occur when using VoiceOver with Chrome 109 or Firefox 110.
Another reproduction: https://codepen.io/zolk/pen/BaPrBjB
Tanel Terras
This particular problem with slotted elements not read by Voiceover is also present when using a simple `div` element with `role="dialog"`.
I feel like these cases are handled the same internally and therefore these issues are connected to each other?
I hope for a clarification if this should be reported separately as reproduction case for role="dialog" with slots and the whole opening/closing logic would be quite a work.
Tyler Wilcock
I think the original issue was fixed with this bug:
https://bugs.webkit.org/show_bug.cgi?id=247134
I can't reproduce any issue with the latest WebKit. Elliot, could you please confirm in a recent STP?
I can reproduce the issue with slotted elements and have filed a separate bug:
https://bugs.webkit.org/show_bug.cgi?id=256141
Tyler Wilcock
(In reply to Tyler Wilcock from comment #4)
> I think the original issue was fixed with this bug:
>
> https://bugs.webkit.org/show_bug.cgi?id=247134
>
> I can't reproduce any issue with the latest WebKit. Elliot, could you please
> confirm in a recent STP?
>
> I can reproduce the issue with slotted elements and have filed a separate
> bug:
>
> https://bugs.webkit.org/show_bug.cgi?id=256141
Elliott, not Elliot -- sorry for the misspelling.