Re: animate/transition height to/from auto

On Wed, 14 Nov 2012 00:41:33 +0100, Rik Cabanier <cabanier@gmail.com>  
wrote:

>> 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.
>>
>
> Can you elaborate?
> 'auto' becomes a value in the computed style

As http://www.w3.org/TR/CSS21/visudet.html#the-height-property states, the  
computed value is "the percentage or 'auto' (see prose under <percentage>)  
or the absolute length".

Note that the definition of the term "computed value" changed from CSS 2.0  
to CSS 2.1, and CSSOM's getComputedStyle sometimes returns the used value.

-- 
Øyvind Stenhaug
Opera Software ASA

Received on Wednesday, 14 November 2012 11:13:00 UTC