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

RE: [css3-transitions] shorthand/longhand handling in transition property

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Fri, 22 Oct 2010 22:52:29 +0000
To: "L. David Baron" <dbaron@dbaron.org>
CC: www-style list <www-style@w3.org>
Message-ID: <045A765940533D4CA4933A4A7E32597E2810CCAB@TK5EX14MBXC120.redmond.corp.microsoft.com>
> From: L. David Baron [mailto:dbaron@dbaron.org]


> I think that should be considered duplication of border-right-width.
> I think the "(either on its own or via a shorthand that contains
> it)" makes the spec reasonably clear that that's the case.

That was my reading as well.

> 
> > In other words, should this be equivalent to (a):
> >
> > transition-property: border-top-width, border-bottom-width, border-
> left-width, border-right-width;
> > transition-duration: 3s, 3s, 3s, 1s;
> >
> > Or (b):
> >
> > transition-property: border-top-width, border-right-width, border-
> bottom-width, border-left-width, border-right-width;
> > transition-duration: 3s, 3s, 3s, 3s, 1s;
> 
> The latter, although I don't see how the difference is detectable.

If you always treat it as a duplicate then the last specified duration 
applies to border-right-width regardless of the ordering of 
transition-property.

If you don't treat it as a duplicate then the duration for border-right-width
depends on where it is in the list and/or you may end up with odd repetitions.

You can try the attached testcase in Firefox 4 vs. Chrome 7. 

> 
> -David
> 
> --
> L. David Baron                                 http://dbaron.org/
> Mozilla Corporation                       http://www.mozilla.com/



Received on Friday, 22 October 2010 22:53:07 GMT

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