[Webkit-unassigned] [Bug 200776] New: IntersectionObserverEntry#intersectionRatio can be larger than 1
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Aug 15 11:18:14 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=200776
Bug ID: 200776
Summary: IntersectionObserverEntry#intersectionRatio can be
larger than 1
Product: WebKit
Version: Safari Technology Preview
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Layout and Rendering
Assignee: webkit-unassigned at lists.webkit.org
Reporter: timdream at gmail.com
CC: bfulgham at webkit.org, simon.fraser at apple.com,
zalan at apple.com
Created attachment 376398
--> https://bugs.webkit.org/attachment.cgi?id=376398&action=review
test case
STR: Load the minimal test case. the callback will put the intersectionRatio on the page.
Expected: The intersectionRatio should be exactly 1 in this case because the element is entirely in the viewport.
Actual: It's 1.0270270109176636.
The spec states it should be a number between 0 and 1. https://w3c.github.io/IntersectionObserver/#dom-intersectionobserverentry-intersectionratio
This is also reproducible on Chrome but not Firefox.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190815/0f121ee2/attachment.html>
More information about the webkit-unassigned
mailing list