Add tentative WPT for flat ARIA tree accessibility subtree#60503
Open
HaTheo wants to merge 3 commits into
Open
Add tentative WPT for flat ARIA tree accessibility subtree#60503HaTheo wants to merge 3 commits into
HaTheo wants to merge 3 commits into
Conversation
spectranaut
reviewed
Jun 11, 2026
spectranaut
left a comment
Contributor
There was a problem hiding this comment.
It is so awesome to see the new test functionality used for this!!
But I agree with your question on the spec change, I'm not sure if this means we should reorder the accessibility tree, it doesn't actually say in the spec. Let's wait for clarity on that.
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a tentative test to establish and confirm expected browser conformance for flat ARIA tree structures as discussed in w3c/aria#2091.
Specifically, it introduces treeitems.tentative.html to verify that a flat DOM architecture utilizing role="tree" and role="treeitem" with explicit aria-level attributes correctly computes into the appropriate hierarchical accessibility subtree. This test defines a flat DOM tree of Fruits and Vegetables, with children Fruit (Apple, Pear, oranges) and Vegetables (Carrots, Broccoli, Spinach) respectively. It assigns aria-level="1" to top-level categories and aria-level="2" to their respective children, along with aria-setsize and aria-posinset properties consistent with the tree.
And utilizes AriaUtils.verifyAccessibilitySubtree to assert that the browser reflects the intended parent-child relationships and accessibility tree structure, despite the non-nested DOM layout tree items.