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

Re: [css3-transitions] What happens when property specified multiple times for 'transition-property' ?

From: Chris Marrin <cmarrin@apple.com>
Date: Mon, 18 May 2009 11:21:57 -0700
Message-id: <00CC7B31-50DE-46DF-8426-F624B081D13C@apple.com>
To: www-style@w3.org

On May 15, 2009, at 2:32 PM, L. David Baron wrote:

> The http://dev.w3.org/csswg/css3-transitions/ specification should
> define what happens when the same property is specified multiple
> times for 'transition-property'.  I think reasonable choices (in
> order of my preference) are:
>  (1) the last one wins
>  (2) the first one wins
>  (3) it's a syntax error
>
> My preference between (1) and (2) is weak, and I'd be happy to
> follow what existing implementations have done.
>
> I'd note that if we allow shorthands for 'transition-property', we
> also need to define the behavior when a property is specified once
> as a longhand and once within a shorthand, e.g.:
>
>  transition: background-color 5s, background 3s;


The logic we've followed for all this in our implementation is to  
match what CSS itself does if you specify a property more than once,  
i.e., last one wins.

-----
~Chris
cmarrin@apple.com
Received on Monday, 18 May 2009 18:22:25 GMT

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