Re: [spec-reviews] CSSOM View document.scrollingElement (#51)

This originally surfaced as a bug in jQuery/jQuery UI. IMO, scrollingElement is just another hack around the issue. The canonical, non-UA sniff, AFAIK, is to do `$html.scrollTop() || $body.scrollTop()`. The *problem* was that lots of people were using `$html.scrollTop() + $body.scrollTop()`, which is problematic when the body or the html element have `overflow: scroll;` applied.

---
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/spec-reviews/issues/51#issuecomment-93851170

Received on Thursday, 16 April 2015 22:12:44 UTC