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

Re: [css-pseudo] please make sure pseudo-element "alt" property makes it into next ED

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Thu, 06 Nov 2014 11:05:18 +0100
Message-ID: <545B47DE.4020405@disruptive-innovations.com>
To: "www-style@w3.org" <www-style@w3.org>
On 06/11/2014 02:29, Tab Atkins Jr. wrote:

> In HTML, the alt attribute works literally by subbing the text in for
> the image.  There's no difference, to a screen reader, between "<img
> alt=new> <img alt=warning>" and "new warning".

(resent, sorry, I originally replied only to Tab)

No. Some readers will read "IMAGE new IMAGE warning" in the former case.
Ask TV Raman.

> Why do you think this should be different in CSS?  If this mechanism
> is *insufficient*, that's one thing.  But as it stands, it's equally
> powerful to HTML to say:
> .new.warning {
>    content: url("new.jpg") url("warning.jpg");
>    alt: "new warning";
> }

Again no. Some readers will read that "IMAGE new warning" instead
of "IMAGE new IMAGE warning". The user will then lose some context.

Received on Thursday, 6 November 2014 10:05:42 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:26 UTC