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

Implement IntersectionObserver polyfill for 3p iframe #720

Closed
cramforce opened this issue Oct 22, 2015 · 1 comment
Closed

Implement IntersectionObserver polyfill for 3p iframe #720

cramforce opened this issue Oct 22, 2015 · 1 comment
Assignees

Comments

@cramforce
Copy link
Member

Spec is here
http://rawgit.com/slightlyoff/IntersectionObserver/master/index.html
More info: https://github.com/slightlyoff/IntersectionObserver

  • The data would come from the parent iframe / AMP resource manager.
  • Only polyfill data we have easily available
  • Need to decide poll interval
  • Need to decide whether to actually polyfill OR just make a very similar API.
  • Probably the latter, exposed through a single object (no exposed constructor) in the frame: context.intersectionObserver
@cramforce cramforce self-assigned this Oct 22, 2015
@cramforce
Copy link
Member Author

Update ads/README.md when completed.

cramforce added a commit to cramforce/amphtml that referenced this issue Nov 10, 2015
…gely IntersectionObserver compatible change records of the ad's position in the container viewport.

Also makes the following advancements:
- 3p frames now check that the claimed origin of the parent is correct. This helps ads trust the parent.
- Adds tests for integration.js
- adds `3p-frame/listenOnce,postMessage`
- adds `rectIntersection` to layout-rect.js

Fixes ampproject#720
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants