W3C home > Mailing lists > Public > www-style@w3.org > March 2012

Re: [css3-transitions][css3-animations] should negative 'animation-durtaion' and 'transition-duration' be parse errors

From: Øyvind Stenhaug <oyvinds@opera.com>
Date: Wed, 28 Mar 2012 17:56:12 +0200
To: www-style@w3.org
Message-ID: <op.wbv07ynubunlto@oyvinds-desktop>
On Tue, 27 Mar 2012 21:21:06 +0200, Tab Atkins Jr. <jackalmage@gmail.com>  
wrote:

> On Tue, Mar 27, 2012 at 11:47 AM, L. David Baron <dbaron@dbaron.org>  
> wrote:
>> http://dev.w3.org/csswg/css3-transitions/#the-transition-duration-property-
>> http://dev.w3.org/csswg/css3-animations/#the-animation-duration-property-
>>
>> These sections of the specifications say that negative values of
>> transition-duration and animation-duration are treated as '0s'.
>> This is somewhat unusual; normally out-of-range values in CSS are
>> treated as parse errors.  Should we change these to match the normal
>> behavior?
>
> If possible due to compat, yes, we should.

Seems to make sense. Webkit already deviates from the spec here, it seems,  
at least in Chromium 17.

As mentioned in  
<http://lists.w3.org/Archives/Public/www-style/2011Oct/0471.html>, the  
animation shorthand definition would also have to be modified.

-- 
Øyvind Stenhaug
Core Norway, Opera Software ASA
Received on Wednesday, 28 March 2012 15:56:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:48:53 GMT