Skip to content

Commit d87d19b

Browse files
committed
[web-animations-1][editorial] Define “Web Animations model” and “Web Animations API”
Plus some nearby editorial fixes to the intro etc.
1 parent bcdd5cc commit d87d19b

File tree

1 file changed

+32
-27
lines changed

1 file changed

+32
-27
lines changed

web-animations-1/Overview.bs

Lines changed: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ Former Editor: Alex Danilo 31960, Google, [email protected]
8585
Former Editor: Tab Atkins 42199, Google, [email protected]
8686
Abstract: This specification defines a model for synchronization and timing
8787
of changes to the presentation of a Web page.
88-
This specification also also defines an application programming interface
88+
It also defines an application programming interface (API)
8989
for interacting with this model
90-
and it is expected that further specifications will define
90+
and it is expected that other specifications will define
9191
declarative means for exposing these features.
9292
9393
!Participate: <a href="https://github.com/w3c/csswg-drafts/tree/main/web-animations-1">Fix the text through GitHub</a>
@@ -222,34 +222,38 @@ Introduction {#introduction}
222222
<em>This section is non-normative</em>
223223

224224
This specification defines a model
225+
(the <dfn export>Web Animations model</dfn>)
225226
for supporting animation and synchronization on the Web platform.
226227
It is intended that other specifications will build on this model
227228
and expose its features through declarative means.
229+
228230
In addition, this specification also defines
229231
a programming interface to the model
232+
(the <dfn export>Web Animations <abbr title="Application Programming Interface">API</abbr></dfn>,
233+
defined in [[#programming-interface]])
230234
that may be implemented by user agents that provide support for scripting.
231235

232236
Use cases {#use-cases}
233237
---------
234238

235-
The Web Animations model is intended to provide the features necessary
239+
The [=Web Animations model=] is intended to provide the features necessary
236240
for expressing CSS Transitions [[CSS-TRANSITIONS-1]],
237241
CSS Animations [[CSS-ANIMATIONS-1]], and
238242
SVG [[SVG11]].
239-
As such, the use cases of Web Animations model is the union of use cases
240-
for those three specifications.
243+
As such, the use cases of the [=Web Animations model=] are
244+
the union of use cases for those three specifications.
241245

242-
The use cases for the programming interface include the following:
246+
The use cases for the [=Web Animations API=] include the following:
243247

244248
: Inspecting running animations
245249
::
246250
Often Web applications need to wait for certain animated effects to complete
247251
before updating some state.
248-
The programming interface in this specification allows such applications
252+
The [=Web Animations API=] allows such applications
249253
to wait for all currently running animation to complete,
250254
regardless of whether they are defined
251255
by CSS Transitions, CSS Animations, SVG animations,
252-
or created directly using the programming interface.
256+
or created directly using the [=Web Animations API=].
253257

254258
<div class=example>
255259
<pre highlight=javascript>
@@ -296,7 +300,7 @@ Use cases {#use-cases}
296300
in terms of how they are represented in the CSS cascade
297301
and the performance optimizations that are possible,
298302
such as performing the animation on a separate thread.
299-
Using the Web Animations programming interface,
303+
Using the [=Web Animations API=],
300304
it is possible to create animations from script
301305
that have the same behavior and performance characteristics
302306
as declarative animations.
@@ -312,7 +316,7 @@ Use cases {#use-cases}
312316
::
313317
In a complex application, it can be difficult
314318
to determine how an element arrived in its present state.
315-
The Web Animations programming interface can be used
319+
The [=Web Animations API=] can be used
316320
to inspect running animations to answer questions such as,
317321
“Why is the opacity of this element changing?”
318322

@@ -391,43 +395,44 @@ Relationship to other specifications {#relationship-to-other-specifications}
391395
they are described in different terms.
392396
This specification proposes an abstract animation model
393397
that encompasses the common features of all three specifications.
394-
This model is backwards-compatible
398+
This [=Web Animations model=] is backwards-compatible
395399
with the current behavior of these specifications
396400
such that they can be defined in terms of this model without any observable change.
397401

398402
The animation features in SVG 1.1 are defined
399403
in terms of SMIL Animation [[SMIL-ANIMATION]].
400404
It is intended that by defining SVG's animation features
401-
in terms of the Web Animations model,
405+
in terms of the [=Web Animations model=],
402406
the dependency between SVG and SMIL Animation can be removed.
403407

404408
As with [=animation frame callbacks=]
405409
(commonly referred to as "requestAnimationFrame") [[HTML]],
406-
the programming interface component of this specification
410+
the [=Web Animations API=]
407411
allows animations to be created from script.
408-
The animations created using the interface defined in this specification, however,
412+
The animations created using the [=Web Animations API=], however,
409413
once created, are executed entirely by the user agent,
410414
meaning they share the same performance characteristics
411-
as animations defined by markup.
415+
as animations defined declaratively.
412416
Using this interface it is possible to create animations
413417
from script in a simpler and more performant manner.
414418

415-
The time values used within the programming interface
419+
The time values used within the [=Web Animations API=]
416420
correspond with those used in [=animation frame callbacks=] [[HTML]]
417421
and their execution order is defined
418422
such that the two interfaces can be used simultaneously without conflict.
419423

420-
The programming interface component of this specification
424+
The [=Web Animations API=] component of this specification
421425
makes some additions to interfaces defined in HTML [[!HTML]].
422426

423427
Overview of this specification {#overview-of-this-specification}
424428
------------------------------
425429

426-
This specification begins by defining an abstract model for animation.
427-
This is followed by a programming interface
430+
This specification begins by defining an abstract model for animation,
431+
the [=Web Animations model=].
432+
This is followed by a programming interface, [=Web Animations API=],
428433
defined in terms of the abstract model.
429-
The programming interface is defined in terms of the abstract model
430-
and is only relevant to user agents that provide scripting support.
434+
The programming interface is only relevant
435+
to user agents that provide scripting support.
431436
</div>
432437

433438
Specification conventions {#spec-conventions}
@@ -448,7 +453,7 @@ Specification conventions {#spec-conventions}
448453
should be understood to refer to updating the property directly
449454
<em>without</em> invoking any related procedure.
450455

451-
Further documentation conventions that are not specific to this specification
456+
Further conventions not specific to this specification
452457
are described in [[#w3c-conventions]].
453458

454459
Web Animations model overview {#web-animations-model-overview}
@@ -457,7 +462,7 @@ Web Animations model overview {#web-animations-model-overview}
457462
<div class=informative-bg>
458463
<em>This section is non-normative</em>
459464

460-
At a glance, the Web Animations model consists
465+
At a glance, the [=Web Animations model=] consists
461466
of two largely independent pieces:
462467
a <em>timing model</em> and an <em>animation model</em>.
463468
The roles of these pieces are as follows:
@@ -6890,7 +6895,7 @@ Model liveness {#model-liveness}
68906895
Unless otherwise stated,
68916896
invoking the methods or constructors,
68926897
or getting or setting the members
6893-
of interfaces defined in the programming interface section of this specification
6898+
of interfaces defined in the [=Web Animations API=]
68946899
does <em>not</em> produce a [=style change event=].
68956900

68966901
Note: Other specifications that extend this specification
@@ -6909,11 +6914,11 @@ Model liveness {#model-liveness}
69096914
and normative requirements elsewhere in this specification,
69106915
the following invariants can be observed:
69116916

6912-
: Changes made to the Web Animations model take effect immediately
6917+
: Changes made to the [=Web Animations model=] take effect immediately
69136918
::
69146919
For example, if the {{KeyframeEffect}} associated with an {{Animation}}
69156920
is seeked (see [[#setting-the-current-time-of-an-animation]])
6916-
via the programming interface,
6921+
via the [=Web Animations API=],
69176922
the value returned when querying the animation's <code>startTime</code>
69186923
will reflect updated state of the model immediately.
69196924

@@ -7117,7 +7122,7 @@ Conformance criteria {#conformance-criteria}
71177122

71187123
A <dfn export>conforming scripted Web Animations user agent</dfn>
71197124
is a user agent that implements
7120-
the <abbr title="Application Programming Interface">API</abbr>
7125+
the [=Web Animations API=]
71217126
defined in [[#programming-interface]].
71227127

71237128
Acknowledgements {#acknowledgements}

0 commit comments

Comments
 (0)