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.
,
Apr 13 2016
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.
,
May 10 2016
Please close it. Bug in my code only. Sorry.
,
May 10 2016
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
,
May 10 2016
Thanks for checking! (And for filing too, even if that sounds weird to say.) Closing. |
||||
►
Sign in to add a comment |
||||
Comment 1 by kirupaka...@gmail.com
, Apr 13 2016