mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:37:35 +00:00
LibWeb: Add comments and missing items of various IDL files
This commit is contained in:
parent
fc46def2f5
commit
169d24ae2e
75 changed files with 233 additions and 129 deletions
|
@ -3,8 +3,10 @@
|
|||
#import <DOM/Node.idl>
|
||||
#import <IntersectionObserver/IntersectionObserverEntry.idl>
|
||||
|
||||
// https://w3c.github.io/IntersectionObserver/#intersection-observer-callback
|
||||
callback IntersectionObserverCallback = undefined (sequence<IntersectionObserverEntry> entries, IntersectionObserver observer);
|
||||
|
||||
// https://w3c.github.io/IntersectionObserver/#intersection-observer-interface
|
||||
[Exposed=(Window)]
|
||||
interface IntersectionObserver {
|
||||
constructor(IntersectionObserverCallback callback, optional IntersectionObserverInit options = {});
|
||||
|
@ -18,8 +20,10 @@ interface IntersectionObserver {
|
|||
sequence<IntersectionObserverEntry> takeRecords();
|
||||
};
|
||||
|
||||
// https://w3c.github.io/IntersectionObserver/#intersection-observer-init
|
||||
dictionary IntersectionObserverInit {
|
||||
(Element or Document)? root = null;
|
||||
DOMString rootMargin = "0px";
|
||||
// FIXME: DOMString scrollMargin = "0px";
|
||||
(double or sequence<double>) threshold = 0;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue