mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Use the specification defined types in IntersectionObserverInit
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 16:20:12 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/6f7cab91a7 Pull-request: https://github.com/SerenityOS/serenity/pull/13424 Reviewed-by: https://github.com/alimpfard ✅
@@ -1,3 +1,4 @@
|
||||
#import <DOM/Document.idl>
|
||||
#import <DOM/Element.idl>
|
||||
#import <DOM/Node.idl>
|
||||
|
||||
@@ -16,11 +17,7 @@ interface IntersectionObserver {
|
||||
};
|
||||
|
||||
dictionary IntersectionObserverInit {
|
||||
// FIXME: Should be: (Element or Document)?
|
||||
Node? root = null;
|
||||
|
||||
(Element or Document)? root = null;
|
||||
DOMString rootMargin = "0px";
|
||||
|
||||
// FIXME: Should be: (double or sequence<double>)
|
||||
any threshold = 0;
|
||||
(double or sequence<double>) threshold = 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user