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

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

> The 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.


Received on Monday, 18 May 2009 18:22:25 UTC