nvaccess / nvda

NVDA, the free and open source Screen Reader for Microsoft Windows
https://www.nvaccess.org/
Other
2.1k stars 634 forks source link

AccName and AccDesc on Cell Role Not Conveyed with Chrome #12768

Open aardrian opened 3 years ago

aardrian commented 3 years ago

Steps to reproduce:

Using Chrome:

  1. Visit https://cdpn.io/aardrian/debug/xxqYyaa.
  2. Press 2 to navigate to the heading "4. SVG with Table Roles and aria-describedby Comparing to Total".
  3. Press T to navigate to the table that immediately follows that heading.
  4. Navigate into the table and then move among cells using Ctrl + Alt + arrow key.
  5. Observe the announcements.
  6. Press 2 to navigate to the heading "5. SVG with Table Roles and aria-labelledby Comparing to Total".
  7. Navigate into the table and then move among cells using Ctrl + Alt + arrow key.
  8. Observe the announcements.

Actual behavior:

NVDA announces only the cell contents.

Expected behavior:

NVDA announces the cell accessible name and cell accessible description, which is a combination of the cell contents and other text.

System configuration

NVDA installed/portable/running from source:

Installed

NVDA version:

NVDA 2021.1

Windows version:

Windows 10

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

Chrome 92

Other information about your system:

Other questions

Does the issue still occur after restarting your computer?

Yes.

Have you tried any other versions of NVDA? If so, please report their behaviors.

No.

If add-ons are disabled, is your problem still occurring?

Yes.

Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?

Yes.

More Detail

In Google Chrome 92, I can navigate the SVG as if it was a table. The aria-labelledby and aria-describedby attributes are ignored.

Chrome accessibility inspector showing value of description.

For the example in the screen shot, NVDA announces the cell as:

May column 6 50

The accessible description in Chrome's inspector is "of 75 total", but that information is not announced. I expect to hear:

May column 6 50 [pause] of 75 total

For the example that uses aria-labelledby, based on what Chrome's inspector reports the accessible name to be, I expect to hear:

May column 6 50 of 75 total

What I hear instead is:

May column 6 50

NVDA does not convey the accessible name nor accessible description from Chrome.

I discovered this while doing some research and prototyping for Fizz Studio, where they are hoping to leverage table roles in SVGs to impart structural relationships and navigation to data visualizations.

aardrian commented 3 years ago

Back here to note that per the cell role in ARIA 1.1, aria-labelledby and aria-describedby are legit because that support is inherited from the superclass role of section, and persists for the cell role in ARIA 1.2 CR and for the cell role in ARIA 1.3 ED. Please correct if I am wrong.

Adriani90 commented 3 years ago

cc: @feerrenrut

Adriani90 commented 3 weeks ago

This is still reproducible with NVDA 2024.4 Beta. However, if this is implemented, I strongly vote to be an option in document formating settings / elements grouping, otherwise the verbosity will be quite high.

cc: @SaschaCowley

Adriani90 commented 3 weeks ago

It is also reproducible in Firefox, not only in Chromium.