-
Notifications
You must be signed in to change notification settings - Fork 22
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
WPT test fails if I enforce name prohibited #240
Comments
Related: issue 241, which is for ACCNAME testable statements. |
This WPT test currently prevents Chrome from experimentally repairing prohibited names in content, e.g. by moving the name to the description of the element. @accdc @cookiecrook @scottaohara WDYT? |
maybe any tests for prohibited name elements/roles should be tentative? i mean, one of the reasons naming is prohibited is based on the fact that the support was spotty / the fact that screen readers behaved differently even if the element did expose a name. but for these elements/roles specifically, these roles are in flux / not actually in the aria spec. so maybe these specific tests need to be rethought? |
If I understand correctly, @aleventhal is suggesting that the current label test is invalid because it prevents adding prohibited name tests... If that's correct Aaron, then Update: Looking more closely, the author error misuse does not negate the need for the UA to pass the information through if it exists, right? I think this should remain an AccName issue until the ARIA WG decides what should be done. If the WG decides Aaron is correct and the tests should be removed, there needs to be a spec change (I think?) and tentative name-prohibited tests (as Scott suggests above). |
Referenced subtests starting here: |
@cookiecrook Ok. Let's do this. I'll create a prototype of my idea so that we can play with it and then decide whether to standardize it. Assumption: prohibited name cases cause text to variably be announced by some screen readers and not others
|
From an offline convo with @aleventhal:
FYI @spectranaut @jnurthen re: July 11 meeting scheduling |
"I think AccName should add an exit clause for roles with name prohibited…" What would that look like do you think? I'll need a proposal since you are more familiar with the desired outcome for implementors than I. |
I agree that we could use some more actionable guidance on what kind of outcome is desired here. |
@MelSumner In the meantime I'm going to build some experiments in Chrome so that you can pass a command line argument to enable different behavior, and we can try some things. |
Discussed in today's ARIA meeting: https://www.w3.org/2024/07/11-aria-minutes.html#t07 |
@aleventhal can you help me recall if these WPT tests need to be removed? |
Tests should exercise UA requirements and verify that the requirements are followed, irrespective from any author requirements. In https://w3c.github.io/accname/#computation-steps I see
|
Thanks @zcorpan. AIUI that means the test actually have the wrong expectations.
|
Could I get someone to explain how failing WPT tests are preventing experimentation? I think I might be missing a beat here, apologies. |
@MelSumner Generally the automation commit queues of the browser engines have a CI check that expects no new failures in either the engine-internal automation, or the shared WPT automation project, which is incorporated into all major engines. Since Aaron's change triggers a new failure in this (now challenged) test expectation, the solution would be to either:
|
@aardrian wrote:
Okay, @aleventhal please review the WPT PR. Thanks. |
I removed that test rather than changing it. I could not change the expectation to an empty string, since WebKit and Gecko are not disallowed from passing the label through, but Chromium also isn't required to pass the authoring error provided label though to the user trying to access their 401k. 😉 |
That was Aaron, but I am flattered you think I am that hip with my initialisms. |
I'm working to update the Blink accessibility code to not expose a name on roles where the name is prohibited. There is a good reason for these rules, as screen readers cannot always cope with having text both in a label and in descendant content.
(Note: I want to experiment with moving the prohibited name to a description, and logging an a11y error in developer tools
However, this causes errors in external/wpt/accname/name/comp_label.html, which seem to assume that aria-label will produce an accname on these prohibited roles. Shouldn't the test be using valid ARIA?
---- Output of test ----
This is a testharness.js-based test.
Found 5 FAIL, 0 TIMEOUT, 0 NOTRUN.
[FAIL] label valid on div with associationlist role
assert_equals:
[FAIL] label valid on div with associationlistitemkey role
assert_equals:
[FAIL] label valid on div with associationlistitemvalue role
assert_equals:
[FAIL] label valid on dd element
assert_equals:
[FAIL] label valid on dt element
assert_equals:
Harness: the test ran to completion.
The text was updated successfully, but these errors were encountered: