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: Alan Stearns <stearns@adobe.com>
Date: Thu, 6 Nov 2014 14:57:03 +0000
To: "daniel.glazman@disruptive-innovations.com" <daniel.glazman@disruptive-innovations.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <D080CB75.21129%stearns@adobe.com>
On 11/6/14, 2:05 AM, "Daniel Glazman"
<daniel.glazman@disruptive-innovations.com> wrote:

>On 06/11/2014 08:46, Peter Linss wrote:
>
>> The problem with this is what if only one of the images loads? What is
>>the proper alternative representation?
>>
>> It would be better to include the alt text in an ‘image()’ function (or
>>equivalent), binding the alt text to the image it’s for:
>> .new.warning {
>> 	content: image(“new.jpg”, “new") image(“warning.jpg”, “warning”);
>> }
>
>Yes.

The problem I see with this idea is that image() is used in a lot of
places where alt text does not and should not apply. Tying alt text to
'content’ lets us scope the alt text application to where it actually has
an effect.

Thanks,

Alan

Received on Thursday, 6 November 2014 14:57:32 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:45 UTC