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

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 UTC