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

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

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Sun, 2 Oct 2011 00:47:45 +0000
To: Boris Zbarsky <bzbarsky@MIT.EDU>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <3C4041FF83E1E04A986B6DC50F01782936BC5D@TK5EX14MBXC296.redmond.corp.microsoft.com>

[Boris Zbarsky:]
> On 9/29/11 5:12 PM, Tab Atkins Jr. wrote:
> > I don't believe there are any issues.  This is clearly the correct
> > model.  There is no reason whatsoever for 'display' to have an effect
> > on what animations run.
> That requires UAs to always compute the value of animation properties on
> all elements, including in display:none subtrees.
> In particular, this requires performing selector matching and so forth on
> those elements, which is something UAs commonly optimize out now.
> I don't believe that this is desirable.  Unless I'm missing something
> here?
> -Boris
I would agree that from an implementation standpoint, this is not optimal.
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
Received on Sunday, 2 October 2011 00:48:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:05 UTC