W3C home > Mailing lists > Public > www-style@w3.org > October 2013

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

From: Simon Pieters <simonp@opera.com>
Date: Wed, 09 Oct 2013 13:26:36 +0200
To: "Mike Sherov" <mike.sherov@gmail.com>
Cc: "www-style@w3.org" <www-style@w3.org>
Message-ID: <op.w4op2m0gidj3kv@simons-macbook-pro.local>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:02 UTC