Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome/NVDA and images with short alt text announced as "unlabelled" #17549

Open
patrickhlauke opened this issue Dec 18, 2024 · 8 comments
Open

Comments

@patrickhlauke
Copy link

Steps to reproduce:

In Chrome, it appears that images with a short (3-letter) alt attribute are treated as unlabelled (and announced as such by NVDA), despite having a text alternative and accessible name? In Firefox, the problem does not appear ... so unclear if this is a bug with NVDA itself, or something that Chrome is not doing properly.

<img alt="Bob" src="...">

https://codepen.io/joshfarrant/pen/zxOZrWq

Actual behavior:

Chrome/NVDA announce the image as Unlabelled graphic Bob. To get missing image descriptions, open the context menu.

Expected behavior:

graphic Bob.

System configuration

NVDA installed/portable/running from source:

Installed

NVDA version:

2024.4

Windows version:

Windows 11

Name and version of other software in use when reproducing the issue:

Chrome 131.0.6778.140 (Official Build) (64-bit)

@patrickhlauke
Copy link
Author

(disregard the actual example test - of course those alt texts aren't good, but only there to test the bug. in real-world application, the bug was encountered when adding company logos with short acronym names, like "BMW" and "EY")

@Adriani90
Copy link
Collaborator

with chrome canary 133.0.6903.0 and NVDA last alpha I cannot reproduce.
I am closing as works for me.
Please comment with a link of a website that shows this behavior and we can reopen.
Maybe the website uses some sort of technique to hide the alt text for screen readers, but at least from the minimal test case it is not reproducible.

@github-actions github-actions bot added this to the 2025.1 milestone Dec 18, 2024
@patrickhlauke
Copy link
Author

@Adriani90 just checked the example URL i already provided above (https://codepen.io/joshfarrant/pen/zxOZrWq) with the latest Canary 133.0.6903.0 (Official Build) canary (64-bit) ... and am still seeing the same buggy result.

screenshot showing the latest Chrome canary, with the codepen example - NVDA speech viewer shows that the first image is announced as 'unlabelled graphic   Bob'

@Adriani90
Copy link
Collaborator

Adriani90 commented Dec 18, 2024 via email

@patrickhlauke
Copy link
Author

I'm running default settings in NVDA. Just checked, and yes, it's set to "Default (Only when necessary)"

@SaschaCowley
Copy link
Member

@Adriani90 I can reproduce this with UIA in Chrome set to "only when necessary" or or "yes". I can also reproduce it with Narrator, and when inspecting the image with Accessibility Insights. This is a Chrome issue, not an NVDA issue. @aleventhal is this something Google is aware of?

@aleventhal
Copy link

Hi Sascha, the Microsoft Edge team manages the UIA implementation in Chromium.
However, they have UIA turned on by default in Edge, whereas Chrome uses the IA2->UIA bridge by default.
You can change Chrome's behavior with a command line argument: --enable-features=UiaProviderWin or --disable-features=UiaProviderWin.
If the behavior is broken when the bridge is used, but works when the native UIA support is enabled, then it's just a matter of time before it gets fixed.
If the behavior is broken with the native UIA support, then file a bug at crbug.com and we'll make sure it gets routed to the Edge team.

@patrickhlauke
Copy link
Author

Confirming that Edge/NVDA behaves correctly, so this definitely smells like a Chrome bug.

screenshot of the codepen test case in Edge, with NVDA speech viewer showing that the images are both announced correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants