WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
221587
AX: VO reads out empty group for decorative img inside a dialog
https://bugs.webkit.org/show_bug.cgi?id=221587
Summary
AX: VO reads out empty group for decorative img inside a dialog
Diane Ko
Reported
2021-02-08 17:36:24 PST
Created
attachment 419659
[details]
Screencast of using VO on dialog containers with decorative images When using an image inside of an img tag that's decorative (via alt="") inside of a container that's marked as a dialog (via role="dialog"), VoiceOver will read out "group" for the empty image. Steps to reproduce: 1. Go to a page with a dialog that has a decorative image (ex:
https://cdpn.io/backwardok/debug/JjbKpVb
) 2. Navigate into the dialog and then navigate through the dialog contents. What's expected: The decorative image is passed over and/or navigation does not continue to the decorative image What happens: The decorative image exists in the navigation flow as "group" Things to note: In the codepen I created (
https://codepen.io/backwardok/pen/JjbKpVb
), I have a few test cases that I added: 1. A decorative svg image not inside of a dialog container 2. A decorative svg image as the last item inside of a dialog container 3. A decorative svg image as the 2nd to last item inside of a dialog container 4. A decorative jpg image as the 2nd to last item inside of a dialog container I had tested mostly with svgs since it seemed at first that it might be related to being an svg, but I was surprised that the same behavior happened with a jpg image as well. Adding aria-hidden to the img node doesn't affect whether VO will read out the image as an empty group (it will still do so). This can result in confusing behavior for screen reader users when they come across an unnamed group element that isn't meant to be something that they should have to interact with in any way. I also attached a screencast of me going through the codepen example I shared with VO in Safari. Note that in the 2nd example I go through, I ended up hitting the group twice because I was at the end of the dialog and ended up on the image twice when I forgot I'd need to get out of the dialog container to move forward, not because it existed twice.
Attachments
Screencast of using VO on dialog containers with decorative images
(143.85 KB, video/mp4)
2021-02-08 17:36 PST
,
Diane Ko
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2021-02-08 17:36:33 PST
<
rdar://problem/74122272
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug