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

pathSegTypeAsLetter property should not be lowercase "z" #12

Open
cuixiping opened this issue May 22, 2016 · 1 comment
Open

pathSegTypeAsLetter property should not be lowercase "z" #12

cuixiping opened this issue May 22, 2016 · 1 comment

Comments

@cuixiping
Copy link

pathSegTypeAsLetter property of a SVGPathSegClosePath object should always be uppercase "Z" (not lowercase "z") like web browsers does.

this.pathSegTypeAsLetter = typeAsLetter=='z'?'Z':typeAsLetter;

@progers
Copy link
Owner

progers commented May 23, 2016

Thank you for taking the time to file this.

You're absolutely right that this is a bug but I'm leaning towards keeping this bug for pragmatic reasons. Many (all?) folks are using pathseg.js to polyfill the path seg API for Chromium/Blink browsers that removed this feature, and it's helpful to have perfect compatibility with Blink and WebKit.

Maybe we could add a configuration option for blink/webkit compatibility mode vs standards mode or something like that?

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

2 participants