Skip to content

aria-level tests for headingoffset #203

@keithamus

Description

@keithamus

The new "Heading Levels & Offsets" HTML specification allows computing a heading offset based on ancestors (https://html.spec.whatwg.org/multipage/sections.html#heading-levels-&-offsets).

We should ensure that:

  1. Accessible nodes provide the aria level with the computed offset, for testing.
  2. We have tests written which exercise the various levels.

We have a fairly comprehensive test suite for levels https://github.com/web-platform-tests/wpt/blob/master/html/semantics/sections/headingoffset-and-headingreset.html which uses the :heading(n) pseudo to determine matches. This should be straightforward to port this document and refactor the tests to assert the aria level matches what is expected.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions