Bug 231324 - AX: support aria-posinset, aria-setsize for radio buttons
Summary: AX: support aria-posinset, aria-setsize for radio buttons
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
Keywords: InRadar
Depends on:
Reported: 2021-10-06 12:59 PDT by Aaron Leventhal
Modified: 2021-10-06 13:44 PDT (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Leventhal 2021-10-06 12:59:23 PDT
Example with <input type="radio">:
data:text/html,<div role="radigroup"><label><input type="radio" name="z" aria-posinset="50" aria-setsize="60">Cats</label><label><input type="radio"name="z"  aria-posinset="51" aria-setsize="60">Dogs</label></div>

Example using ARIA role=radio:
data:text/html,<div role="radiogroup"><div tabindex="0" role="radio" aria-posinset="20" aria-setsize="30">Fish</div><div tabindex="0" role="radio" aria-posinset="21" aria-setsize="30">Bird</div></div>

1. Run one of the above examples with VoiceOver and Safari
2. Tab through the items
Notice that that items are read as "1 of 2" and "2 of 2", not respecting the ARIA positional markup.

See also bug 98202 for list items.
Comment 1 Radar WebKit Bug Importer 2021-10-06 12:59:36 PDT
Comment 2 Aaron Leventhal 2021-10-06 13:44:03 PDT
Also, when AXARIAPosInSet/AXARIASetSize are used on a radio, it would be great if a radiogroup object is not required as a parent, because it is possible to use radio buttons without a radiogroup ancestor.