WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Screenreader Combo Failing aria-labelledby

for

From: jeffgutsell@fuse.net
Date: May 5, 2021 9:44AM


Are there any issues with inserting an SVG file as the source of an <img> and putting alt text on the image?

Jeff Gutsell


-----Original Message-----
From: WebAIM-Forum < <EMAIL REMOVED> > On Behalf Of Patrick H. Lauke
Sent: Wednesday, May 5, 2021 7:17 AM
To: <EMAIL REMOVED>
Subject: Re: [WebAIM] Screenreader Combo Failing aria-labelledby

On 05/05/2021 12:12, Birkir R. Gunnarsson wrote:
> How does just using the <title> element of the SVG work? That is the
> native way to provide text alternatives for SVG images (we've ditched
> them in favor of ARIA trickery due to lack of browser/screen reader
> support but I thought this was improving).

The issue with <title> in the <svg> is that in most (all?) browsers, this also leads to a classic tooltip (like for the title="..."
attribute) when hovering over with the mouse, which most of the time is undesirable.

P
--
Patrick H. Lauke

https://www.splintered.co.uk/ | https://github.com/patrickhlauke
https://flickr.com/photos/redux/ | https://www.deviantart.com/redux
twitter: @patrick_h_lauke | skype: patrick_h_lauke