It's a bug in the graphics engine of Firefox, but also partially a bug in Lion. See, every window in Lion has this rounded edge. Firefox using GPU likely picks up a square, disregard the round edge, and push the page up when you try to scroll down. The end result is that there is nothing to display there, and then it draws that weird black "pad" thing. But it re-renders itself occasionally when the CPU is used instead of the GPU, thus correcting the problem.
I'd think a beta version of Firefox should fix that bug.