Bug 276316 - AX: aria-selected not announced on element with role=gridcell
Summary: AX: aria-selected not announced on element with role=gridcell
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-07-08 08:00 PDT by Greg Jellin
Modified: 2024-07-08 08:01 PDT (History)
2 users (show)

See Also:


Attachments
showing WAI-APG datepicker with code (40.89 KB, image/png)
2024-07-08 08:00 PDT, Greg Jellin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Jellin 2024-07-08 08:00:48 PDT
Created attachment 471843 [details]
showing WAI-APG datepicker with code

Hello, When using the aria-selected="true" property on an element with role="gridcell" VoiceOver does not announce the selected state. According to the ARIA 1.2 Spec this is an appropriate implementation of aria-selected.

I created a codepen that uses a slightly modified version of of the W3C WAI APG Datepicker example (https://codepen.io/A11yGreg/pen/wvbZboN). As shown in the following screenshot, aria-selected=”true” is applied to the gridcell of the selected date. I tested VoiceOver on Safari, Firefox, and Chrome and none announce the selected state. This is coded according to ARIA spec and VoiceOver fails to announce the selected state.

Conclusion
For the selected state of a gridcell to be surfaced to VoiceOver users, VoiceOver will have to enable support for this property.

Resources
ARIA spec gridcell is a supported role - https://www.w3.org/TR/wai-aria-1.0/states_and_properties#aria-selected
ARIA gridcell role with aria-selected - https://a11ysupport.io/tests/aria_gridcell(aria-selected)
Comment 1 Radar WebKit Bug Importer 2024-07-08 08:01:02 PDT
<rdar://problem/131306565>