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

Re: [css3-animations] Why does 'animation-iteration-count' accept negative values?

From: Øyvind Stenhaug <oyvinds@opera.com>
Date: Thu, 13 Oct 2011 15:41:04 +0200
To: www-style@w3.org
Message-ID: <op.v3almqljbunlto@oyvinds-desktop>
On Thu, 29 Sep 2011 15:32:04 +0200, Øyvind Stenhaug <oyvinds@opera.com>  
wrote:

> On Wed, 16 Mar 2011 17:00:50 +0100, Simon Fraser <smfr@me.com> wrote:
>
>> On Mar 15, 2011, at 2:06 pm, L. David Baron wrote:
>>
>>> Why does 'animation-iteration-count' accept negative values?
>>> http://dev.w3.org/csswg/css3-animations/#the-animation-iteration-count-property-
>>>
>>> It's more typical for CSS properties where negative values don't
>>> make sense to require that negative values be a parse error, rather
>>> than to require that they clamp to zero.
>>
>> This looks like an oversight. I'll fix.
>
> When this gets fixed, I think 'animation-duration' should get a similar  
> treatment.

Hm, would need to pay attention to the 'animation' shorthand then, though.  
It currently says to treat the first <time> as an 'animation-duration',  
but in e.g. "animation: foo -1s 1s" that wouldn't be possible.

-- 
Øyvind Stenhaug
Core Norway, Opera Software ASA
Received on Thursday, 13 October 2011 13:41:50 GMT

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