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

RE: [css3-transitions] In transition-property: all, <property>, is <property> a duplicate ?

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Fri, 22 Oct 2010 22:42:48 +0000
To: "L. David Baron" <dbaron@dbaron.org>
CC: www-style list <www-style@w3.org>
Message-ID: <045A765940533D4CA4933A4A7E32597E2810CC77@TK5EX14MBXC120.redmond.corp.microsoft.com>
> From: L. David Baron [mailto:dbaron@dbaron.org]
> Sent: Friday, October 22, 2010 3:31 PM
> To: Sylvain Galineau
> Cc: www-style list
> Subject: Re: [css3-transitions] In transition-property: all, <property>,
> is <property> a duplicate ?
> 
> On Friday 2010-10-22 22:17 +0000, Sylvain Galineau wrote:
> > Related to my previous question on shorthand/longhand combinations
> [1],
> > what should happen in the following case:
> >
> > transition-property: width, all;
> > transition-duration: 10s, 2s;
> 
> The syntax of transition-property accepts:
> 
>   none | all | [ <IDENT> ] [ ‘,’ <IDENT> ]*
> 
> so in this case 'all' isn't a special value; it's a property named
> 'all' (which doesn't exist).
> 
> http://dev.w3.org/csswg/css3-transitions/#the-transition-property-

> property-
> lists as an open issue:
> 
>   # Are ‘all’, ‘none’, ‘inherit’, and ‘initial’ allowed as items in
>   # a list of identifiers (of length greater than one)?

Firefox and Opera certainly seem correct per the syntax. My only concern 
is whether this is what authors expect, specifically in the first case where
one might expect a default duration for all but overridden for width. 

WebKit's implementation also behaves as one would expect per the duplicate
rule so authors don't have to remember that all is a special case. Lastly,
this does allow them to set a default duration for all animatable property
together with a few chosen exceptions. If all is a stand-alone value, there 
doesn't seem to be a practical way to do that.

Received on Friday, 22 October 2010 22:43:32 GMT

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