Bug 16455 - SVG 1.2 Tooltip support
Summary: SVG 1.2 Tooltip support
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P4 Enhancement
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-15 12:42 PST by Andre-John Mas
Modified: 2014-04-04 04:38 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andre-John Mas 2007-12-15 12:42:04 PST
This an enhancement request for adding support for tooltips in SVG documents Mention of tooltips is made here:

http://www.w3.org/TR/2004/WD-SVG12-20041027/applications.html

I am not sure what the final resolution of this draft is though, though an example from this draft is outlined below:

  <circle cx="50" cy="50" r="25" fill="red" tooltip="enable">
    <title>The target area</title>
  </circle>


Currently Opera 9.5 has confirmed support for tooltips in SVG documents, though it shows tooltips without the requirement of the tooltip="enable" attribute.
Comment 1 Andre-John Mas 2007-12-15 12:45:59 PST
title change
Comment 2 Eric Seidel (no email) 2007-12-15 14:50:26 PST
This would be easy to do.  Currently we're only targeting SVG 1.1 however.
Comment 3 Jeff Schiller 2009-02-10 11:07:45 PST
Eric, can you clarify:

I believe the example:

 <circle>
   <title>...</title>
 </circle> 

is a valid SVG 1.1 example.  My belief is that the algorithm should go something like this:

- if an element is a <a> and has a xlink:title, then display that attr node value as the tooltip
- else if an element has a <title>, then display its text contents as its tooltip

Comment 4 Jeff Schiller 2009-02-10 11:09:09 PST
Ah, I'm sorry, I missed the spec link and the 'tooltip' attribute.  I redact my previous comment.
Comment 5 Helder Magalhães 2009-08-13 03:59:40 PDT
(In reply to comment #4)
> Ah, I'm sorry, I missed the spec link and the 'tooltip' attribute.

Yes, the URL should point to the "The tooltip property" section [1] directly. ;-)


[1] http://www.w3.org/TR/2004/WD-SVG12-20041027/applications.html#tooltip-property
Comment 6 Jeff Schiller 2009-11-05 11:44:39 PST
That spec is no longer valid (obsolete).

SVGT 1.2 became a recommendation and they specify tooltip as http://www.w3.org/TR/SVGTiny12/struct.html#uiTitleDescBehavior and recommend using ARIA role="tooltip"

Is this bug valid anymore?
Comment 7 Dirk Schulze 2014-04-04 04:38:52 PDT
(In reply to comment #6)
> That spec is no longer valid (obsolete).
> 
> SVGT 1.2 became a recommendation and they specify tooltip as http://www.w3.org/TR/SVGTiny12/struct.html#uiTitleDescBehavior and recommend using ARIA role="tooltip"
> 
> Is this bug valid anymore?

It is implemented.