Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong position for tspan elements in Chrome #1

Open
louisameline opened this issue Jun 17, 2016 · 2 comments
Open

Wrong position for tspan elements in Chrome #1

louisameline opened this issue Jun 17, 2016 · 2 comments

Comments

@louisameline
Copy link

Hello,

this is not an issue with your library, but an issue in Chrome: the coordinates are wrong for tspan, as getBBox returns the coordinates of the containing text element instead. Reported to the Chromium team here:

https://bugs.chromium.org/p/chromium/issues/detail?id=349835&q=tspan%20bbox&colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Component%20Status%20Owner%20Summary%20OS%20Modified

There seems to be a workaround, using other techniques. I thought I'd just mention it in case you wanted to include a fix for that in your library, but it's entirely up to you :) Thank you.

@fabswt
Copy link

fabswt commented May 1, 2020

FYI, it's fixed in Chromium 84.

Safari does have the issue though, filed a bug report here.

@Fuzzyma
Copy link
Member

Fuzzyma commented May 2, 2020

This plugin is obsolte with svg.js v3 (I think even in 2.x??). Just use rbox().
And yes, chrome only recently fixed this. I stumbled across exactly that issue a week ago because the fix is not in out in the wild yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants