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?


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


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.4.0 : Friday, 25 March 2022 10:08:48 UTC