1- callback IntersectionObserverCallback = void (sequence<IntersectionObserverEntry> entries, IntersectionObserver observer);
1+ callback IntersectionObserverCallback = undefined (sequence<IntersectionObserverEntry> entries, IntersectionObserver observer);
22
3- [Constructor(IntersectionObserverCallback callback, optional IntersectionObserverInit options),
4- Exposed=Window]
3+ [Exposed=Window]
54interface IntersectionObserver {
6- readonly attribute Element? root;
5+ constructor(IntersectionObserverCallback callback, optional IntersectionObserverInit options = {});
6+ readonly attribute (Element or Document)? root;
77 readonly attribute DOMString rootMargin;
88 readonly attribute FrozenArray<double> thresholds;
9- void observe(Element target);
10- void unobserve(Element target);
11- void disconnect();
9+ undefined observe(Element target);
10+ undefined unobserve(Element target);
11+ undefined disconnect();
1212 sequence<IntersectionObserverEntry> takeRecords();
1313};
1414
15- [Constructor(IntersectionObserverEntryInit intersectionObserverEntryInit) ]
15+ [Exposed=Window ]
1616interface IntersectionObserverEntry {
17+ constructor(IntersectionObserverEntryInit intersectionObserverEntryInit);
1718 readonly attribute DOMHighResTimeStamp time;
1819 readonly attribute DOMRectReadOnly? rootBounds;
1920 readonly attribute DOMRectReadOnly boundingClientRect;
@@ -34,7 +35,7 @@ dictionary IntersectionObserverEntryInit {
3435};
3536
3637dictionary IntersectionObserverInit {
37- Element? root = null;
38+ ( Element or Document) ? root = null;
3839 DOMString rootMargin = "0px";
3940 (double or sequence<double>) threshold = 0;
4041};
0 commit comments