Support iframe viewport tracking#465
Conversation
|
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. |
polyfill/intersection-observer.js
Outdated
| width: html.clientWidth || body.clientWidth, | ||
| bottom: html.clientHeight || body.clientHeight, | ||
| height: html.clientHeight || body.clientHeight | ||
| height: html.clientHeight || body.clientHeight, |
There was a problem hiding this comment.
Can't do this in IE :( No trailing commas. You might have to disable the prettier.
|
I think this is really close now. |
|
Darn. I believe I found a webkit bug. Essentially, Chrome and FF ensure that rootBounds when |
|
Current status:
@dvoytenko: PTAL |
Can we link the crbug issue here as well? |
summary
Implements iframe viewport tracking for the polyfill, as described in #372 (comment).
The following tasks have been completed:
Implementation already completed:
cc @dvoytenko