Re: [cssom-view] behavior of document.body.scrollTop

On Wed, 09 Oct 2013 13:17:10 +0200, Mike Sherov <mike.sherov@gmail.com>  
wrote:

>> If the body element is scrollable, why shouldn't you scroll it?
>>
>> http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2558
>>
>> Gecko does this, and it matches the spec, AFAICT.
>>
>> Blink appears to scroll the viewport, but that's not what the spec says.
>
> I see. The difference being that in step 4 & 5, scroll() is invoked,
> which scrolls the viewport, whereas in step 6, the body element itself
> is scrolled (but only if it has vertical overflow, obviously). Am I
> understanding that correctly?

Yep.


> Thanks for clearing that up. I'll forward this along back to the Blink  
> team.

cheers
-- 
Simon Pieters
Opera Software

Received on Wednesday, 9 October 2013 11:27:11 UTC