W3C home > Mailing lists > Public > www-style@w3.org > May 2010

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Sun, 9 May 2010 09:36:49 -0700
Message-ID: <u2rdd0fbad1005090936n985a43dbiba2cb514f8157805@mail.gmail.com>
To: robert@ocallahan.org
Cc: "L. David Baron" <dbaron@dbaron.org>, www-style list <www-style@w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:27 GMT