Skip to content

svg element role is not consistently supported #173

@giacomo-petri

Description

@giacomo-petri

Per svg-aam spec, svg elements should have a role="graphics-document"

<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100">
	<circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" />
</svg>

is treated differently by browsers:

  • Chrome exposes it as role="image"
  • Firefox exposes it as role="graphics-document"
  • Safari exposes it as generic

Opening a WPT.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions