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

Re: [css3-animations] What does animation-fill-mode do when animation-iteration-count is zero?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 3 Feb 2012 06:52:38 -0800
Message-ID: <CAAWBYDAabg5iqOLTmoet6BznC4u1OMQ4ZLBDS+Q3o8wS2+L+wg@mail.gmail.com>
To: Brian Birtles <bbirtles@mozilla.com>
Cc: www-style@w3.org
On Fri, Feb 3, 2012 at 1:18 AM, Brian Birtles <bbirtles@mozilla.com> wrote:
> Dear all,
>
> Just a quick question on this point, is it necessary to allow an
> animation-iteration-count of zero?
>
> My reason for asking is that SVG does not (and I'm trying to line things up
> here where possible). Values for repeatCount must be greater than 0.[1]
>
> I guess you could argue that since you can use 0.0001 you should be able to
> use 0 (otherwise you might have differences where one implementation allows
> 0.00000001 and another reports an error due to differences in floating point
> representation). But how important is that? SVG and SMIL seem to have been
> getting away with disallowing zero.

Similar to the design principle of "avoid discontinuities", we have
another design principle that lower ranges have to be closed.  This
allows us to safely do things like the fallback for the attr()
notation.  (If the attribute value doesn't parse, the notation instead
represents 0, or the properties minimum value if 0 isn't valid.)

~TJ
Received on Friday, 3 February 2012 14:53:32 GMT

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