Skip to content

Commit a92c32c

Browse files
DavMilaDavid Awogbemila
and
David Awogbemila
authored
[web-animations-2] Change progress to overallProgress (w3c#11184)
In line with the CSS working group's resolution[1] to change Animation.progress to Animation.overallProgress, this patch updates the relevant portions of the web-animations-2 spec. [1] w3c#8799 (comment) Co-authored-by: David Awogbemila <awogbemila@chromium.org>
1 parent a15fbbc commit a92c32c

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

web-animations-2/Overview.bs

+13-13
Original file line numberDiff line numberDiff line change
@@ -969,35 +969,35 @@ Add the following sentence:
969969

970970
</div>
971971

972-
### Calculating the progress of an animation ### {#the-progress-of-an-animation}
972+
### Calculating the overall progress of an animation ### {#the-overall-progress-of-an-animation}
973973

974-
An animation's <dfn export for=animation>progress</dfn> is the ratio of its
974+
An animation's <dfn export for=animation>overallProgress</dfn> is the ratio of its
975975
[=animation/current time=] to its [=associated effect end=].
976976

977-
<div algorithm="calculate animation progress">
978-
The [=animation/progress=] of an [=animation=], |animation|, is calculated as follows:
977+
<div algorithm="calculate animation overall progress">
978+
The [=animation/overallProgress=] of an [=animation=], |animation|, is calculated as follows:
979979

980980
<dl class=switch>
981981

982982
: If <em>any</em> of the following are true:
983983
* |animation| does not have an [=animation/associated effect=], or
984984
* |animation|'s [=animation/current time=] is an [=unresolved=] time value,
985985
::
986-
|animation|'s [=animation/progress=] is null.
986+
|animation|'s [=animation/overallProgress=] is null.
987987
: If |animation|'s [=associated effect end=] is zero,
988988
::
989989
: If |animation|'s [=animation/current time=] is negative,
990-
:: |animation|'s [=animation/progress=] is zero.
990+
:: |animation|'s [=animation/overallProgress=] is zero.
991991

992992
: Otherwise,
993-
:: |animation|'s [=animation/progress=] is one.
993+
:: |animation|'s [=animation/overallProgress=] is one.
994994
: If |animation|'s [=associated effect end=] is infinite,
995995
::
996-
|animation|'s [=animation/progress=] is zero.
996+
|animation|'s [=animation/overallProgress=] is zero.
997997
: Otherwise,
998998
::
999999
<blockquote>
1000-
<code><a for="animation">progress</a> = min(max([=animation/current time=] / |animation|'s [=associated effect end=], 0), 1)
1000+
<code><a for="animation">overallProgress</a> = min(max([=animation/current time=] / |animation|'s [=associated effect end=], 0), 1)
10011001
</code>
10021002
</blockquote>
10031003

@@ -2425,7 +2425,7 @@ Update the attribute type for currentTime.
24252425
<h3 id="the-animation-interface">The <code>Animation</code> interface</h3>
24262426

24272427
Update the startTime and currentTime of the Animation interface, and add
2428-
rangeStart, rangeEnd, and progress as follows:
2428+
rangeStart, rangeEnd, and overallProgress as follows:
24292429

24302430
<pre class="idl">
24312431
[Exposed=Window]
@@ -2434,7 +2434,7 @@ partial interface Animation {
24342434
attribute CSSNumberish? currentTime;
24352435
attribute (TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) rangeStart;
24362436
attribute (TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) rangeEnd;
2437-
readonly attribute double? progress;
2437+
readonly attribute double? overallProgress;
24382438
};
24392439
</pre>
24402440

@@ -2480,8 +2480,8 @@ Add:
24802480
> When reading the attribute, the returned value is either a
24812481
> {{TimelineRangeOffset}} or the {{DOMString}} "normal".
24822482
>
2483-
> : <dfn attribute for=Animation>progress</dfn>
2484-
> :: Specifies the [=animation/progress=] of the <a>animation</a> as a proportion of its
2483+
> : <dfn attribute for=Animation>overallProgress</dfn>
2484+
> :: Specifies the [=animation/overallProgress=] of the <a>animation</a> as a proportion of its
24852485
> [=associated effect end=].
24862486
</div>
24872487

0 commit comments

Comments
 (0)