From 247d925c84b4f53c569c31f8d99003da8dc2f9ee Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Mon, 28 Oct 2024 16:36:00 +0100 Subject: [PATCH] Add more keys to Intersection observer (#2052) --- features/intersection-observer.yml | 26 ++++++++++++++++++ features/intersection-observer.yml.dist | 35 +++++++++++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/features/intersection-observer.yml b/features/intersection-observer.yml index db7511e36ba..49eb65081df 100644 --- a/features/intersection-observer.yml +++ b/features/intersection-observer.yml @@ -1,4 +1,30 @@ name: Intersection observer description: The Intersection Observer API asynchronously observes changes in the intersection of a target element with an ancestor element or with a top-level document's viewport. spec: https://w3c.github.io/IntersectionObserver/ +status: + compute_from: api.IntersectionObserverEntry.isIntersecting caniuse: intersectionobserver +compat_features: + - api.IntersectionObserver + - api.IntersectionObserver.IntersectionObserver + - api.IntersectionObserver.IntersectionObserver.options_root_parameter_Document + - api.IntersectionObserver.delay + - api.IntersectionObserver.disconnect + - api.IntersectionObserver.observe + - api.IntersectionObserver.root + - api.IntersectionObserver.rootMargin + - api.IntersectionObserver.scrollMargin + - api.IntersectionObserver.takeRecords + - api.IntersectionObserver.thresholds + - api.IntersectionObserver.trackVisibility + - api.IntersectionObserver.unobserve + - api.IntersectionObserverEntry + - api.IntersectionObserverEntry.IntersectionObserverEntry + - api.IntersectionObserverEntry.boundingClientRect + - api.IntersectionObserverEntry.intersectionRatio + - api.IntersectionObserverEntry.intersectionRect + - api.IntersectionObserverEntry.isIntersecting + - api.IntersectionObserverEntry.isVisible + - api.IntersectionObserverEntry.rootBounds + - api.IntersectionObserverEntry.target + - api.IntersectionObserverEntry.time diff --git a/features/intersection-observer.yml.dist b/features/intersection-observer.yml.dist index 075f19cc782..ec0a59c82c2 100644 --- a/features/intersection-observer.yml.dist +++ b/features/intersection-observer.yml.dist @@ -67,3 +67,38 @@ compat_features: # safari: "12.1" # safari_ios: "12.2" - api.IntersectionObserverEntry.isIntersecting + + # baseline: high + # baseline_low_date: 2020-09-16 + # baseline_high_date: 2023-03-16 + # support: + # chrome: "81" + # chrome_android: "81" + # edge: "81" + # firefox: "76" + # firefox_android: "79" + # safari: "14" + # safari_ios: "14" + - api.IntersectionObserver.IntersectionObserver.options_root_parameter_Document + + # baseline: false + # support: + # chrome: "74" + # chrome_android: "74" + # edge: "79" + - api.IntersectionObserver.delay + - api.IntersectionObserver.trackVisibility + - api.IntersectionObserverEntry.isVisible + + # baseline: false + # support: + # chrome: "120" + # chrome_android: "120" + # edge: "120" + - api.IntersectionObserver.scrollMargin + + # baseline: false + # support: + # safari: "12.1" + # safari_ios: "12.2" + - api.IntersectionObserverEntry.IntersectionObserverEntry