Skip to content

Commit

Permalink
Fix thresholds definition to match browsers.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
emilio committed Oct 3, 2023
1 parent 33a6211 commit e1c3797
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -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].
</div>

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.
Expand Down

0 comments on commit e1c3797

Please sign in to comment.