Bug 266789

Summary: AX: Accessible name in shadow slot fails in shadow DOM
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
Button with component label in and out of shadow none

Description Steve Repsher 2023-12-21 13:59:46 PST
Created attachment 469163 [details]
Button with component label in and out of shadow

An accessible name slotted into a child component of a simple button (or any other ARIA role) fails to be read by VoiceOver.  This only occurs when the role is also in a shadow root, i.e. the same code works in the light DOM.  Please see attached very minimal reproduction.

This is a major regression in Safari 17 as it can break labels for even very simple components.
Comment 1 Radar WebKit Bug Importer 2023-12-21 13:59:54 PST
<rdar://problem/120012037>
Comment 2 Tyler Wilcock 2023-12-29 12:20:07 PST

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