W3C home > Mailing lists > Public > www-style@w3.org > February 2010

Re: CSS Transitions and height:auto

From: L. David Baron <dbaron@dbaron.org>
Date: Thu, 11 Feb 2010 17:53:42 -0500
To: Simon Pieters <simonp@opera.com>
Cc: "www-style@w3.org" <www-style@w3.org>
Message-ID: <20100211225342.GA12411@pickering.dbaron.org>
On Thursday 2010-02-11 13:40 +0100, Simon Pieters wrote:
> For expandable sections it makes perfect sense to transition between
> height:0 and height:auto. However, this doesn't work in current
> browsers and it seems the spec says it shouldn't work.
> Please specify how transitioning to and from height:auto should work.

One way (although not the only way) to specify this would be to
specify how 'auto' works inside calc expressions, such as:
  width: calc(0.7 * auto + 10px)
and then define transitions in at least some cases in terms of

This is how I would want to implement this, even if the spec didn't
allow 'auto' inside calc() expressions in style sheets.


L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Thursday, 11 February 2010 22:58:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:42 UTC