WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Screenreader Combo Failing aria-labelledby

for

From: Patrick H. Lauke
Date: May 5, 2021 9:48AM


On 05/05/2021 16:44, <EMAIL REMOVED> wrote:
> Are there any issues with inserting an SVG file as the source of an <img> and putting alt text on the image?

Last time I checked, VoiceOver will suddenly decide that the <img> is
not an image anymore and not announce the alt text, unless you then
backfill it with an explicit role="img"

<img role="img" src="foo.svg" alt="blah">

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