Bug 95449

Summary: transition tweens calculate incorrectly when manipulating DOM and changing className
Product: WebKit Reporter: Onne Gorter <o.gorter>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED    
Severity: Normal    
Priority: P2    
Version: 525.x (Safari 3.2)   
Hardware: Mac (Intel)   
OS: OS X 10.7   
Attachments:
Description Flags
hit left/right and observe "holes" none

Onne Gorter
Reported 2012-08-30 05:48:54 PDT
Created attachment 161454 [details] hit left/right and observe "holes" If in the middle of an animation, and you add/remove DOM nodes, and set new endpoints, the animation tweens normally. if in the middle of an animation, and you change node className's, and set new endpoints, the animation tweens normally. But, if you manipulate the DOM *and* change some nodes className's, for those nodes, the positions for the new animation are off. See the attached testcase which emulates an endless scrolling list with an animation of 1 second. Just hit left/right in quick succession and observe the "holes". Turning off SET_FOCUS does not change classNames and the animation look continuous and without any holes. Turning off DOM_CHANGE does not add/remove nodes, and the animation looks continues (but you cannot go far ...). But both together cause "holes" to appear in the animation. Even setting the same classname on an element still has the this effect, what actually gets styled seems irrelevant to this bug. It is purely cosmetic, but it is in the way of some otherwise nice effects you can do with this.
Attachments
hit left/right and observe "holes" (3.73 KB, text/html)
2012-08-30 05:48 PDT, Onne Gorter
no flags
Note You need to log in before you can comment on or make changes to this bug.