[Webkit-unassigned] [Bug 111718] Transition CSS added to DOM element uses previously removed class

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 7 16:03:45 PST 2013


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


Simon Fraser (smfr) <simon.fraser at apple.com> changed:

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




--- Comment #1 from Simon Fraser (smfr) <simon.fraser at apple.com>  2013-03-07 16:06:09 PST ---
This is expected behavior, and allowed by the transitions spec. CSS doesn't actually describe how and when styles are resolved, and most browsers batch style changes. That means that the removeClass('active') and addClass('all-transition') basically happen at the same time.

If you don't want this, you can force a layout between them (e.g. via body.offsetWidth), or put the second line inside a setTimeout(, 0).

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



More information about the webkit-unassigned mailing list