New issue
Advanced search Search tips

Issue 602915 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: May 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

SVG textpath: text doesn't align with path after the path is moved or changed

Reported by kirupaka...@gmail.com, Apr 13 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:
     Safari: 9 FAIL
    Firefox: 43 OK
         IE: 11 OK

What steps will reproduce the problem?
(1) Create a SVG path element, a text element and a textPath element inside text element.

(2) Give the id of the path element to textpath href attribute

(3) Move the path element using javascript dynamically

code:
<path class="link" id="link9" stroke="black" stroke-width="1" d="M923.2823317513395,501.5406454926744L 1353.501581829128, 494.8002593430948" marker-end="url(#arrowhead)"></path>

<text class="label-text" id="text9" text-anchor="middle" dy="-2" font-size="10"><textPath startOffset="50%" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#link9">Backed up by</textPath></text>

Modify d attribute of path using js. Issue should occur.


What is the expected result?
text should be aligned with the path (in the new path position)

What happens instead?
text appears in the old position

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

I created a force layout using d3.js. Encountered this problem. Nothing wrong with d3 as it works fine in firefox and ie.
 
issuechrome.png
15.9 KB View Download
Found issue in Chrome Version 49.0.2623.112m

Comment 2 by f...@opera.com, Apr 13 2016

Components: Blink>SVG
Labels: Needs-Feedback
I tried to reproduce this: https://jsfiddle.net/fa5cyuLs/1/
but that doesn't seem to do it. If you are able to tweak the fiddle to make it reproduce the issue, then please do.
Please close it. Bug in my code only. Sorry.
Project Member

Comment 4 by sheriffbot@chromium.org, May 10 2016

Labels: -Needs-Feedback Needs-Review
Owner: f...@opera.com
Thank you for providing more feedback. Adding requester "fs@opera.com" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 5 by f...@opera.com, May 10 2016

Owner: ----
Status: WontFix (was: Unconfirmed)
Thanks for checking! (And for filing too, even if that sounds weird to say.)

Closing.

Sign in to add a comment