New issue
Advanced search Search tips

Issue 770564 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 737633
Owner: ----
Closed: Oct 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression



Sign in to add a comment

document.body.scrollTop always returens 0.

Reported by elihot...@gmail.com, Oct 1 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

Steps to reproduce the problem:
1. execute window.scrollTo(0,100);
2. execute document.body.scrollTop

What is the expected behavior?
returns 100

What went wrong?
returns always 0.

Did this work before? Yes 

Chrome version: 61.0.3163.100  Channel: stable
OS Version: 10.0
Flash Version:
 

Comment 1 by woxxom@gmail.com, Oct 1 2017

Duplicate of  issue 737633 , apparently.

>This is done on purpose. To support interop with other browsers the scrolling element has become the documentElement in standards mode. In some cases it is the body element in quirks mode. See the intent to ship here: https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/X64Sg16RhT4/6ZiW7Dt8CAAJ

>Really you should be using document.scrollingElement to be told what the scrolling element is. This attribute was added for interop ability.
Mergedinto: 737633
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment