Bug 266717

Summary: AX: Default contents of child slot are not used for accessible name
Product: WebKit Reporter: Steve Repsher <steverep+webkit>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Critical CC: andresg_22, tyler_w, webkit-bug-importer
Priority: P1 Keywords: HasReduction, InRadar, Regression
Version: Safari 17   
Hardware: iPhone / iPad   
OS: iOS 17   
See Also: https://github.com/home-assistant/frontend/issues/18759
Attachments:
Description Flags
Minimal repro with and without slotted name none

Description Steve Repsher 2023-12-20 11:13:39 PST
Created attachment 469147 [details]
Minimal repro with and without slotted name

VoiceOver does not read the contents of a label provided as the default contents of a child slot when the ARIA role is outside the shadow root.  See the attached minimal reproduction.  Note that if the `div` is removed from the shadow DOM, then the default label will be consumed as expected.
Comment 1 Radar WebKit Bug Importer 2023-12-20 11:13:55 PST
<rdar://problem/119944830>
Comment 2 Tyler Wilcock 2023-12-29 12:18:58 PST
This is fixed by:

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

Thanks for taking the time to file these bugs and create minimal reproductions, each was helpful.
Comment 3 Tyler Wilcock 2023-12-29 12:19:22 PST

*** This bug has been marked as a duplicate of bug 266916 ***