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

Re: [css3-animations] animation-iteration-count: 0

From: Simon Fraser <smfr@me.com>
Date: Wed, 05 Oct 2011 13:20:52 -0700
Cc: ōyvind Stenhaug <oyvinds@opera.com>, "www-style@w3.org" <www-style@w3.org>
Message-id: <A4ED1D6D-9B21-473D-B8AD-26041FB1B1E1@me.com>
To: "L. David Baron" <dbaron@dbaron.org>
On Oct 4, 2011, at 9:13 AM, L. David Baron wrote:

> On Tuesday 2011-10-04 17:27 +0200, ōyvind Stenhaug wrote:
>> http://dev.w3.org/csswg/css3-animations/#the-animation-iteration-count-property-
>> "Negative values for Ďanimation-iteration-countí are treated as zero."
>> Actually, this sentence is supposed to be removed or changed,
>> according to
>> <http://lists.w3.org/Archives/Public/www-style/2011Mar/0355.html>.
>> Regardless, despite the fact that zero is mentioned here, I can't
>> find any attempt at defining how it's actually supposed to be
>> treated.
>> (Gecko sends an event for the end of the animation and sometimes
>> fills forwards, WebKit does neither as far as I can tell.)
> It's worth noting (since it might not be obvious -- I missed it at
> first) that the property takes <number> values -- not <integer>.
> Therefore it seems logical to me that animation-iteration-count:
> 0.00001 and animation-iteration-count: 0 should behave in similar
> ways.

The original intent, and the reason for <number>, was that we wanted
  animation-iteration-count: 2.5
to run the animation two and a half times before stopping. Unfortunately,
WebKit never implemented this, and treats the value as an integer.

Received on Wednesday, 5 October 2011 20:21:41 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:50 UTC