Skip to content

Commit 7e0fe43

Browse files
authored
[css-image-animation] Define what state 'running' starts from (#13638)
This is in response to #13429.
1 parent f6b9da9 commit 7e0fe43

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

css-image-animation-1/Overview.bs

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Controlling Image Animations: the 'image-animation' property {#image-animation}
151151
<dd>
152152
Like ''normal'',
153153
the animation of [=animated images=] is run normally,
154-
as determined by the image format and the host language,
154+
as determined by the image format and the host language.
155155

156156
However,
157157
animation timelines are scoped per element:
@@ -160,8 +160,19 @@ Controlling Image Animations: the 'image-animation' property {#image-animation}
160160
the same image data,
161161
and with an 'image-animation' computed value of ''running''
162162
must be rendered synchronized to the same timeline as a group,
163-
distinct from the timeline of images in other elements,
164-
with the timeline starting at the time of the least recent addition to the group.
163+
distinct from the timeline of images in other elements.
164+
165+
If images are added to the element while the computed value is ''running'',
166+
the timeline starts at the time of the least recent addition to the group.
167+
168+
If the element is created or made visible after having previously been set to ''display: none'',
169+
with images already added and with 'image-animation' already set to ''running'',
170+
the timeline starts when the element is included in the layout.
171+
172+
If this property is switched to ''running'' from another value,
173+
the beginnig of this timeline is set
174+
so that the animation continues from the state that was displayed
175+
at the timem of the switch.
165176
</dl>
166177

167178
<div class=example id=prefers>

0 commit comments

Comments
 (0)