Skip to content

Commit f0b51ad

Browse files
emiliomoz-wptsync-bot
authored andcommitted
Fix IntersectionObserverEntry.isIntersecting to match other browsers.
Note that no browser matches the spec (see w3c/IntersectionObserver#432), but that our behavior is reasonably close to them. So do this to match them. Differential Revision: https://phabricator.services.mozilla.com/D76603 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1611204 gecko-commit: 0dba6079675375c8934301b57a284a0988804441 gecko-integration-branch: autoland gecko-reviewers: mstange
1 parent 179d291 commit f0b51ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

intersection-observer/isIntersecting-threshold.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333

3434
assert_equals(entries.length, 1);
3535
assert_equals(entries[0].intersectionRatio, 1);
36-
assert_equals(entries[0].isIntersecting, true);
36+
// See https://github.com/w3c/IntersectionObserver/issues/432
37+
assert_equals(entries[0].isIntersecting, false);
3738
scroller.scrollTop = 50;
3839
}
3940

0 commit comments

Comments
 (0)