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

On Wed, Dec 14, 2011 at 10:18 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> 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.

Yup, which is a good reason why Transitions should act like Animations
and not start if the start-state was display:none.

~TJ

Received on Wednesday, 14 December 2011 18:50:11 UTC