Bug 231324

Summary: AX: support aria-posinset, aria-setsize for radio buttons
Product: WebKit Reporter: Aaron Leventhal <aleventhal>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: andresg_22, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   

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.