Bug 235065

Summary: AX: HTML AAM Update to aside mapping
Product: WebKit Reporter: Scott <scottaohara>
Component: AccessibilityAssignee: Joone Hur <joone>
Status: RESOLVED FIXED    
Severity: Normal CC: andresg_22, aroselli, jcraig, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
See Also: https://github.com/web-platform-tests/wpt/pull/43028

Description Scott 2022-01-11 04:43:19 PST
HTML AAM issue https://github.com/w3c/html-aam/pull/350 revises the mapping of the aside element.

When an aside is scoped to the body element, or main element - allowing generic or presentational elements as ancestors - the aside element would map to the complementary landmark.

some examples:

body
  div
    aside = complementary

or

body 
  main
   aside = complementary

or

body 
  div
    main
      section role=presentation
        aside = complementary


Otherwise, if not scoped to the body or the main element, the aside element would map to the generic role.

body
  main
    section
      aside = generic
Comment 1 Radar WebKit Bug Importer 2022-01-11 04:43:28 PST
<rdar://problem/87391915>
Comment 2 Scott 2022-01-11 05:24:35 PST
here is a test case https://scottaohara.github.io/testing/aside/
Comment 3 Scott 2022-02-06 15:22:39 PST
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.
Comment 4 James Craig 2023-11-02 13:57:47 PDT
Did this change make it into a WPT computedrole test?
Comment 6 Joone Hur 2023-11-05 12:26:32 PST
Pull request: https://github.com/WebKit/WebKit/pull/20013
Comment 7 Joone Hur 2023-11-08 09:56:33 PST
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/43028
Comment 8 EWS 2023-11-09 23:11:12 PST
Committed 270509@main (47f7deca4cff): <https://commits.webkit.org/270509@main>

Reviewed commits have been landed. Closing PR #20013 and removing active labels.