Skip to content

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

@spectranaut

Description

@spectranaut

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?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions