Bug 114012 - scrollTop position resets when changing the DOM.
Summary: scrollTop position resets when changing the DOM.
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: All Unspecified
: P2 Normal
Assignee: Nobody
URL: http://jsfiddle.net/PRLQx/8/
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-05 01:38 PDT by Alex Ladyga
Modified: 2013-04-05 10:23 PDT (History)
0 users

See Also:


Attachments
Failing Test (4.48 KB, text/html)
2013-04-05 01:38 PDT, Alex Ladyga
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Ladyga 2013-04-05 01:38:29 PDT
Created attachment 196599 [details]
Failing Test

If an element with overflow: auto; css property ( element A ) placed inside an element with display: -webkit-box; ( element B ) the scrollTop property of the scrolled element A resets to 0 if the DOM is changed inside element B.

I see this bug on the latest nightly build of WebKit ( WebKit-SVN-r147708 ) also latest Chrome, Safari 6.0.3 and Safari on iOS 6.1.2.

Here's the failing test http://jsfiddle.net/PRLQx/8/ .

Also I attached the html with a test.