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

Re: [css-ui] text-overflow: ellipsis and user agent tooltips

From: Daniel Trebbien <dtrebbien@gmail.com>
Date: Tue, 9 Apr 2013 16:31:41 -0400
Cc: www-style list <www-style@w3.org>
Message-Id: <813CDD23-C200-460C-B74C-DC02DF43ACD6@gmail.com>
To: Philip Walton <philip@philipwalton.com>
On Apr 1, 2013, at 8:59 PM, Philip Walton wrote:

> I noticed today that Safari 6 and Webkit Nightly (but not Chrome) show a native browser tooltip when a user hovers over any text that has been truncated via the `text-overflow: ellipsis` declaration. The tooltip that appears is the same as the tooltip that appears for elements with a `title` attribute.
> I looked at the current draft of the spec [1] and didn't see any mention of what user agents should or should not do in this situation.
> I don't know if this has been discussed here before, but perhaps it's worth being explicit about the desired behavior. Currently, if you display your own JavaScript tooltip in these cases, your Safari viewers will see two tooltips.
> [1] http://dev.w3.org/csswg/css-ui/#text-overflow

I am hoping that the spec can be clarified/extended on this point.  I hit this issue today and filed WebKit Bug 114304 to ask for a way to disable the native tooltip in favor of a JavaScript tooltip.
Received on Tuesday, 9 April 2013 20:32:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:28 UTC