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

Property Stroke-linecap="round" together with stroke-dasharray does not result in rounded dash elements #191

Closed
gvheertum opened this issue Sep 8, 2015 · 0 comments · Fixed by #396
Labels

Comments

@gvheertum
Copy link
Member

When rendering a line with a stroke-dasharray and a rounded linecap the SVG parser does not round the dash-parts of the line. The SVG in the browser is rendered with rounded elements, but the render of the SVG library does not, it only rounds the first element.

The svg code used for this test is:

<svg height="1000" width="1000" xmlns="http://www.w3.org/2000/svg">
  <g fill="none" stroke="black" stroke-width="4">
    <path stroke-dasharray="20,60" d="M5 40 l215 0" stroke-width="20" stroke-linecap="round"  />
    <path stroke-dasharray="20,60" d="M5 80 l215 0" style="stroke-width: 20; stroke-linecap: round" />
  </g>
</svg>

image

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

Successfully merging a pull request may close this issue.

2 participants