W3C home > Mailing lists > Public > www-style@w3.org > December 2011

Re: [css3-transitions] Transitions from display:none

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 14 Dec 2011 13:18:09 -0500
Message-ID: <4EE8E861.8080305@mit.edu>
To: www-style@w3.org
On 12/14/11 10:47 AM, Tab Atkins Jr. wrote:
> Right; I understood your meaning.  My point was that, if
> 'display:none' prevents a transition from starting, then it *always*
> prevents a transition from starting.  Having it as part of the start
> state should suppress everything, because the "is the element
> 'display:none' at this point?" check succeeds.  There is no situation
> where 'display' switches from the start-state to the end-state,
> followed by 'margin' (or anything else) switching from the start-state
> to the end-state.  There's just a big bag of properties that change at
> the same time.

In actual implementations, you can have a situation where "display" 
switches from the start-state to the end-state but 'margin' doesn't do 
anything at all because the computation of its value is lazy (and in 
particular, it had no start-state, and may not have an end-state).

Just fyi.

-Boris
Received on Wednesday, 14 December 2011 18:24:09 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:47 GMT