mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 07:14:58 +00:00

NewAKString is effectively the default for any new IDL interface, so let's mark this as the default behavior. It also makes it much easier to figure out whatever interfaces are still left to port over to new AK String.
25 lines
977 B
Text
25 lines
977 B
Text
#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)]
|
|
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;
|
|
};
|