This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 14807 - Interaction of animation-delay and animation-iteration-count
Summary: Interaction of animation-delay and animation-iteration-count
Status: RESOLVED FIXED
Alias: None
Product: CSS
Classification: Unclassified
Component: Animations (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Dean Jackson
QA Contact: public-css-bugzilla
URL:
Whiteboard: [easy]
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-11 20:51 UTC by Sylvain Galineau
Modified: 2014-10-02 23:40 UTC (History)
4 users (show)

See Also:


Attachments

Comment 1 Sylvain Galineau 2012-04-03 20:49:19 UTC
Current wording (3.8 The animation-delay property):

# The 'animation-delay' property defines when the animation will start. 
# It allows an animation to begin execution some time after it is applied. 
# An 'animation-delay' value of ā€˜0sā€™ means the animation will execute as 
# soon as it is applied. Otherwise, the value specifies an offset from 
# the moment the animation is applied, and the animation will delay 
# execution by that offset. 

Proposed wording:

# The 'animation-delay' property defines when the animation's first
# iteration will start. This allows an animation to begin execution 
# some time after it is applied. An 'animation-delay' value of ā€˜0sā€™ 
# means the animation will execute as soon as it is applied. Otherwise, 
# the value specifies an offset from the moment the animation is applied, 
# and the animation will delay execution by that offset.
Comment 2 Simon Fraser 2012-04-03 21:07:52 UTC
I think it would be useful to mention how negative animation-delay behaves.
Comment 3 Sylvain Galineau 2012-04-03 22:47:39 UTC
The next paragraph covers negative delays:

# If the value for 'animation-delay' is a negative time offset then 
# the animation will execute the moment it is applied, but will appear 
# to have begun execution at the specified offset. That is, the animation 
# will appear to begin part-way through its play cycle. In the case where 
# an animation has implied starting values and a negative 'animation-delay', 
# the starting values are taken from the moment the animation is applied. 


Or do you mean we should cover the case where the delay is > duration AND iteration-count > 1?
Comment 4 Sylvain Galineau 2012-04-10 22:09:26 UTC
"Or do you mean we should cover the case where the delay is > duration AND
iteration-count > 1?"

Clarifying as this may be puzzling: the question here is whether we ought to define what happens when animation-delay <= (-1 x animation-duration); for instance, what happens in cases such as:

animation-duration: 5s;
animation-delay: -5s;

animation-duration: 5s;
animation-delay: -6s;

animation-duration: 5s;
animation-iteration-count: 2;
animation-delay: -6s;
Comment 5 Sylvain Galineau 2014-10-02 23:40:52 UTC
Resolved per 2014-09-09 WG decision.