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

Re: [css3-transitions] transitioning to/from auto value

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 28 Apr 2010 13:14:54 -0400
Message-ID: <4BD86D0E.8040303@mit.edu>
To: Perry Smith <pedzsan@gmail.com>
CC: www-style list <www-style@w3.org>
On 4/28/10 1:07 PM, Perry Smith wrote:
>>    var div = document.getElementById("x");
>>    div.style.height = "auto";
>>    div.style.width = "200px";
>>
>> What height should the div transition to and why?  Note that in current UAs those two style changes can be processed in arbitrary order; the page can't detect the difference.
>
> I feel stupid... sorry.  But I don't understand.  The UA has to figure out what the height is even when there is no transition for height.  Call this height N.  Then with the transition, isn't the final height still N ?

Yes, but the height _transitioned_ to is not necessarily the same as the 
final height in the proposals that are being bandied about here.  It's 
just a guess based on a snapshot of the layout taken at some point in 
time.  The immediate question that arises is what point in time.

> I thought you were worried about something much more complicated like if the element above is changing its height, perhaps also with a transition, at the same time the div element is changing its height with a transition too.

Nah, so far the proposals are pretty fail-ful in the simple cases, so I 
haven't even bothered to think about the complicated ones yet.  ;)

-Boris
Received on Wednesday, 28 April 2010 17:15:29 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:26 GMT