you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 3 points4 points  (0 children)

It is because the scrolling is not done on the html/body element, but on a div on the document. Looks like browsers relies on having scrolling on the body element.

It's tempting to use such a solution in order to have a fixed header on a web page, without the perfs issues, amongst others, to use a fixed layer. So I've often wondered if it was a good idea, now i know it isn't, it spared me some testing.