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

text: dy attribute on (parents of) nested tspans is wrong #1548

Closed
HackbrettXXX opened this issue Nov 2, 2021 · 0 comments
Closed

text: dy attribute on (parents of) nested tspans is wrong #1548

HackbrettXXX opened this issue Nov 2, 2021 · 0 comments

Comments

@HackbrettXXX
Copy link
Contributor

Consider this SVG:

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" width="200" height="200">
  <text y="10">
    <tspan x="0" dy="10">toplevel tspan</tspan>
    <tspan x="0" dy="20">
      <tspan>dy on parent</tspan>
    </tspan>
    <tspan>
      <tspan x="0" dy="20">dy on child</tspan>
    </tspan>
  </text>
</svg>

Canvg doesn't render the nested tspans correctly:
image

Can be reproduced here: https://jsfiddle.net/gd16q7eh/

HackbrettXXX added a commit to HackbrettXXX/canvg that referenced this issue Dec 8, 2021
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

1 participant