NEW 214003
AX: Radio button input does not announce full label
https://bugs.webkit.org/show_bug.cgi?id=214003
Summary AX: Radio button input does not announce full label
Jeff Miller
Reported 2020-07-06 13:08:55 PDT
Created attachment 403611 [details] VO_RadioButton_AndMoreItems The label/for accessible name is not being announced in full by VoiceOver. This is occurring with multiple spans being used to create a styled label. Example Code: <input name=“selector” id=“selector_2" type=“radio”> <label for=“selector_2"> <span class=“column”> <span>256GB<sup>1</sup></span> <span>Caption ipsum dolor</span> </span> </label> .column { display:flex; flex-direction:column; } VoiceOver announces the accessible name as "256GB1 and one more item" VoiceOver announces the entire label: – Removing the <sup> element – Removing display:flex – Added aria-labelledby to the input
Attachments
VO_RadioButton_AndMoreItems (91.35 KB, image/png)
2020-07-06 13:08 PDT, Jeff Miller
no flags
test case (376 bytes, text/html)
2020-07-06 14:54 PDT, James Craig
no flags
Radar WebKit Bug Importer
Comment 1 2020-07-06 13:09:15 PDT
James Craig
Comment 2 2020-07-06 14:54:35 PDT
Created attachment 403624 [details] test case
James Craig
Comment 3 2020-07-06 14:58:09 PDT
Related to bug 150176
James Craig
Comment 4 2020-07-06 15:08:48 PDT
WebKit Accessibility Inspector has the full label, but the Mac platform Accessibility Inspector shows no label exposed to the AX API.
James Craig
Comment 5 2020-07-06 15:17:09 PDT
If you change the flex-direction from column to row, VO reads the whole label, which is on one line now. It seems the reason this is getting a partial label is that WebKit is not exposing anything, so VO tries to repair/avoid the WebKit bug by speaking the nearest line of text as the label.
James Craig
Comment 6 2020-07-06 17:42:43 PDT
Disregard the last comment about `flex-direction: row;` I might've had a typo because I'm not able to verify those results anymore.
Note You need to log in before you can comment on or make changes to this bug.