W3C home > Mailing lists > Public > www-style@w3.org > March 2004

Re: @viewport at-rule and 'title' (was Re: [css3] :viewport pseudo-class)

From: Ernest Cline <ernestcline@mindspring.com>
Date: Tue, 9 Mar 2004 19:19:17 -0500
Message-ID: <410-2200433100191793@mindspring.com>
To: "Anne van Kesteren (fora)" <fora@annevankesteren.nl>, www-style@w3.org

> [Original Message]
> From: Anne van Kesteren (fora) <fora@annevankesteren.nl>
>   Ernest Cline wrote:
> >Actually, if CSS ever does so, ::tooltip or ::title would be more
> >appropriate.  After all each element can have its own tooltip,
> >so a pseudo-element would seem to be appropriate.
> >
> >[alt]::tooltip {content:attr(alt)}
> >[title]::tooltip {content:attr(title)}
> >
> The [alt] is a joke, right?
> I'm not sure if you want that people can create different tooltips in 
> the same document, but that should probably be the author's choice.

Nope.  Not a joke.  All that pair of rules would do is if an element has
a title attribute, use it create the tooltip and if not then it would try to
use the alt attribute.  I was making no comment on the desirability
of this method. merely showing how the choice that is uses by
some UAs (including IE) could be expressed in CSS if there
was a ::tooltip pseudo-element
Received on Tuesday, 9 March 2004 19:19:20 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:12 UTC