w3c / accname

Accessible Name and Description Computation
https://w3c.github.io/accname/
61 stars 23 forks source link

Accname testable statements include prohibited name situations #241

Closed aleventhal closed 2 months ago

aleventhal commented 3 months ago

Tests 596-599 all expect the browser to return an accessible name on a generic div, even though name is prohibited in these cases. I think it's important to know that the name is prohibited on certain roles for reasons that affect end users. Some screen readers can't cope with the important text of a structural element being on the accessible name instead of in the contents.

This testable statement / expectation currently prevents Chrome from trying to repair the content, e.g. by moving the name to the description of the element.

Example of test: https://www.w3.org/wiki/AccName_1.1_Testable_Statements#Name_test_case_597

@accdc @scottaohara WDYT?

aleventhal commented 3 months ago

Related: issue 240 which is for the comp_label WPT test.

MelSumner commented 3 months ago

Trying to summarize to make this actionable:

ACCNAME spec should state what roles should not have a name.

@aleventhal Is this an accurate summation of your issue?

aleventhal commented 3 months ago

ACCNAME spec should state what roles should not have a name.

I'm not really for or against that, but perhaps it would be redundant with ARIA.

My request is more that the testable statements be altered to not name plain divs, since that's prohibited, and perhaps the browser developer will want to explore repairs there (we are looking at it).

MelSumner commented 2 months ago

Okay, after digging a bit deeper...I don't think that wiki is accurate or should be used. I think WPT would be the source of truth now.

@spectranaut @jnurthen could we consider deprecating that wiki? Perhaps adding a message that the wiki is deprecated and link to what folks should be looking at instead. WDYT?

aleventhal commented 2 months ago

That works for me. Thank you.

On Tue, Jul 9, 2024 at 2:48 PM Melanie Sumner @.***> wrote:

Okay, after digging a bit deeper...I don't think that wiki is accurate or should be used. I think WPT would be the source of truth now.

@spectranaut https://github.com/spectranaut @jnurthen https://github.com/jnurthen could we consider deprecating that wiki? Perhaps adding a message that the wiki is deprecated and link to what folks should be looking at instead. WDYT?

— Reply to this email directly, view it on GitHub https://github.com/w3c/accname/issues/241#issuecomment-2218414254, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKQAZT5ZDQDZTMLFC7OG33ZLQWBLAVCNFSM6AAAAABKFYZ32CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJYGQYTIMRVGQ . You are receiving this because you were mentioned.Message ID: @.***>

spectranaut commented 2 months ago

As discussed in the meeting, we are going to mark the wki as deprecated and point to the WPT tests for accname instead.