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

Re: [css-pseudo] How do you solve a problem like alt?

From: Liam R E Quin <liam@w3.org>
Date: Mon, 10 Nov 2014 18:14:32 -0500
To: Alan Stearns <stearns@adobe.com>
Cc: www-style list <www-style@w3.org>, James Craig <jcraig@apple.com>
Message-ID: <20141110181432.107e889d.liam@w3.org>
On Mon, 10 Nov 2014 21:31:14 +0000 Alan Stearns <stearns@adobe.com> wrote:

> A. An alt property. [...]
> 
> content: "\25BA";
> alt: "";

So the alt value would be used if \25BA wasn't available?

What if I had longer content that contained several characters, e.g. a Sanskrit name written using the Kharoṣṭhī script? If all but one characters are available I might prefer that over the fallback.

If all I want is a smiling cat face \u1F63C (😼) at the end of a sentence I might rather write,
  content: "Happy as a cat on a rug " alt("\u1F3C", "[purr]") " ....";

If I want to have an alternate image,

  background-image: fallback( url("cat.tiff"), url("cat.jpg"), "\u1F3C", "[cat]")
might be more useful, and might work better with border images too?

Should we take this to the HTML accessibility task force?

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Received on Monday, 10 November 2014 23:14:38 UTC

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