Conditional role mapping for aside element (WPT html-aam/roles-contextual.html el-aside-in-section-without-name)
Categories
(Core :: Disability Access APIs, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox125 | --- | fixed |
People
(Reporter: scottaohara, Assigned: nlapre)
References
(Blocks 3 open bugs)
Details
Attachments
(2 files)
HTML AAM issue https://github.com/w3c/html-aam/pull/350 revises the mapping of the aside element to be conditional depending on its scope.
When an aside is scoped to the body element, or main element - allowing generic or presentational elements as ancestors - the aside element would continue to map to the complementary landmark.
e.g.,
body
aside = role=complementary
main
div
aside = role=complementary
Otherwise, if not scoped to body or main, map aside to the generic role.
e.g.,
body
main
section
aside = role=generic
Test case with further examples of expectations - https://scottaohara.github.io/testing/aside/
Updated•2 years ago
|
Reporter | ||
Comment 1•2 years ago
|
||
Note: test case has been updated to include instances of where aside would need to map to role=complementary because it has been given an accessible name. This is not a new change per the update to HTML AAM, but I had forgotten to provide an example in the test case.
Updated•6 months ago
|
This change assigns a generic ARIA role to <aside> elements when they are nested
within <aside>, <article>, <section>, or <nav> elements, aligning with the spec
(https://w3c.github.io/html-aam/#el-aside).
This follows the discussion in https://github.com/w3c/html-aam/issues/512
Updated•5 months ago
|
Updated•3 months ago
|
Assignee | ||
Comment 4•2 months ago
|
||
This revision implements the HTML-AAM spec's rules for role mapping of the aside
element. The aside element might be either 'complementary' or 'generic'
depending on the ancestor and presence of accessible name. This revision
implements these rules via a new class, HTMLAsideAccessible, which has a
NativeRole override. This revision also updates the HTMLMarkupMap to map HTML
aside elements to HTMLAsideAccessible. Finally, this revision removes related
expected failures from web platform tests.
Pushed by nlapre@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/448248e26dbf Implement conditional role mapping for aside element, r=Jamie
Assignee | ||
Updated•1 month ago
|
Comment 6•1 month ago
|
||
bugherder |
Description
•