W3C home > Mailing lists > Public > www-archive@w3.org > November 2007

Simple Test of the Accesibility of CSS Generated Content

From: Gregory J. Rosmaita <oedipus@hicom.net>
Date: Tue, 20 Nov 2007 02:32:18 +0000
To: www-archive@w3.org
Message-Id: <20071120022916.M98262@hicom.net>
The attached file is a very simple test of screen-reader support for 
CSS-generated content, defined using the following syntax:

  p:before { content: "You passed, you did not " }

so that, if rendered aurally by a screen reader, the CSS-generated 
text ("You passed, you did not "), in conjunction with the first 
word of the paragraph, ("FAIL!"), informs the tester whether the 
CSS-generated content is available to the tester.  otherwise, the aural 
rendering of the sole paragraph on the page will begin: "FAIL!".

Note that the expected result -- even with User Agents that support CSS 
generated content -- is that the attached document will fail an aural 
test, as the generated content is not available to the screen reader via
the DOM, nor are most stand-alone screen readers CSS-aware.  CSS-generated
text is written directly to the screen, and hence is unavailable to the 
Assistive Technology.

(with thanks to chaals mccathienevile and opera software, upon whose test 
this test document is based)
lex parsimoniae:
  * entia non sunt multiplicanda praeter necessitatem.
the law of succinctness:
  * entities should not be multiplied beyond necessity.
Gregory J. Rosmaita, oedipus@hicom.net
         Camera Obscura: http://www.hicom.net/~oedipus/

Received on Tuesday, 20 November 2007 02:32:26 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:33:18 UTC