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

> 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