W3C home > Mailing lists > Public > www-style@w3.org > November 2012

Re: animate/transition height to/from auto

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 13 Nov 2012 11:42:25 -0800
Message-ID: <CAAWBYDBZ+Q-tK+MDcrWosa5BsGset4URF961kjLUO4h3QRS2NQ@mail.gmail.com>
To: Behrang Saeedzadeh <behrangsa@gmail.com>
Cc: W3C CSS Mailing List <www-style@w3.org>
On Thu, Nov 8, 2012 at 4:46 PM, Behrang Saeedzadeh <behrangsa@gmail.com> wrote:
> Any plans to add this to the CSS spec? Right now, even with JS, it is not
> possible to do this elegantly.

Yes, it's a major lack in Transitions right now.  It's not easy to
fix, though - Transitions currently fire only when the computed value
changes, while 'auto' is translated into a length at used-value time.

It may be possible to special-case width/height, without too much
trouble, so that transitions to/from auto work as expected.  However,
this won't allow you to, say, transition the height of an element
which is 'auto' the entire time, but changes due to a child changing

Received on Tuesday, 13 November 2012 19:43:13 UTC

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