w3c / html-aam

HTML Accessibility API Mappings - new spec updates should be made in https://github.com/w3c/aria/tree/main/html-aam
https://w3c.github.io/html-aam/
Other
100 stars 27 forks source link

Does `summary` allow `nameFrom:contents`? #515

Closed cookiecrook closed 10 months ago

cookiecrook commented 10 months ago

I'm correcting some test expectations in https://github.com/web-platform-tests/interop-accessibility/issues/76 and wasn't sure about this one... Previously the expected label was title but I thought it should be contents...

<details>
  <summary title="title" data-expectedlabel="contents" data-testname="summary with tooltip label and contents" class="ex">contents</summary>
  details
</details>

HTML-AAM doesn't define a role, or a "nameFrom" default, and AccName limits contents by the role, so I'm not sure what the expected label should be.

cookiecrook commented 10 months ago

Nm. Found it here: https://w3c.github.io/html-aam/#summary-element-accessible-name-computation