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

Re: [css4-ui] ::tooltip

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 11 Apr 2012 11:05:23 -0700
Message-ID: <CAAWBYDCqSD0MjdZghjGYVuuh=v4rhOXSLEX_qKk2xvQOqD4NJQ@mail.gmail.com>
To: liam@w3.org
Cc: Lea Verou <leaverou@gmail.com>, www-style list <www-style@w3.org>
On Tue, Apr 10, 2012 at 9:51 PM, Liam R E Quin <liam@w3.org> wrote:
> On Tue, 2012-04-10 at 19:53 -0700, Lea Verou wrote:
>> What advantages does this have over a ::tooltip pseudoelement?
>
> It might not, given other enhancements to "content", but the main
> advantage is making it clearer how to do more advanced formatting and
> internationalisation within tooltips. E.g. how would you use ::tooltip
> to include a fragment of MathML markup inside a tooltip?

Right now, tooltips can't contain MathML *anyway*, since they always
come from the @title attribute, which is string-valued.

If we have a tooltip pseudo, we can use Regions to move element content into it.

Anyway, I think this is a pretty reasonable idea, particularly if we
currently stick with the restriction that it only contains text.

~TJ
Received on Wednesday, 11 April 2012 18:06:16 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:52 GMT