mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-02 04:17:17 +02:00
LibWeb: Use the specification defined types in IntersectionObserverInit
This commit is contained in:
@@ -13,9 +13,9 @@
|
||||
namespace Web::IntersectionObserver {
|
||||
|
||||
struct IntersectionObserverInit {
|
||||
DOM::Node* root { nullptr };
|
||||
Optional<Variant<NonnullRefPtr<DOM::Element>, NonnullRefPtr<DOM::Document>>> root;
|
||||
String root_margin { "0px"sv };
|
||||
JS::Value threshold { 0 };
|
||||
Variant<double, Vector<double>> threshold { 0 };
|
||||
};
|
||||
|
||||
// https://w3c.github.io/IntersectionObserver/#intersection-observer-interface
|
||||
|
||||
Reference in New Issue
Block a user