Bug 58781 - CSS transition not performed when style is changed if javascript
Summary: CSS transition not performed when style is changed if javascript
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.6
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-18 06:55 PDT by scraciun
Modified: 2011-06-08 20:54 PDT (History)
2 users (show)

See Also:


Attachments
Reproducible test case (994 bytes, text/html)
2011-04-18 06:56 PDT, scraciun
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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?