diff --git a/web-animations-2/Overview.bs b/web-animations-2/Overview.bs index 9e07f17782d..086673ccf28 100644 --- a/web-animations-2/Overview.bs +++ b/web-animations-2/Overview.bs @@ -969,13 +969,13 @@ Add the following sentence: -### Calculating the progress of an animation ### {#the-progress-of-an-animation} +### Calculating the overall progress of an animation ### {#the-overall-progress-of-an-animation} - An animation's progress is the ratio of its + An animation's overallProgress is the ratio of its [=animation/current time=] to its [=associated effect end=]. -
- The [=animation/progress=] of an [=animation=], |animation|, is calculated as follows: +
+ The [=animation/overallProgress=] of an [=animation=], |animation|, is calculated as follows:
@@ -983,21 +983,21 @@ Add the following sentence: * |animation| does not have an [=animation/associated effect=], or * |animation|'s [=animation/current time=] is an [=unresolved=] time value, :: - |animation|'s [=animation/progress=] is null. + |animation|'s [=animation/overallProgress=] is null. : If |animation|'s [=associated effect end=] is zero, :: : If |animation|'s [=animation/current time=] is negative, - :: |animation|'s [=animation/progress=] is zero. + :: |animation|'s [=animation/overallProgress=] is zero. : Otherwise, - :: |animation|'s [=animation/progress=] is one. + :: |animation|'s [=animation/overallProgress=] is one. : If |animation|'s [=associated effect end=] is infinite, :: - |animation|'s [=animation/progress=] is zero. + |animation|'s [=animation/overallProgress=] is zero. : Otherwise, ::
- progress = min(max([=animation/current time=] / |animation|'s [=associated effect end=], 0), 1) + overallProgress = min(max([=animation/current time=] / |animation|'s [=associated effect end=], 0), 1)
@@ -2425,7 +2425,7 @@ Update the attribute type for currentTime.

The Animation interface

Update the startTime and currentTime of the Animation interface, and add -rangeStart, rangeEnd, and progress as follows: +rangeStart, rangeEnd, and overallProgress as follows:
 [Exposed=Window]
@@ -2434,7 +2434,7 @@ partial interface Animation {
     attribute CSSNumberish?       currentTime;
     attribute (TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) rangeStart;
     attribute (TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) rangeEnd;
-    readonly attribute double? progress;
+    readonly attribute double? overallProgress;
 };
 
@@ -2480,8 +2480,8 @@ Add: > When reading the attribute, the returned value is either a > {{TimelineRangeOffset}} or the {{DOMString}} "normal". > -> : progress -> :: Specifies the [=animation/progress=] of the animation as a proportion of its +> : overallProgress +> :: Specifies the [=animation/overallProgress=] of the animation as a proportion of its > [=associated effect end=].