Skip to content

IntersectionObserver does not work for SVG elements #223

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

Closed
nikkwong opened this issue Jun 28, 2017 · 4 comments
Closed

IntersectionObserver does not work for SVG elements #223

nikkwong opened this issue Jun 28, 2017 · 4 comments

Comments

@nikkwong
Copy link

Please see the following fiddle ->

https://jsfiddle.net/yk58mnb2/1/

Kindly take a look. Basically, an intersectionEvent for which a rect element (inside a SVG) is the targetElement is reporting isIntersecting as false, where it should be true.

Please advise. Thank you!

@szager-chromium
Copy link
Collaborator

Are you using the polyfill, or are you using a particular browser's native implementation?

@nikkwong
Copy link
Author

nikkwong commented Jun 28, 2017

Good point—I've only tried in Chrome, so it's not polyfilled. Thanks for the response.

@szager-chromium
Copy link
Collaborator

I'm pretty sure Chrome's implementation has problems handling svg. If you don't mind, please file a bug at crbug.com.

@nikkwong
Copy link
Author

Ok, thanks

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