IntersectionObserver Document Root

Allow the IntersectionObserver constructor to take a Document as the 'root' argument, causing intersections to be calculated against the scrolling viewport of the document.

This is primarily targeted towards observers running in an iframe; prior to this feature, there was no way to measure intersection with the scrolling viewport of the iframe's document.


Editor's draft

Status in Chromium


Enabled by default (tracking bug) in:

  • Chrome for desktop release 81

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • No public signals
  • No public signals
  • No public signals
  • Positive


Intent to Prototype url

Intent to Prototype thread

Last updated on 2020-02-10