New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 619073 link

Starred by 5 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Apr 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

SVG <use> does not copy title

Reported by mchlw...@gmail.com, Jun 10 2016

Issue description

<b>Chrome Version       : <Copy from: 'about:version'></b>
URLs (if applicable) :
Other browsers tested:
  Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
    Firefox:FAIL 34.0.5
         IE:OK 11.0.9

What steps will reproduce the problem?
(1) create any <symbol> or other element with a <title>element
(2) copy it via <use xlink:href> 
(3) Mouse over

What is the expected result?
Tooltips, via <title> element


What happens instead?
Nothing

Please provide any additional information below. Attach a screenshot if
possible.



 
sample.svg.txt
489 bytes View Download
Cc: tkonch...@chromium.org
Components: Blink>HTML
Labels: M-53 OS-Windows
Status: Untriaged (was: Unconfirmed)
Tested the same on win8.1 chrome version 51.0.2704.84 and canary - Tool tip not displayed on the grey color box

same is observed in Firefox as well.

IE displays the tool tip on both boxes

This is a non regression issue existing since M30 builds to latest canary
Confirming the issue for further inputs on this.
Components: -Blink>HTML Blink>SVG
I can reproduce this on Linux in 51.0.2704.84 (Official Build) (64-bit) (and Firefox 47.0--interesting coincidence.)
Status: Available (was: Untriaged)
Project Member

Comment 4 by sheriffbot@chromium.org, Jul 6 2016

Labels: -M-53 M-54 MovedFrom-53
Moving this nonessential bug to the next milestone.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
FYI, I'm investigating this bug.
Project Member

Comment 6 by bugdroid1@chromium.org, Mar 3 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/58b15addedd3cb872fedf1d7a9c88fce8c35e0de

commit 58b15addedd3cb872fedf1d7a9c88fce8c35e0de
Author: mrunal.kapade <mrunal.kapade@intel.com>
Date: Fri Mar 03 21:38:38 2017

Fix the way <title> is read under <use> shadow tree

Earlier there was no way <title> element could be read under <use> shadow
tree. By implementing title() override in SVGUseElement we return first <title> child under <use> if there is any.
Otherwise we return the first <title> child from the shadow tree instance under <use>.

BUG= 619073 

Review-Url: https://codereview.chromium.org/2706583002
Cr-Commit-Position: refs/heads/master@{#454683}

[add] https://crrev.com/58b15addedd3cb872fedf1d7a9c88fce8c35e0de/third_party/WebKit/LayoutTests/svg/dom/tooltip-title-with-use.html
[modify] https://crrev.com/58b15addedd3cb872fedf1d7a9c88fce8c35e0de/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
[modify] https://crrev.com/58b15addedd3cb872fedf1d7a9c88fce8c35e0de/third_party/WebKit/Source/core/svg/SVGUseElement.h

Comment 7 by f...@opera.com, Mar 7 2017

Labels: -OS-Windows
Owner: f...@opera.com
Status: Assigned (was: Available)
We went with only considering direct <title> children of the referenced element, to align somewhat with the name computation algorithm from the SVG AAM [1]. As such, "<title>derpy</title>" would need to be a direct child of <symbol> to be picked up as a tooltip.

[1] https://www.w3.org/TR/svg-aam-1.0/#mapping_additional_nd

(assigning this to myself as a proxy for mrunal.kapade)

Comment 8 by f...@opera.com, Mar 26 2017

Owner: mrunal.k...@intel.com
Cc: -tkonch...@chromium.org
Status: Fixed (was: Assigned)

Sign in to add a comment