[Webkit-unassigned] [Bug 40811] -webkit-transition for opacity doesn't work properly on first pass when element display 'none' on page load

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 18 13:21:31 PDT 2010


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


Brent Fulgham <bfulgham at webkit.org> changed:

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




--- Comment #4 from Brent Fulgham <bfulgham at webkit.org>  2010-06-18 13:21:31 PST ---
As Simon pointed out, the feature is working as expected.
1.  In this case, the initially hidden element should have opacity set to 0.
2.  In the general case, the browser will factor out unnecessary transforms.  In this case, shifting from hidden to displayed + opacity change is compressed to just display and opacity = 1.  To correct, code like the following is needed:

window.setTimeout(function () {
                  elem.style.opacity = "1";
               }, 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