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

Re: [css3-animations] display:none, visibility:hidden and animations

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sat, 01 Oct 2011 21:19:10 -0400
Message-ID: <4E87BC0E.8040303@mit.edu>
To: Sylvain Galineau <sylvaing@microsoft.com>
CC: "www-style@w3.org" <www-style@w3.org>
On 10/1/11 8:47 PM, Sylvain Galineau wrote:
> I would agree that from an implementation standpoint, this is not optimal.

It's not optimal from an authoring standpoint either: it significantly 
increases the cost of having a bunch of display:none subtrees in your DOM.

> We should start with what behavior makes sense for authors, though. What do
> you want display:none to do to an element's animation, or one running on a child
> of that element ? Should it pause the animation ? Stop it ? Same question for
> visibility:hidden.

visibility:hidden shouldn't affect animations in any way, imho (e.g. if 
you're animating a width or height you can see the effect even if 

display:none is an interesting question.  My main concern is whether 
animations should _start_ on display:none elements.  Continuing them on 
such elements seems fine to me.

Would authors expect an animation to start on a display:none element 
before it's shown?

Received on Sunday, 2 October 2011 01:19:38 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:50 UTC