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

[css3-animations] updating 'animation-fill-mode' definition

From: L. David Baron <dbaron@dbaron.org>
Date: Tue, 19 Jun 2012 14:35:34 -0700
To: www-style@w3.org
Message-ID: <20120619213534.GA2800@crum.dbaron.org>
The definition of 'animation-fill-mode' at
http://dev.w3.org/csswg/css3-animations/#animation-fill-mode-property
is out of date in a number of ways:

 1. it doesn't account for the new 'reverse' and 'alternate-reverse'
 values of 'animation-direction'

 2. it doesn't account for the possibility that
 'animation-iteration-count' is not an integer

I propose replacing the text:

  # If the value for ‘animation-fill-mode’ is ‘backwards’, then the
  # animation will apply the property values defined in its 0% or
  # ‘from’ keyframe as soon as the animation is applied, during the
  # period defined by ‘animation-delay’.
  #
  # If the value for ‘animation-fill-mode’ is ‘forwards’, then the
  # animation will apply the property values defined in its last
  # executing keyframe after the final iteration of the animation,
  # until the animation style is removed. The last executing
  # keyframe is the ‘to’ or ‘100%’ keyframe, unless the animation
  # has ‘animation-direction’ set to ‘alternate’ and both a finite
  # and even iteration count, in which case it is the ‘from’ or ‘0%’
  # keyframe. 

with:

  # If the value for ‘animation-fill-mode’ is ‘backwards’, then the
  # animation will apply the property values defined in the keyframe
  # that will start the first iteration of the animation, during the
  # period defined by ‘animation-delay’.  These are either the
  # values of the ‘from’ keyframe (when ‘animation-direction’ is
  # ‘normal’ or ‘alternate’) or those of the ‘to’ keyframe (when
  # ‘animation-direction’ is ‘reverse’ or ‘alternate-reverse’).
  #
  # If the value for ‘animation-fill-mode’ is ‘forwards’, then after
  # the animation ends (as determined by its
  # ‘animation-iteration-count’), the animation will apply the
  # property values for the time the animation ended.  When
  # ‘animation-iteration-count’ is an integer greater than zero, the
  # values applied will be those for the end of the last completed
  # iteration of the animation (rather than the values for the start
  # of the iteration that would be next).  When
  # ‘animation-iteration-count’ is zero, the values applied will be
  # those that would start the first iteration (just as when
  # ‘animation-fill-mode’ is ‘backwards’).

Does this seem reasonable?

-David

-- 
𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla                           http://www.mozilla.org/   𝄂
Received on Tuesday, 19 June 2012 21:35:59 GMT

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