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

SVG: rx/ry equal to 0 for elliptical arc parameters not handled correctly. #1937

Closed
MewPurPur opened this issue Jan 26, 2024 · 0 comments
Closed
Assignees
Labels
bug Something isn't working svg SVG features

Comments

@MewPurPur
Copy link
Collaborator

MewPurPur commented Jan 26, 2024

https://www.w3.org/TR/SVG/paths.html#ArcOutOfRangeParameters

One of the SVG specifications:

If either rx or ry is 0, then this arc is treated as a straight line segment (a "lineto") joining the endpoints.

This is not handled correctly, instead, nothing is drawn. Example of a SVG with the issue:

<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11 8A0 2 0 005 8" fill="none" stroke="red" stroke-width="1.5" stroke-linecap="round"/></svg>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working svg SVG features
Projects
Status: Done 0.13
Development

No branches or pull requests

3 participants