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

Re: [css3-content] [css21-content] Syntax for adding alternative text for inserted image

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 19 Nov 2010 08:24:48 -0500
Message-ID: <4CE67AA0.9060605@mit.edu>
To: "Belov, Charles" <Charles.Belov@sfmta.com>, www-style list <www-style@w3.org>
On 11/19/10 3:41 AM, Belov, Charles wrote:
> http://www.w3.org/TR/css3-content/#inserting3
> and
> http://www.w3.org/TR/CSS2/generate.html#content
> would be improved by an example as to how to add an alt attribute with a
> text value, for example "New!" onto the image brought in by the uri.

Uh...  If you need to add alt text, then the image has semantic meaning; 
it's not just a decoration.

If it has semantic meaning, then adding it via CSS is just wrong. In 
particular, it'll break badly in a UA that just doesn't load your CSS.

So there is no way to the alt text, because if you need to do it, you're 
misusing the feature badly.

-Boris
Received on Friday, 19 November 2010 13:25:29 GMT

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