Bug 17306 - Transitions between styles that have different transition-* properties behave inconsistently
Summary: Transitions between styles that have different transition-* properties behave...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2008-02-10 23:07 PST by mitz
Modified: 2008-02-15 13:09 PST (History)
1 user (show)

See Also:


Attachments
Test case (1.99 KB, text/html)
2008-02-10 23:07 PST, mitz
no flags Details
Patch, including tedious manual test (7.08 KB, patch)
2008-02-13 18:38 PST, mitz
hyatt: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2008-02-10 23:07:21 PST
Transitions between styles that have different transition properties behave inconsistently: the transitioning properties, the durations and the timing functions are determined by the first target style that specifies a transition, and remain in effect for all subsequent transitions regardless of what they specify. The exception is transitions to a style that does not specify transitions, which resets everything.

The attached test case describes the expected behavior according to the rule that the "from" style determines the transition properties. That rule is my interpretation of the proposed spec. However it might make more sense for the "target" style to determine the transition. The latter rule is also a little easier to implement.
Comment 1 mitz 2008-02-10 23:07:49 PST
Created attachment 19058 [details]
Test case
Comment 2 mitz 2008-02-12 10:53:19 PST
<rdar://problem/5737923>
Comment 3 mitz 2008-02-13 18:38:37 PST
Created attachment 19117 [details]
Patch, including tedious manual test
Comment 4 Dave Hyatt 2008-02-15 12:04:06 PST
Comment on attachment 19117 [details]
Patch, including tedious manual test

r=me
Comment 5 mitz 2008-02-15 13:09:02 PST
Fixed in <http://trac.webkit.org/projects/webkit/changeset/30319>.