W3C home > Mailing lists > Public > www-style@w3.org > March 2005

Re: Stand-in color before images load

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Tue, 29 Mar 2005 21:03:50 +0200
Message-ID: <4249A696.7080200@annevankesteren.nl>
To: Laurens Holst <lholst@students.cs.uu.nl>
CC: www-style@w3.org

Laurens Holst wrote:
> OTOH, img:alt { content: attr(alt) } sounds kinda nice. Though that 
> wouldn’t work with XHTML 2.0.

Why not? However, I think:

  img{ content:attr(src,url),attr(alt,string,"no alt available");

... might be better.

Note that you could create problems with ':alt':

  img:alt{ content:url(foo) }


-- 
  Anne van Kesteren
  <http://annevankesteren.nl/>
Received on Tuesday, 29 March 2005 19:04:16 GMT

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