[Webkit-unassigned] [Bug 86316] zero timeout is needed to use webkit transition

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 14 15:31:49 PDT 2012


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


Dean Jackson <dino at apple.com> changed:

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




--- Comment #1 from Dean Jackson <dino at apple.com>  2012-05-14 15:30:53 PST ---
The issue here is that you are trying to run a transition at the same time you are moving from display: none to display: block. The way the style system works is that even though you have left: 0 when you're display: none, the style isn't evaluated until it needs to render it (which is done in the same execution cycle as you set left:200px). Hence, nothing happens.

However, when you split those two operations it works. First you set display to be block. We calculate the style of left:0. Then after a 0 timeout you set left to 200px and we transition. Unfortunately this is the way things work.

There is a spec bug open at W3C about transitioning around display: none. We'll follow what gets resolved there.

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