Skip to content

Commit 9171cdf

Browse files
committed
[css-animations-2] Keep final keyframe at the end.
Otherwise it won't be last if some other non-<percentage> keyframes have an equivalent used offset.
1 parent b1b1dd8 commit 9171cdf

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

css-animations-2/Overview.bs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -361,16 +361,12 @@ its associated [=keyframes=] are generated as follows:
361361
362362
* The <dfn lt="computed keyframe order">computed order</dfn> of |keyframes|--
363363
which is the order returned by {{KeyframeEffect/getKeyframes()}}--
364-
is found by
365-
shifting |initial keyframe|, |final keyframe|, and
366-
any keyframes whose offset was specified
367-
as <<percentage>>, ''@keyframes/from'', or ''@keyframes/to''
368-
to the front of the list,
364+
is found by shifting any keyframes whose offset was specified as
365+
a <<percentage>>, ''@keyframes/from'' keyword, or ''@keyframes/to'' keyword
366+
to the front of the list (after the generated |initial keyframe|, if any),
369367
and performing a stable sort on these keyframes
370368
by their |keyframe offset|s.
371369
372-
ISSUE: It might be more natural to leave |final keyframe| at the end.
373-
374370
* The <dfn lt="used keyframe order">used order</dfn> of |keyframes|--
375371
which is the order used to interpolate and compute the actual animation frames--
376372
is found by attaching the |keyframes|
@@ -383,7 +379,8 @@ its associated [=keyframes=] are generated as follows:
383379
sorts keyframes with <<percentage>> offsets,
384380
it maintains keyframes specified with a <<timeline-range-name>>
385381
in their [=specified keyframe order=]--
386-
after any <<percentage>> keyframes,
382+
after any <<percentage>> keyframes
383+
(other than a generated |final keyframe|),
387384
even if these come later in the [=used keyframe order=].
388385
389386
<h2 id="animation-definition">

0 commit comments

Comments
 (0)