From 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:47:29 +0200 Subject: Adding upstream version 115.8.0esr. Signed-off-by: Daniel Baumann --- .../tests/interfaces/intersection-observer.idl | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 testing/web-platform/tests/interfaces/intersection-observer.idl (limited to 'testing/web-platform/tests/interfaces/intersection-observer.idl') diff --git a/testing/web-platform/tests/interfaces/intersection-observer.idl b/testing/web-platform/tests/interfaces/intersection-observer.idl new file mode 100644 index 0000000000..52db1c4baa --- /dev/null +++ b/testing/web-platform/tests/interfaces/intersection-observer.idl @@ -0,0 +1,46 @@ +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Intersection Observer (https://w3c.github.io/IntersectionObserver/) + +callback IntersectionObserverCallback = undefined (sequence entries, IntersectionObserver observer); + +[Exposed=Window] +interface IntersectionObserver { + constructor(IntersectionObserverCallback callback, optional IntersectionObserverInit options = {}); + readonly attribute (Element or Document)? root; + readonly attribute DOMString rootMargin; + readonly attribute FrozenArray thresholds; + undefined observe(Element target); + undefined unobserve(Element target); + undefined disconnect(); + sequence takeRecords(); +}; + +[Exposed=Window] +interface IntersectionObserverEntry { + constructor(IntersectionObserverEntryInit intersectionObserverEntryInit); + readonly attribute DOMHighResTimeStamp time; + readonly attribute DOMRectReadOnly? rootBounds; + readonly attribute DOMRectReadOnly boundingClientRect; + readonly attribute DOMRectReadOnly intersectionRect; + readonly attribute boolean isIntersecting; + readonly attribute double intersectionRatio; + readonly attribute Element target; +}; + +dictionary IntersectionObserverEntryInit { + required DOMHighResTimeStamp time; + required DOMRectInit? rootBounds; + required DOMRectInit boundingClientRect; + required DOMRectInit intersectionRect; + required boolean isIntersecting; + required double intersectionRatio; + required Element target; +}; + +dictionary IntersectionObserverInit { + (Element or Document)? root = null; + DOMString rootMargin = "0px"; + (double or sequence) threshold = 0; +}; -- cgit v1.2.3