Closed Bug 1749505 Opened 2 years ago Closed 1 month ago

Conditional role mapping for aside element (WPT html-aam/roles-contextual.html el-aside-in-section-without-name)

Categories

(Core :: Disability Access APIs, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
125 Branch
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/

Blocks: html5a11y
Type: defect → enhancement
Component: Disability Access → Disability Access APIs
Product: Firefox → Core

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.

Duplicate of this bug: 1858050
Blocks: a11y-wpt
Summary: Conditional role mapping for aside element → Conditional role mapping for aside element (WPT html-aam/roles-contextual.html el-aside-in-section-without-name)

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

Assignee: nobody → joone.hur
Status: NEW → ASSIGNED

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: joone.hur → nlapre
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: