<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>38198</bug_id>
          
          <creation_ts>2010-04-27 07:25:26 -0700</creation_ts>
          <short_desc>&lt;symbol&gt; tooltips not displayed</short_desc>
          <delta_ts>2010-04-27 10:11:39 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>SVG</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://upload.wikimedia.org/wikipedia/commons/5/50/Weather-icons.svg</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="jay">jay</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jeffschiller</cc>
    
    <cc>krit</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>217687</commentid>
    <comment_count>0</comment_count>
    <who name="jay">jay</who>
    <bug_when>2010-04-27 07:25:26 -0700</bug_when>
    <thetext>iirc 

in every case, where there is a title a tooltip should be raised.
in case of more than one, within an open element only the first is used.

furthermore and in particular, &lt;use&gt; can reference any named svg resource, ie does not require symbol, g or any other specific element.

there is no requirement or expectation that &lt;g&gt;** should be used to enclose titles.

**for the singular case where &lt;g&gt; is used, and a title is raised see:
https://bugs.webkit.org/show_bug.cgi?id=16854

there has been some debate, about hierarchies of titles, but that is not part of this  bug.

please check the specs as this is from my poor memory of 6 years ago, or more....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217698</commentid>
    <comment_count>1</comment_count>
    <who name="Jeff Schiller">jeffschiller</who>
    <bug_when>2010-04-27 07:35:20 -0700</bug_when>
    <thetext>Someone please update the following since the person who raised this did not follow instructions at https://bugs.webkit.org/show_bug.cgi?id=16854#c32

* Please update abstract/title to &quot;Symbol tooltips not being displayed&quot;

* Please clear the &quot;HasReduction&quot; keyword (there is no test case attached)

* Please clear the &quot;EasyFix&quot; keyword since this is not an easy fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217716</commentid>
    <comment_count>2</comment_count>
    <who name="jay">jay</who>
    <bug_when>2010-04-27 08:41:32 -0700</bug_when>
    <thetext>Jeff,

this bug does not relate to &lt;symbol&gt; however that is a testcase, and is in the URI given

apologies if this is not an easyfix, hard to guess, as the one fixed evidently was....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217721</commentid>
    <comment_count>3</comment_count>
    <who name="Jeff Schiller">jeffschiller</who>
    <bug_when>2010-04-27 08:47:13 -0700</bug_when>
    <thetext>Jonathan - please submit a reduced test case that demonstrates your problem in WebKit trunk.  Otherwise it is difficult to understand what you feel doesn&apos;t work.  As far as I know, the only thing that doesn&apos;t work is &lt;symbol&gt;.

Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217723</commentid>
    <comment_count>4</comment_count>
    <who name="jay">jay</who>
    <bug_when>2010-04-27 08:50:01 -0700</bug_when>
    <thetext>Jeff,

you intimated that &lt;g&gt; was needed, this is irrational, but doesn&apos;t suggest that everything else works,
rather the reverse...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217724</commentid>
    <comment_count>5</comment_count>
    <who name="Jeff Schiller">jeffschiller</who>
    <bug_when>2010-04-27 08:50:41 -0700</bug_when>
    <thetext>Jonathan - please submit a reduced test case that demonstrates your problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217731</commentid>
    <comment_count>6</comment_count>
    <who name="jay">jay</who>
    <bug_when>2010-04-27 09:09:51 -0700</bug_when>
    <thetext>Jeff, the test case is the URI,

your test case for the previous bug was not helpful, as explained, and you failed to indicate  that

&lt;defs&gt;
&lt;line id=&quot;sunny&quot; style=&quot;stroke-width:17;stroke:#f0f&quot; x1=&quot;22&quot; y1=&quot;75&quot; x2=&quot;139&quot; y2=&quot;75&quot;  &gt;
&lt;title&gt;line&lt;/title&gt;
&lt;/line&gt;
&lt;/defs&gt;
&lt;use xlink:href=&quot;#sunny&quot; x=&quot;33&quot; y=&quot;72&quot; /&gt;

was fixed, either in the comments, or testcase, 

it&apos;s not clear to me why symbol should be treated differently to g, and hence why this is not an easyfix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217733</commentid>
    <comment_count>7</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2010-04-27 09:17:45 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; Jeff, the test case is the URI,
&gt; 
&gt; your test case for the previous bug was not helpful, as explained, and you
&gt; failed to indicate  that

Jay,

this is not a way to talk to hard-working contributors.
The testcase is NOT THE URI. A reduced testcase is needed, as simple as possible.

&gt; &lt;defs&gt;
&gt; &lt;line id=&quot;sunny&quot; style=&quot;stroke-width:17;stroke:#f0f&quot; x1=&quot;22&quot; y1=&quot;75&quot; x2=&quot;139&quot;
&gt; y2=&quot;75&quot;  &gt;
&gt; &lt;title&gt;line&lt;/title&gt;
&gt; &lt;/line&gt;
&gt; &lt;/defs&gt;
&gt; &lt;use xlink:href=&quot;#sunny&quot; x=&quot;33&quot; y=&quot;72&quot; /&gt;
&gt; 
&gt; was fixed, either in the comments, or testcase, 

No one has time to look through complex testcases, you should reduce it, and upload it here.

&gt; 
&gt; it&apos;s not clear to me why symbol should be treated differently to g, and hence
&gt; why this is not an easyfix.
You have no understanding of our internals, so it&apos;s hard for you to judge what is hard to fix and what not. Upload a reduced testcase, and someone will be able to investigate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217735</commentid>
    <comment_count>8</comment_count>
    <who name="Jeff Schiller">jeffschiller</who>
    <bug_when>2010-04-27 09:22:46 -0700</bug_when>
    <thetext>You might want to read http://webkit.org/quality/reduction.html  The URL you have submitted is not a reduced test case - it is a Wikimedia commons-hosted file for showing weather symbols.  That file has 24 &lt;symbol&gt; elements and 18 &lt;use&gt; elements and no instructions on how to reproduce the problem you see.  Please remove HasReduction keyword if you are able.  

My test case for Bug 16854 https://bug-16854-attachments.webkit.org/attachment.cgi?id=53317 is concise, has instructions and demonstrates a variety of scenarios in which tooltips on SVG elements now work.

As I tried to state at https://bugs.webkit.org/show_bug.cgi?id=16854#c32, the only scenario that doesn&apos;t work is when the use references a &lt;symbol&gt; with a &lt;title&gt;.  Thus, I had to rework the Wikimedia file as I discussed as a demonstration of a workaround.

The details of why this doesn&apos;t work have nothing to do with the spec or users perceptions - they have to deal with the WebKit code.  The details I believe are that &lt;symbol&gt; is not treated as a visible element (as per spec).  As a consequence it is not iterated over when doing the hit-test for mouse hovering.  If I could have fixed this for 16854, I would have.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>