WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
120693
mysite1920
scrollTop/scrollLeft, window.scroll(x, y) method doesn't work on refreshing the page
https://bugs.webkit.org/show_bug.cgi?id=120693
Summary
scrollTop/scrollLeft, window.scroll(x, y) method doesn't work on refreshing t...
ashish
Reported
2013-09-04 12:45:41 PDT
In chrome 29+, the Element.scrollTop/scrollLeft and window.scroll(x, y) method doesn't give live view (on refreshing the page) when I write them in text editor and invoke from there. Whereas, in console window, it works (except on document.documentElement). Here are some test cases: // In text editor window.scroll(0, 200); // Doesn't work document.documentElement.scrollTop; // 0 document.body.scrollTop; // 0 document.body.scrollTop = 500; // // In console window document.body.scrollTop = 200; // Works // and all other works too... It doesn't work when I refresh the page. However when I completely load the page by pressing enter on the url bar, then it works.
Attachments
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug