W3C home > Mailing lists > Public > www-style@w3.org > January 2009

Re: CSS Transitions Feedback

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 14 Jan 2009 14:43:50 +0100
To: "Lachlan Hunt" <lachlan.hunt@lachy.id.au>, "Dean Jackson" <dino@apple.com>
Cc: www-style@w3.org, "Rune Lillesveen" <rune@opera.com>
Message-ID: <op.unq1rcjy64w2qv@annevk-t60.oslo.opera.com>

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 GMT

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