Re: [css3-content] "content" property, replaced elements, and width

On Sun, May 9, 2010 at 1:50 AM, Robert O'Callahan <robert@ocallahan.org> wrote:
> On Sun, May 9, 2010 at 3:05 AM, L. David Baron <dbaron@dbaron.org> wrote:
>>
>>  img { content: attr(src, url); }
>
>
> There's no way to do alt text properly with this approach, is there?

img { content: attr(src, url), attr(alt); }


> I agree it would be nice for building "img-like" elements, but <img> itself
> seems too special.

Even if we couldn't do <img> in pure CSS, the ability to do img-like
elements is pretty darn useful.

~TJ

Received on Sunday, 9 May 2010 16:37:42 UTC