WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
114304
Provide a way to prevent tooltip containing the full text over truncated text
https://bugs.webkit.org/show_bug.cgi?id=114304
Summary
Provide a way to prevent tooltip containing the full text over truncated text
Daniel Trebbien
Reported
2013-04-09 13:21:19 PDT
Bug 66178
added an option to automatically show tooltips (with the full text) over text that is truncated via text-overflow:ellipsis. This option seems to have been recently enabled by default in Safari 6 and WebKit nightly (
r147999
built on 09 April 2013 tested), but not in Chrome 26.0.1410.63 or Chrome 28.0.1469.0 canary. An app that I am writing displays its own tooltip containing the full text if truncated. So, in Safari 6 and WebKit nightly, I get two tooltips containing the full text. This "two tooltip" issue has been mentioned on www-style recently as well:
http://lists.w3.org/Archives/Public/www-style/2013Apr/0013.html
Please provide an option to disable this tooltip so that I can use my JavaScript tooltip solution rather than WebKit's native tooltip, which in many cases is not as good as the JavaScript tooltip because the WebKit tooltip cannot be customized.
Attachments
Add attachment
proposed patch, testcase, etc.
mitz
Comment 1
2013-04-09 13:49:48 PDT
If the setting is on by default then that’s a bug.
Daniel Trebbien
Comment 2
2013-04-09 15:45:13 PDT
The following command: defaults read /Applications/Safari.app/Contents/Resources/Defaults.plist WebKitShowsToolTipOverTruncatedText shows that the default is TRUE (Safari 6.0.3, Mac OS 10.7.5).
Daniel Trebbien
Comment 3
2013-04-09 16:17:05 PDT
I found that changing the value of the WebKitShowsToolTipOverTruncatedText key to FALSE does not disable the tooltip. Instead, if I change the value of the com.apple.Safari.ContentPageGroupIdentifier.WebKit2ShowsToolTipOverTruncatedText key from TRUE (the default) to FALSE, then the native tooltip is disabled.
mitz
Comment 4
2013-04-09 16:35:20 PDT
(In reply to
comment #2
)
> The following command: > > defaults read /Applications/Safari.app/Contents/Resources/Defaults.plist WebKitShowsToolTipOverTruncatedText > > shows that the default is TRUE (Safari 6.0.3, Mac OS 10.7.5).
I see. These are Safari defaults, not WebKit’s. WebKit defaults (in both WebKit1 and WebKit2) to having this feature turned off.
mitz
Comment 5
2013-04-09 16:37:28 PDT
Just to clarify, by “JavaScript tooltip”, do you mean a DOM element styled to look like a tooltip or a native tooltip somehow triggered by JavaScript (how?)?
Daniel Trebbien
Comment 6
2013-04-10 04:47:09 PDT
(In reply to
comment #5
)
> Just to clarify, by “JavaScript tooltip”, do you mean a DOM element styled to look like a tooltip or a native tooltip somehow triggered by JavaScript (how?)?
I mean a DOM element styled to look like a tooltip.
Philip Walton
Comment 7
2013-04-10 10:09:45 PDT
I experienced this problem as well and sent a note to the www-style list to clarify the desired result in the spec. As far as I can tell, Webkit nightly and Safari 6 are the only browsers that show a tooltip for `overflow:ellipsis`. Anthony Ticknor put together this test case for me, perhaps it will be helpful:
http://jsfiddle.net/apticknor/kc444/
bugged.dev
Comment 8
2018-10-15 10:34:24 PDT
On 2013-04-09 this was confirmed as a bug by
mitz@webkit.org
Will this be getting fixed? It looks like it may have slipped through the cracks.
Alexey Proskuryakov
Comment 9
2022-04-05 12:56:02 PDT
***
Bug 238808
has been marked as a duplicate of this bug. ***
Woody Lee
Comment 10
2024-12-09 22:23:33 PST
Any progress with it? We want to use a customized-style tooltip instead of the native one.
vladgrynchyshyn
Comment 11
2025-01-14 04:20:11 PST
You can cover the original text with a transparent element to prevent the original tooltip from appearing. If left position of the custom tooltip match to the left of the text, just use part of the popup itself (make it transparent).
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug