Skip to content

Commit f6b9da9

Browse files
authored
[css-image-animation] Distinguish between the paused and stopped states (#13636)
Addresses #13434
1 parent cdc77ac commit f6b9da9

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

css-image-animation-1/Overview.bs

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Controlling Image Animations: the 'image-animation' property {#image-animation}
7979

8080
<pre class="propdef">
8181
Name: image-animation
82-
Value: normal | paused | running
82+
Value: normal | paused | stopped | running
8383
Initial: normal
8484
Applies to: [=content images=] and elements with [=decorative images=]
8585
Inherited: yes
@@ -126,10 +126,26 @@ Controlling Image Animations: the 'image-animation' property {#image-animation}
126126
and therefore does not normatively require the above behavior.
127127
This specification does.
128128

129-
<dt><dfn>paused</dfn>
129+
<dt><dfn>stopped</dfn>
130130
<dd>
131131
[=Animated images=] are rendered as if they were [=static images=]:
132132
the user agent must not run any animation it contains.
133+
If the image contains a [=cover frame=],
134+
that is what the user agent must use;
135+
otherwise, it must display the image
136+
as it would be in the initial state of the animation.
137+
138+
<dt><dfn>paused</dfn>
139+
<dd>
140+
The user agent must not run the animation
141+
contained in the [=Animated images=],
142+
and must continue to display the image
143+
as it was when this value started to apply,
144+
effectively pausing the animation.
145+
146+
If the animation had not been playing
147+
prior to this value being applied,
148+
the behavior is the same as ''stopped''.
133149

134150
<dt><dfn>running</dfn>
135151
<dd>
@@ -353,6 +369,15 @@ Terminology {#terminology}
353369

354370
<p class=example id=ex-p-i>
355371
The <{canvas}> [[HTML]] element represents a [=programmatic image=].
372+
373+
<dt><dfn>cover frame</dfn>
374+
<dd>
375+
Some [=animated image=] formats make it possible
376+
for the creator of the image
377+
to specify a [=static image=],
378+
referred to in this document as the [=cover frame=],
379+
to display when the animation is not running,
380+
distinctly from the initial state of the animation.
356381
</dl>
357382

358383
Issue: Should the <{video}> element

0 commit comments

Comments
 (0)