#import #import #import #import callback IntersectionObserverCallback = undefined (sequence entries, IntersectionObserver observer); [Exposed=(Window), UseNewAKString] interface IntersectionObserver { constructor(IntersectionObserverCallback callback, optional IntersectionObserverInit options = {}); readonly attribute (Element or Document)? root; // FIXME: readonly attribute DOMString rootMargin; // FIXME: `sequence` should be `FrozenArray` readonly attribute sequence thresholds; undefined observe(Element target); undefined unobserve(Element target); undefined disconnect(); sequence takeRecords(); }; dictionary IntersectionObserverInit { (Element or Document)? root = null; DOMString rootMargin = "0px"; (double or sequence) threshold = 0; };