Re: CSS Transitions Feedback

On Wed, 14 Jan 2009 14:36:22 +0100, Lachlan Hunt  
<lachlan.hunt@lachy.id.au> wrote:
> You seem to have missed answering this question.
>
> To clarify the issue, consider this example:
>
> transition-property: border-width, color;
> transition-duration: 1s, 2s, 3s, 4s, 5s;
>
> The issue is whether the first duration specified applies to all four  
> border-*-width properties, or whether the first four durations specified  
> are applied to each of them in a given order.  In the first alternative,  
> color would have a duration of 2s and the last three durations would be  
> effectively ignored; in the second it would have a duration of 5s, with  
> the first 4 applying to the border widths.
>
> I spoke with Rune and he said the first alternative would be the most  
> sensible, in which case, the following 2 examples would be equivalent:
>
> 1)
> transition-property: border-width, color;
> transition-duration: 1s, 2s;
>
> 2)
> transition-property: border-top-width, border-right-width,  
> border-bottom-width, border-left-width, color;
> transition-duration: 1s, 1s, 1s, 1s, 2s;

I think we pretty much have to do it this way otherwise it creates  
problems down the line if we extend the border-width shorthand to be a  
shorthand for more properties.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Wednesday, 14 January 2009 13:44:40 UTC