aria icon indicating copy to clipboard operation
aria copied to clipboard

`svg` element in HTML-AAM, SVG-AAM and WAI-ARIA Graphics Module specs

Open giacomo-petri opened this issue 8 months ago • 12 comments

This is an intended duplicated issue already raised in SVG-AAM repo 4 years ago, but I opened it to gain traction on this topic since it affects quite heavily tool vendors.

Current specs:

  • ARIA in HTML maps the <svg> element to role="graphics-document"
  • SVG AAM set the default platform WAI-ARIA role mappings to "graphics-document"
  • WAI-ARIA Graphics Module requires role="graphics-document" to have an acc name

Concerns:

  • Currently, different AT don't expose the svg element to the user unless it has an acc name, ignoring the browsers computed role
  • Currently, browsers are exposing svg elements differently (see last WPT test)
  • Web authors expect svg not to be exposed by default; if authors have to follow current specs, they are forced to either set an accessible name, or role=none to each svg element, even if the svg doesn't convey any information.

Proposal:

  • expose svg with computed role=none if no acc name (similarly as img element with empty alt)
  • otherwise graphics-document

giacomo-petri avatar Feb 07 '25 15:02 giacomo-petri