From e1c37975ea6072a5d9a5563dc9f85dd230b26f66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 2 Oct 2023 11:51:13 +0200 Subject: [PATCH] Fix thresholds definition to match browsers. https://github.com/web-platform-tests/wpt/commit/8c0296b50bf3974677e024c04d45b3ff8b0e801e tested that thresholds when provided empty is [0]. This is not in the spec, but is reasonable and I'm happy to change Firefox to match this, given both WebKit and Blink do that. --- index.bs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.bs b/index.bs index 28da17f..5285634 100644 --- a/index.bs +++ b/index.bs @@ -303,7 +303,8 @@ interface IntersectionObserver { of an observed target. Notifications for a target are generated when any of the thresholds are crossed for that target. If no |options|.{{IntersectionObserverInit/threshold}} was provided to the - {{IntersectionObserver}} constructor, the value of this attribute will be [0]. + {{IntersectionObserver}} constructor, or the sequence is empty, the value + of this attribute will be [0]. An {{Element}} is defined as having a content clip if its computed style has overflow properties that cause its content to be clipped to the element's padding edge.