I've found that classic MDN formula to check if content has been scrolled to the bottom
element.scrollHeight - element.scrollTop === element.clientHeight
doesn't work for all cases any more. For example if you change the scale of content to something bigger than 100% for the demo page on MDN you will not get the right result. This happens because now browsers use subpixel precision on elements. Particularly scrollTop for not 100% scale is fractional value now. Actually the problem happens because of === sign in the formula above.
So the simplest but still reliable solution is wanted.