WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: CSS 'content: '

for

From: Jared Smith
Date: Nov 13, 2013 11:08AM


On Wed, Nov 13, 2013 at 9:54 AM, Nancy Johnson wrote:

> Is there accessibility issues with CSS generated content?

There are some foundational issues that need to be resolved with CSS
generated content. How can something be style *and* content at the
same time? We have for years advocated separation of content from
style - meaning moving stylistic definitions out of HTML content and
into CSS. Now we're shifting to the other extreme - content is moving
into CSS. There's much debate over whether CSS generated content
should be read by screen readers at all, and as Alastair noted, some
read it because they see it as content and some do not because they
see it as styles. Neither is right or wrong, because it has yet to be
defined what the proper behavior should be.

I'd recommend caution and the assumption that generated content will
not usually be read, while also ensuring that if it is read, that it
does not result in a poor user experience.

Jared