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

How to write user agent tests for "Allowed Accessibility Child Roles" / "Required Accessibility Parent Role" #1870

Open
spectranaut opened this issue Feb 9, 2023 · 2 comments
Assignees
Labels
Role Content Model User Agent Tests Issues related to tests of "User Agent MUST" statements
Milestone

Comments

@spectranaut
Copy link
Contributor

spectranaut commented Feb 9, 2023

In #1454, we are introducing a new "User Agents MUST statement":

  • "To determine whether an element is the accessibility child of a role, user agents MUST ignore any intervening elements with the role generic or none."
  • "To determine whether an element has a parent with the required role, user agents MUST ignore any elements with the role generic or none."

Right now, because the only way to test user agent must statements is to test what is exposed in the accessibility API, I'm struggling to come up with a good test case -- in CORE-AAM there is no logic that depends on whether or not an element has the correct accessibility child or parent.

In html, a table should not be considered a table if it doesn't have the appropriate accessibility children... but HTML-AAM just says to use the WAI-ARIA mappings: https://w3c.github.io/html-aam/#el-table

Maybe this is just a hole in the spec, and html table is a good test case, but am I missing a better ARIA test case?

@spectranaut spectranaut added the User Agent Tests Issues related to tests of "User Agent MUST" statements label Feb 9, 2023
@scottaohara
Copy link
Member

resolving these may help on the html aam side...

w3c/html-aam#293
w3c/html-aam#375

@spectranaut spectranaut self-assigned this Feb 9, 2023
@spectranaut
Copy link
Contributor Author

Hmm I didn't realized there was so much trouble with table already. I'm not sure we can write a test for this, it seems to me these new sections only require validator tests.

@pkra pkra added this to the ARIA 1.3 milestone Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Role Content Model User Agent Tests Issues related to tests of "User Agent MUST" statements
Projects
None yet
Development

No branches or pull requests

3 participants