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

Re: CSS Transitions Feedback

From: Faruk Ateş <faruk@apple.com>
Date: Wed, 14 Jan 2009 12:06:51 -0800
Message-id: <75A3773D-9050-46CF-AF9B-FC2A73794F42@apple.com>
To: www-style@w3.org

On Jan 14, 2009, at 10:12 AM, Dean Jackson wrote:
> Just to make sure we are all thinking the same thing. In the  
> following example:
>
> transition-property: border;
> transition-duration: 1s;
>
> If I now apply a style rule "border-top-width: 2px", do you expect  
> to see a transition?

Only if the top border wasn't already 2 pixels wide. :-)

The key is really that shorthands are to make writing the same thing  
multiple times unnecessary, not to serve as some sort of pseudo- 
property that functions *only* as a standalone pseudo-property and  
nothing else.


> <transition-property> || <transition-duration>[ / <transition-delay>]?
> || <transition-timing-function> [, [<transition-property> ||
> <transition-duration>[ / <transition-delay>]? ||
> <transition-timing-function>]]*
>
> e.g. transition: color 2s/1s;
>
> This would have a 2 second duration with a 1 second delay.

I like that syntax, makes perfect sense to me precisely because of the  
familiarity from font:

- Faruk
Received on Wednesday, 14 January 2009 20:07:33 GMT

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