IntersectionObserver.idl 596 B

12345678910111213141516171819202122
  1. [Exposed=(Window)]
  2. interface IntersectionObserver {
  3. // FIXME: Should be: IntersectionObserverCallback
  4. constructor(any callback, optional IntersectionObserverInit options = {});
  5. undefined observe(Element target);
  6. undefined unobserve(Element target);
  7. undefined disconnect();
  8. // FIXME:
  9. // sequence<IntersectionObserverEntry> takeRecords();
  10. };
  11. dictionary IntersectionObserverInit {
  12. // FIXME: Should be: (Element or Document)?
  13. Node? root = null;
  14. DOMString rootMargin = "0px";
  15. // FIXME: Should be: (double or sequence<double>)
  16. any threshold = 0;
  17. };