Bug 58781

Summary: CSS transition not performed when style is changed if javascript
Product: WebKit Reporter: scraciun
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED ---    
Severity: Normal CC: shanestephens, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.6   
Attachments:
Description Flags
Reproducible test case none

Description scraciun 2011-04-18 06:55:41 PDT
On a programatically generated node, if the style is set in javascript to, say S1 and then immediately changed to another (say S2), there is no transition performed (though there is a transition associated to the style). There are two workarounds: 
1. change the style inside a function called via setTimeout
2. Force a layout (for instance by querying a computed property such as clientWidth).
Comment 1 scraciun 2011-04-18 06:56:49 PDT
Created attachment 90027 [details]
Reproducible test case
Comment 2 Simon Fraser (smfr) 2011-04-18 14:51:37 PDT
This is a dup.
Comment 3 Shane Stephens 2011-06-08 20:54:36 PDT
Is this actually a bug?  I thought that this was pretty much expected based around the way transitions worked?