diff --git a/web-animations-1/Overview.bs b/web-animations-1/Overview.bs
index e2a3fd9372a..f0992e33513 100644
--- a/web-animations-1/Overview.bs
+++ b/web-animations-1/Overview.bs
@@ -2801,6 +2801,11 @@ Animation effects {#animation-effects}
max(min(start delay + active duration,
end time), 0)
+
+ Furthermore, an endpoint-inclusive active interval flag
+ may be specified when determining the phase.
+ If not specified, it is assumed to be false.
+
An [=animation effect=] is in the
before phase
if the animation effect's [=local time=]
@@ -2809,7 +2814,8 @@ Animation effects {#animation-effects}
* the [=local time=] is less than the [=before-active boundary time=],
or
- * the [=animation direction=] is “backwards”
+ * the [=animation direction=] is “backwards”,
+ the [=endpoint-inclusive active interval=] flag is false,
and the [=local time=] is equal to the [=before-active boundary time=].
An [=animation effect=] is in the
@@ -2820,7 +2826,8 @@ Animation effects {#animation-effects}
* the [=local time=] is greater than the [=active-after boundary time=],
or
- * the [=animation direction=] is “forwards”
+ * the [=animation direction=] is “forwards”,
+ the [=endpoint-inclusive active interval=] flag is false,
and the [=local time=] is equal to the [=active-after boundary time=].
An [=animation effect=] is in the
@@ -3001,34 +3008,24 @@ Animation effects {#animation-effects}
- elem.style.transform = 'translateY(100px)'; - elem.animate({ transform: 'none', offset: 0 }, 200); + elem.animate({ transform: 'translateY(100px)' }, 200).finished.then(() => { + elem.commitStyles(); + });
- elem.addEventListener('click', async evt => { - const animation = elem.animate( - { transform: \`translate(${evt.clientX}px, ${evt.clientY}px)\` }, - { duration: 800, fill: 'forwards' } - ); - await animation.finished; - // commitStyles will record the style up to and including \`animation\` and - // update elem's specified style with the result. - animation.commitStyles(); - animation.cancel(); - }); + elem.style.transform = 'translateY(100px)'; + elem.animate({ transform: 'none', offset: 0 }, 200);
+ elem.animate({ transform: 'translateY(100px)' }, 200).finished.then(() => { + elem.commitStyles(); + }); ++ +