w3c / IntersectionObserver

Intersection Observer
https://www.w3.org/TR/intersection-observer/
Other
3.62k stars 523 forks source link

Fixes Polyfill broken on Shadow DOM #326

Closed exunreal closed 6 years ago

exunreal commented 6 years ago

Fixes #303 Makes the Polyfill to take into account shadow parts of a DOM tree when iterating parent nodes.

siusin commented 6 years ago

Marked as non substantive for IPR from ash-nazg.

philipwalton commented 6 years ago

@exunreal does this solution address all three problems you outlined in https://github.com/w3c/IntersectionObserver/issues/303#issuecomment-430715991?

exunreal commented 6 years ago

@philipwalton Not really. It solves the combination of those conditions. If all three conditions are met - the issue occurs.

exunreal commented 6 years ago

@philipwalton I've made the requested change.