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: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 5 Nov 2014 17:29:22 -0800
Message-ID: <CAAWBYDBhXf5WfenN==7tcDYActf_0H7F72nUaFpA5xWiXqkzAQ@mail.gmail.com>
To: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Cc: www-style list <www-style@w3.org>
On Wed, Nov 5, 2014 at 5:22 PM, Daniel Glazman
<daniel.glazman@disruptive-innovations.com> wrote:
> On 06/11/2014 01:31, Tab Atkins Jr. wrote:
>
>> I don't understand.  What do you think is different between
>> alt-per-url and alt-for-whole thing?
>
>
> Inject "new warning" or "new. warning." into a content reader
> then try "new" followed by "warning". You'll understand the
> difference.

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".

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";
}

~TJ
Received on Thursday, 6 November 2014 01:30:10 UTC

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