Skip to content

Commit 7fac8c0

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: 867528d1d35bdec48758f8aa899b0491d7ef10e5 gecko-integration-branch: autoland gecko-reviewers: mstange
1 parent 57a1624 commit 7fac8c0

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
@@ -43,7 +43,8 @@
4343
assert_equals(entries.length, 2);
4444
assert_true(entries[1].intersectionRatio >= 0.5 &&
4545
entries[1].intersectionRatio < 1);
46-
assert_equals(entries[1].isIntersecting, true);
46+
// See https://github.com/w3c/IntersectionObserver/issues/432
47+
assert_equals(entries[1].isIntersecting, false);
4748
scroller.scrollTop = 100;
4849
}
4950

0 commit comments

Comments
 (0)