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

Re: Stand-in color before images load

From: Laurens Holst <lholst@students.cs.uu.nl>
Date: Tue, 29 Mar 2005 21:28:59 +0200
Message-ID: <4249AC7B.7050606@students.cs.uu.nl>
To: www-style@w3.org

Anne van Kesteren wrote:
>>>> OTOH, img:alt { content: attr(alt) } sounds kinda nice. Though
>>>> that wouldn’t work with XHTML 2.0.
>>> Why not?
>> There is no img element in XHTML 2.0.
> Heh, ok...
> I thought it was intended as a more general pseudo-class as it was 
> proposed in the light of background image and such... Actually, the 
> original proposal applied the pseudo-class to the P element.

What I meant was that in XHTML 2.0 alternate text is no longer provided 
as an attribute. Instead it is done like this[1]:

<h1 src="heading1.jpg"><em>Surely</em> this would be cool to have</h1>

Since as far as I know there is no such thing as er... content: 
content() or something.


[1] http://www.w3.org/TR/xhtml2/introduction.html#s_intro_differences

Ushiko-san! Kimi wa doushite, Ushiko-san!!
Received on Tuesday, 29 March 2005 19:28:59 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:17 UTC