Skip to content

Commit 27ea9b5

Browse files
author
Sylvain Galineau
committed
[css-animations] Take a first pass at updating animation start time prose to account for missing @Keyframes
1 parent 2a91740 commit 27ea9b5

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

css-animations/Overview.bs

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,17 @@ Animations</h2>
9696
delay). During an animation, the computed style is derived from the
9797
animated value.
9898

99-
The start time of an animation is the time at which the style that defines
100-
the animation is resolved. An animation specified by dynamically modifying
101-
the element's style will start when this style is resolved; that may be
102-
immediately in the case of a pseudo style rule such as hover, or may be
103-
when the scripting engine returns control to the browser (in the case of
104-
style applied by script).
99+
The start time of an animation is the time at which the style applying
100+
the animation and the corresponding @keyframes rule are both resolved.
101+
If an animation is specified for an element but the corresponding
102+
@keyframes rule does not yet exist, the animation cannot start; the
103+
animation will start from the beginning as soon as a matching @keyframes
104+
rule can be resolved. An animation specified by dynamically modifying the
105+
element's style will start when this style is resolved; that may be
106+
immediately in the case of a pseudo style rule such as hover, or may be
107+
when the scripting engine returns control to the browser (in the case of
108+
style applied by script).
109+
105110

106111
An animation applies to an element if its name appears as one of the
107112
identifiers in the computed value of the 'animation-name' property and the

0 commit comments

Comments
 (0)