W3C home > Mailing lists > Public > www-style@w3.org > April 2006

RE: Downloadable fonts and image replacement

From: Simon Pieters <zcorpan@hotmail.com>
Date: Tue, 25 Apr 2006 10:23:21 +0000
Message-ID: <BAY109-F4041586088838B34F2ECEB4BF0@phx.gbl>
To: bert@w3.org
Cc: www-style@w3.org


From: Bert Bos <bert@w3.org>
>    CSS3 will include content-replacement on all elements, not just
>    pseudo-elements. See the <uri> definition in
>       http://www.w3.org/TR/css3-content/#inserting3
>    It lets you do things like this:
>       /* Use image, failing that use element's content. */
>       H1 { content: url(sparkly_heading_text.png), contents; }
>     Fonts and image replacement -
>       [...]
>       - Accessibility considerations for image-text replacement

I think that the following should be equivalent:

   H1 { content: url(sparkly_heading_text.png); }
   H1 { content: url(sparkly_heading_text.png), contents; }

...because I think that authors will use the first example and expect the 
contents to be used as a fallback. Many authors don't test to disable images 
so they won't realise that the contents aren't used as a fallback, and thus 
the contents won't be accessible to some users.

Simon Pieters
Received on Tuesday, 25 April 2006 10:23:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:44 GMT