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

svg-aam: test for implicit graphics-document role for svg elements #45440

Open
jlp-craigmorten opened this issue Mar 31, 2024 · 0 comments
Open

Comments

@jlp-craigmorten
Copy link

jlp-craigmorten commented Mar 31, 2024

WPT is currently missing an assertion that a <svg> element has an implicit expected role of "graphics-document".

See relevant specifications:

Currently:

  • The html-aam tests have a placeholder todo referencing the graphics-aam and svg-aam tests.
  • The graphics-aam tests do not make this assertion as the specification does not currently provide role mappings.
  • The svg-aam tests do not include an assertion on the <svg> element itself, only allowed children elements.
  • The wai-aria tests do not include assertions on host language implicit roles.
  • There are no explicit html-aria specification tests in WPT because it is focused on authors thus is ill-placed in WPT.

Proposal:

To ensure that the specifications are followed, an additional test asserting that an <svg> element has an implicit expected role of "graphics-document" in either:

  • The html-aam tests adjacent to the placeholder referencing the graphics-aam and svg-aam tests.
  • The svg-aam tests on the parent <svg> element that already exists in the test.

Searched for existing tests using GitHub search, see https://github.com/search?q=repo%3Aweb-platform-tests%2Fwpt%20graphics-document&type=code. Please close if I've missed coverage somewhere!


Relates somewhat to web-platform-tests/interop-accessibility#81

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant