Closed samouri closed 3 years ago
open question: do we want to do feature detection for iframe viewport tracking and replace native with the polyfill if support is missing?
I'm leaning towards no and allowing consumers to detect it themselves. If they prefer the polyfill they can run delete InOb from window before running the polyfill.
I think this is really close now.
Darn. I believe I found a webkit bug.
Essentially, Chrome and FF ensure that rootBounds when root:document
are relative to the specified document (top is always 0). Safari gives the top based on current scroll position within the iframe.
Current status:
master
so I've ignored this.@dvoytenko: PTAL
- Chrome: A different newly introduced test fails. Chrome is allowing for cross-document tracking which is explicitly against spec right now.
Can we link the crbug issue here as well?
summary Implements iframe viewport tracking for the polyfill, as described in https://github.com/w3c/IntersectionObserver/issues/372#issuecomment-575287674.
The following tasks have been completed:
Implementation already completed:
cc @dvoytenko