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

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

From: James Craig <jcraig@apple.com>
Date: Mon, 10 Nov 2014 19:48:15 -0800
Cc: www-style list <www-style@w3.org>, Tab Atkins <jackalmage@gmail.com>
Message-id: <4A9D91D7-7424-4F6B-908B-6FB84CD50B94@apple.com>
To: Alan Stearns <stearns@adobe.com>

> On Nov 10, 2014, at 1:31 PM, Alan Stearns <stearns@adobe.com> wrote:
> 
> how would this be best expressed?

Spitballing…

Favorite:
content: "\foo";
alt: attr(data-bar);

Alternates:

content: "\foo", alt(attr(data-bar));

content: "\foo", alt attr(data-bar); 

I think the syntax complexities of the alternates are more problematic than the possibility that alt might not cascade perfectly in some edge cases. Authors understand alt pretty well already; a new CSS property seems the most logical to me. 

I’m curious if Tab will weigh in since alt was his suggestion originally.
Received on Tuesday, 11 November 2014 03:48:46 UTC

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