Skip to content

Commit

Permalink
Update interfaces/intersection-observer.idl (#22649)
Browse files Browse the repository at this point in the history
  • Loading branch information
autofoolip authored Apr 2, 2020
1 parent e0ac68e commit a126834
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions interfaces/intersection-observer.idl
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

callback IntersectionObserverCallback = void (sequence<IntersectionObserverEntry> entries, IntersectionObserver observer);

[Constructor(IntersectionObserverCallback callback, optional IntersectionObserverInit options),
Exposed=Window]
[Exposed=Window]
interface IntersectionObserver {
constructor(IntersectionObserverCallback callback, optional IntersectionObserverInit options = {});
readonly attribute Node? root;
readonly attribute DOMString rootMargin;
readonly attribute FrozenArray<double> thresholds;
Expand All @@ -17,8 +17,9 @@ interface IntersectionObserver {
sequence<IntersectionObserverEntry> takeRecords();
};

[Constructor(IntersectionObserverEntryInit intersectionObserverEntryInit)]
[Exposed=Window]
interface IntersectionObserverEntry {
constructor(IntersectionObserverEntryInit intersectionObserverEntryInit);
readonly attribute DOMHighResTimeStamp time;
readonly attribute DOMRectReadOnly? rootBounds;
readonly attribute DOMRectReadOnly boundingClientRect;
Expand Down

0 comments on commit a126834

Please sign in to comment.