Bug 244090 - AX: Safari + Voiceover don't read some ShadowDOM elements's aria-label if there's a aria-modal=true
Summary: AX: Safari + Voiceover don't read some ShadowDOM elements's aria-label if the...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: Safari 15
Hardware: Mac (Apple Silicon) macOS 11
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2022-08-18 08:59 PDT by GoOz
Modified: 2022-08-18 13:50 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description GoOz 2022-08-18 08:59:54 PDT
Reproduced on Safari 15.6 & MacOS 11.6.8 and 12.5

Testcase: https://codepen.io/GoOz/pen/MWVZXZQ

Actual results:
If there's an aria-modal attribute set to true somewhere on the page, aria-labels from shadowDOM elements outside the modal element OR inside it but with the aria-label inside its own shadowDOM won't be read by Voiceover.
Removing the aria-modal="true" attribute will read all of them but that's not an option for the sake of a11y.

Expected results: 
Voiceover should read shadowDOM elements aria-labels

Possibly related to https://bugs.webkit.org/show_bug.cgi?id=174667
Comment 1 Radar WebKit Bug Importer 2022-08-18 09:00:05 PDT
<rdar://problem/98834532>