Bug 266789 - AX: Accessible name in shadow slot fails in shadow DOM
Summary: AX: Accessible name in shadow slot fails in shadow DOM
Status: RESOLVED DUPLICATE of bug 266916
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: Safari 17
Hardware: iPhone / iPad iOS 17
: P1 Critical
Assignee: Nobody
URL:
Keywords: HasReduction, InRadar, Regression
Depends on:
Blocks:
 
Reported: 2023-12-21 13:59 PST by Steve Repsher
Modified: 2023-12-29 12:20 PST (History)
3 users (show)

See Also:


Attachments
Button with component label in and out of shadow (969 bytes, text/html)
2023-12-21 13:59 PST, Steve Repsher
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***