WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: SPAM-LOW: Re: CSS content property and empty image alt values

for

From: steven
Date: Dec 10, 2010 8:39AM


Hi Dawn,

I was specifically wanting to place images into pages using the CSS content
property without actually placing them in the flow of the DOM (which to my
knowledge, is what screen readers read). That way, I could avoid using empty
alt images in the DOM, but was wondering if placing images into the design
using CSS content property would trigger similar behaviour in screen readers
as they would if using images in the DOM (such as alerting the user that
there is an image and reading out the alt text).

I know CSS background images are not read by screen readers, but wondered if
images placed using CSS content property would act differently to CSS
background images!? Being that they are placed into the page in a similar
way as DOM images as you can wrap text around them etc!? Hence my
attraction.

Steven