[Webkit-unassigned] [Bug 20132] CSS animation doesn't work with onclick="this.className='newClassName'" anymore

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 22 13:03:53 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=20132


hyatt at apple.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID




------- Comment #1 from hyatt at apple.com  2008-07-22 13:03 PDT -------
This is INVALID.

For a brief period in the nightlies we tried out a "source transition" model,
i.e., having the transitions in the "before style" determine how you
transition.  However, Safari 3.1 (and current nightlies) use a "destination
transition" model, i.e., having the transitions in the "after style" determine
how you transition.

Your example has the transitions defined only for one class and not for the
other.  Therefore in one direction the transition isn't going to apply.  If you
want the transition to apply in both directions, move it into a more global
rule that will stay in effect for both class names.  If you really did want the
transition to only be one-way, then move the transition rules into the other
class name rule.

We plan to clarify this in the spec.  The destination model makes more sense
mainly because it allows authors to set new transitions and a new destination
value using .style in JS and then have the transition go.  A source model would
not allow this and would force you to use setTimeout hacks.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list