[Webkit-unassigned] [Bug 107288] Race condition when toggling classes disabling CSS transitions

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 18 08:57:27 PST 2013


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


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

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




--- Comment #1 from Simon Fraser (smfr) <simon.fraser at apple.com>  2013-01-18 08:59:14 PST ---
Style changes get batched by the browser (all browsers do this), so you can't do:

foo.style.bar = ....
foo.style.transition = 
foo.style.bar = ...

and expect that to work. The browser will only see the final styles.

There are a few workarounds. Use setTimeout(, 0) to do the final style change, or force layout by calling offsetWidth instead.

-- 
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