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: Wed, 27 Oct 2010 21:10:31 +0000
To: "L. David Baron" <dbaron@dbaron.org>
CC: Chris Marrin <cmarrin@apple.com>, www-style list <www-style@w3.org>
Message-ID: <045A765940533D4CA4933A4A7E32597E28783EA9@TK5EX14MBXC115.redmond.corp.microsoft.com>
> From: L. David Baron [mailto:dbaron@dbaron.org]
> Sent: Wednesday, October 27, 2010 2:01 PM
> To: Sylvain Galineau
> Cc: Chris Marrin; www-style list
> Subject: Re: [css3-transitions] In transition-property: all, <property>,
> is <property> a duplicate ?
> 
> On Wednesday 2010-10-27 20:33 +0000, Sylvain Galineau wrote:
> > > From: Chris Marrin [mailto:cmarrin@apple.com]
> > > On Oct 27, 2010, at 1:21 PM, L. David Baron wrote:
> > > > On Wednesday 2010-10-27 13:17 -0700, Chris Marrin wrote:
> > > >> If so, then the rule would be that a 'none' in the list would
> turn
> > > >> off transitions on all properties. The corresponding duration
> > > >> would be ignored. An 'all' would turn transitions on for all
> > > >> properties and would set their duration to the corresponding one.
> > > >> Specific property names later in the list would override these.
> > > >> That seems like the most logical rule to me.
> > > >
> > > > Are you're saying you'd want an occurrence of 'none' to override
> > > > values earlier/later in the list, or just that 'none' would
> trigger
> > > > transitions on no properties (and thus cause an item in the
> > > > duration/timing-function/delay lists to be skipped)?
> > >
> > > I mean that if you were to say:
> > >
> > > 	transition-property: width, none, height;
> > > 	transition-duration: 1s, 1000000s, 2s;
> > >
> > > you'd get a transition just on height and it would occur over 2s.
> > > Similarly, if you say:
> > >
> > > 	transition-property: width, none, all, height;
> > > 	transition-duration: 1s, 2s, 3s, 4s;
> > >
> > > you'd get a transition of 3s on all properties except height, which
> > > would transition over 4s.
> > >
> > That is my expectation as well i.e. none/all override all the
> transitions
> > that come before them in the property list. Subsequent properties can
> > then declare expections to none/all.
> >
> > And if you have 'none,none' or 'all,all', normal dupe handling also
> > happens so the last one wins.
> 
> I'd have expected that overriding for 'all', since it "matches" all
> properties, and the last one wins, but I wouldn't have expected that
> overriding for 'none' since it matches no properties.

Yes, of course. While 'none' only matches to a particular duration slot
for the purpose of resolving Chris' example above, it doesn't match
to anything so there is no override as in 'all, all'.
Received on Wednesday, 27 October 2010 21:11:09 GMT

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