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

Polymer makes getScreenCTM() crash #351

Closed
jorgehatccrma opened this issue Nov 19, 2013 · 2 comments
Closed

Polymer makes getScreenCTM() crash #351

jorgehatccrma opened this issue Nov 19, 2013 · 2 comments
Assignees

Comments

@jorgehatccrma
Copy link

When including polymer in a web page, the SVGElement getScreenCTM() method crashes with the following stack trace:

TypeError {stack: "TypeError: Illegal invocation↵    at b.<anonymous>…auser/libs/polymer.min.js:32:25185)"}
 "TypeError: Illegal invocation
    at b.<anonymous> (http://localhost/~auser/webCompTest.html:20:27)
    at v (http://localhost/~auser/libs/polymer.min.js:32:26221)
    at t (http://localhost/~auser/libs/polymer.min.js:32:25576)
    at r (http://localhost/~auser/libs/polymer.min.js:32:25321)
    at SVGRectElement.q (http://localhost/~auser/libs/polymer.min.js:32:25185)" polymer.min.js:32

I'm running Google Chrome 31.0.1650.48 on Mac OS X 10.7.5.

The bug can be reproduced with this gist. If the offending line (line 6) is commented out, the code works ok, but if polymer is included (even without "using it"), the code crashes with the afore mentioned trace.

@dfreedm
Copy link
Member

dfreedm commented Nov 22, 2013

@arv This looks like a ShadowDOM Polyfill issue.

@dfreedm
Copy link
Member

dfreedm commented Aug 12, 2014

Works for me

@dfreedm dfreedm closed this as completed Aug 12, 2014
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