WebAIM - Web Accessibility In Mind

E-mail List Archives

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

for

From: Chris Hoffman
Date: Dec 13, 2010 7:09AM


Is it even possible to insert an image using CSS content properties? As far as I understand it, CSS transformations happen _after_ the HTML has been rendered, so CSS content is limited to pure unmarked text. Though, I admit to not being fully up to speed on CSS3, so maybe this has changed.

Chris



On Dec 10, 2010, at 10:35 AM, "steven" < <EMAIL REMOVED> > wrote:

> 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
>
>
>