w3c / IntersectionObserver

Intersection Observer
https://www.w3.org/TR/intersection-observer/
Other
3.62k stars 523 forks source link

Rounding polyfill intersection ratio to 3 decimals #325

Closed ShakMR closed 6 years ago

ShakMR commented 6 years ago

In the intersection observer draft, it talks about threshold as a ratio using examples of 1 decimal only. I thought of 3 decimals as I normally think on the intersection ratio as a percentage of the area so we can match thresholds up to 3 decimals (or percentages up to 1 decimal).

https://github.com/w3c/IntersectionObserver/issues/324

dontcallmedom commented 6 years ago

Marked as non substantive for IPR from ash-nazg.