Support ARIA comment role
Categories
(Core :: Disability Access APIs, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox75 | --- | fixed |
People
(Reporter: aaronlev, Assigned: MarcoZ)
References
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
A new role in ARIA called "comment" is intended to help support ARIA annotations. It maps to IA2_ROLE_COMMENT. The ARIA spec PR for it is https://github.com/w3c/aria/pull/1135.
It is currently implemented in Chrome behind the flag
--enable-features=AccessibilityExposeARIAAnnotations
It should automatically compute its level, setsize and posinset when not provided.
The level is based on counting comment ancestors until the root.
Updated•5 years ago
|
Comment 1•5 years ago
|
||
In case it's useful, here's the code in Chromium to deal with level calculation for comments:
https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/accessibility/ax_node_object.cc?q=kcomment+file:blink+file:ax_node&sq=package:chromium&l=1499
Assignee | ||
Comment 2•5 years ago
|
||
This adds both the role as well as calculation of the posinset, setsize, and level calculation if not provided by the author.
Depends on D64546
Updated•5 years ago
|
Assignee | ||
Comment 3•5 years ago
|
||
Updated•5 years ago
|
Comment 5•5 years ago
|
||
bugherder |
Assignee | ||
Comment 6•5 years ago
|
||
Has a test in the test suite, doesn't need manual testing. ATs such as NVDA don't support these roles yet anyway, so the only way would be by way of the a11y inspector. Setting QE Verify to No.
Comment 7•5 years ago
|
||
Documentation complete; see https://github.com/mdn/sprints/issues/2939#issuecomment-607404699 for the full details.
Description
•