SVG naming computation

Hi,
I was asked recently what the proper naming computation is when dealing with SVG elements, and there has been much debate about this over the years, many things have been proposed, and none of it has really gone anywhere.

So, for the sake of clarifying what is actually documented according to spec, here is what I found regarding SVG elements.

Steps to compute the accessible name of an SVG (order of precedence):
- aria-labelledby
- aria-label
- title element in the SVG
- title attribute on the SVG
 
The desc element would be treated like aria-describedby on the SVG element itself, and only set the Description property, which is not used to compute the accessible name.

I derived this since these are the only elements and attributes documented in the AccName specification for this purpose, and no other SVG naming specification has gone through formal review to validate a different naming computation that I am aware of.

If I've made any incorrect assumptions here, please let me know.

Also, regarding the accessibility of unnamed SVG elements, do you believe these have the same status as unnamed img elements where they should be flagged  as having to either be hidden properly or given a valid name?

Thanks,
Bryan


Bryan Garaventa
Principal Accessibility Architect
Level Access, Inc.
Bryan.Garaventa@LevelAccess.com
415.624.2709 (o)
www.LevelAccess.com

Received on Wednesday, 12 June 2019 16:52:43 UTC