W3C home > Mailing lists > Public > www-style@w3.org > April 2009

Re: [Proposal] CSS 'tooltip' Property

From: François REMY <fremycompany_pub@yahoo.fr>
Date: Mon, 13 Apr 2009 15:06:05 +0200
Message-ID: <9CB0F465D9144F9187B6E099F1920023@FREMYCOMPANY>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: "CSS 3 W3C Group" <www-style@w3.org>
From: "Tab Atkins Jr." <jackalmage@gmail.com>
> On Mon, Apr 13, 2009 at 5:29 AM, François REMY
> <fremycompany_pub@yahoo.fr> wrote:
>> This property should have the same effect as the 'title' attribute on 
>> documents.
>> I propose that because I just have seen that there's no way to emulate 
>> this
>> attribute in CSS.
>> What do you think about it ?
> How would it work?  I assume something like:
> foo { tooltip: "I'm a popup!  Sort of."; }
> Is this correct?

Yes, it's how the title attribute works (with a string).
But maybe we can have more options in CSS by adding keywords.

Some ideas we can evaluate :

    [follow-mouse / keep-position (default)]? : Say if the tooltip follow 
the mouse (moves at the same time the mouse moves) or if it stay static 
(normal behavior of a tooltip)

    [<length> <length> | auto (default)]? : Position of the tooltip 
relatively to the mouse; negative length are computed as 0px.


Received on Monday, 13 April 2009 13:06:43 UTC

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