12345678910111213141516171819202122232425 |
- #import <DOM/Document.idl>
- #import <DOM/Element.idl>
- #import <DOM/Node.idl>
- #import <IntersectionObserver/IntersectionObserverEntry.idl>
- callback IntersectionObserverCallback = undefined (sequence<IntersectionObserverEntry> 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<double>` should be `FrozenArray<double>`
- readonly attribute sequence<double> thresholds;
- undefined observe(Element target);
- undefined unobserve(Element target);
- undefined disconnect();
- sequence<IntersectionObserverEntry> takeRecords();
- };
- dictionary IntersectionObserverInit {
- (Element or Document)? root = null;
- DOMString rootMargin = "0px";
- (double or sequence<double>) threshold = 0;
- };
|