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

Re: animate/transition height to/from auto

From: Øyvind Stenhaug <oyvinds@opera.com>
Date: Wed, 14 Nov 2012 12:12:22 +0100
To: "Rik Cabanier" <cabanier@gmail.com>
Cc: "W3C CSS Mailing List" <www-style@w3.org>
Message-ID: <op.wnrf2wcgbunlto@oyvinds-desktop>
On Wed, 14 Nov 2012 00:41:33 +0100, Rik Cabanier <cabanier@gmail.com>  

>> 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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:05 UTC