Skip to content

Commit e1c3797

Browse files
committed
Fix thresholds definition to match browsers.
web-platform-tests/wpt@8c0296b 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.
1 parent 33a6211 commit e1c3797

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

index.bs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,8 @@ interface IntersectionObserver {
303303
of an observed target. Notifications for a target are generated when any
304304
of the thresholds are crossed for that target.
305305
If no |options|.{{IntersectionObserverInit/threshold}} was provided to the
306-
{{IntersectionObserver}} constructor, the value of this attribute will be [0].
306+
{{IntersectionObserver}} constructor, or the sequence is empty, the value
307+
of this attribute will be [0].
307308
</div>
308309

309310
An {{Element}} is defined as having a <dfn for="IntersectionObserver">content clip</dfn> if its computed style has <a>overflow properties</a> that cause its content to be clipped to the element's padding edge.

0 commit comments

Comments
 (0)