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

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 UTC