Skip to content

Commit 111fbbb

Browse files
committed
[css-animations-2] Fix broken links
1 parent 77948be commit 111fbbb

File tree

1 file changed

+77
-39
lines changed

1 file changed

+77
-39
lines changed

css-animations-2/Overview.bs

Lines changed: 77 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,38 @@ Editor: Brian Birtles, Mozilla https://www.mozilla.org/, bbirtles@mozilla.com, w
3131
Abstract: This CSS module describes a way for authors to animate the values of CSS properties over time, using keyframes. The behavior of these keyframe animations can be controlled by specifying their duration, number of repeats, and repeating behavior.
3232
Ignored Vars: auto-rewind
3333
</pre>
34+
<pre class=link-defaults>
35+
spec:web-animations-1; type:dfn;
36+
text:active duration
37+
text:active phase; for:animation effect
38+
text:active time
39+
text:after phase; for:animation effect
40+
text:animation class
41+
text:animation effect
42+
text:associated effect
43+
text:associated effect end
44+
text:before phase; for:animation effect
45+
text:current iteration
46+
text:current time; for:animation
47+
text:composite operation
48+
text:fill mode
49+
text:idle play state
50+
text:idle phase; for:animation effect
51+
text:iteration duration
52+
text:iteration count
53+
text:iteration start
54+
text:keyframe
55+
text:pause an animation
56+
text:paused play state
57+
text:pending pause task
58+
text:pending play task
59+
text:play an animation
60+
text:play state
61+
text:playback direction
62+
text:start delay
63+
text:target element
64+
text:unresolved
65+
</pre>
3466

3567
<h2 id="delta">Delta specification</h2>
3668

@@ -134,8 +166,9 @@ let animation = elem.getAnimations()[0]; // animation's owning element is elem
134166
elem.style.animation = ''; // animation no longer has an owning element
135167
</pre>
136168
137-
Note that although the <a>owning element</a> is often equal to the <a>target
138-
element</a> of an animation's <a>target effect</a>, this is not always the case.
169+
Note that although the <a>owning element</a> is often equal to the
170+
[=target element=] of an animation's [=associated effect=],
171+
this is not always the case.
139172
The following example demonstrates some of the situations where these two
140173
elements may differ.
141174
@@ -155,7 +188,7 @@ animation.effect = null;
155188
156189
## Animation composite order ## {#animation-composite-order}
157190
158-
<a spec='web-animations'>Animations</a> generated from the markup defined in
191+
[=Animations=] generated from the markup defined in
159192
this specification have an <a>animation class</a> of &lsquo;CSS
160193
Animation&rsquo;.
161194
@@ -271,7 +304,7 @@ and the position of the animation in |element|'s 'animation-name' list,
271304
subproperties.
272305
273306
* All logical properties are converted to their
274-
[=equivalent physical properties=].
307+
[[css-writing-modes-4#logical-to-physical|equivalent physical properties]].
275308
276309
* For any expanded physical longhand properties that appear more
277310
than once,
@@ -553,35 +586,38 @@ possibility of animations being seeked or reversed using the Web Animations API
553586
[[WEB-ANIMATIONS]].
554587
555588
For the purpose of determining which events to dispatch, the
556-
[[web-animations#animation-effect-phases-and-states|phases]] defined in
589+
[[web-animations-1#animation-effect-phases-and-states|phases]] defined in
557590
the Web Animations model are used. These definitions apply to an <a>animation
558591
effect</a>, however, for the purpose of dispatching events, we consider a
559-
CSS Animation to have the same phase as its <a>target effect</a>. For example,
560-
a CSS Animation is in the <a>before phase</a> if its <a>target effect</a>
561-
is in the <a>before phase</a>.
592+
CSS Animation to have the same phase as its [=associated effect=].
593+
For example, a CSS Animation is in the [=animation effect/before phase=] if its
594+
[=associated effect=] is in the [=animation effect/before phase=].
562595
563-
A CSS Animation that does not have a <a>target effect</a> is considered to be in
564-
the <a>idle phase</a> if its <a>current time</a> is <a>unresolved</a>, in the
565-
<a>before phase</a> if its <a>current time</a> is less than zero, and in the
566-
<a>after phase</a> otherwise.
596+
A CSS Animation that does not have an [=associated effect=]
597+
is considered to be in the <a>idle phase</a>
598+
if its [=animation/current time=] is <a>unresolved</a>, in the
599+
[=animation effect/before phase=] if its <a>current time</a> is less than zero,
600+
and in the [=animation effect/after phase=] otherwise.
567601
568602
Similarly, subsequent references to the <a>start delay</a>, <a>active
569603
duration</a>, <a>current iteration</a>, <a>iteration start</a>, and
570604
<a>iteration duration</a> of a CSS animation should be understood to refer
571-
to the corresponding properties of the animation's <a>target effect</a>.
605+
to the corresponding properties of the animation's [=associated effect=].
572606
573607
For calculating the {{AnimationEvent/elapsedTime}} of each event, the following
574608
definitions are used:
575609
576610
* <dfn>interval start</dfn> =
577611
<code>max(min(-<a>start delay</a>, <a>active duration</a>), 0)</code>
578612
* <dfn>interval end</dfn> =
579-
<code>max(min(<a>target effect end</a> - <a>start delay</a>,
613+
<code>max(min([=associated effect end=] - <a>start delay</a>,
580614
<a>active duration</a>), 0)</code>
581615
582-
Each time an animation is <a lt="sampling">sampled</a> and is <em>not</em> <a
583-
lt="pending play state">pending</a>, the events to dispatch are determined by
584-
comparing the animation's phase before and after the sample as follows:
616+
Each time a new [=animation frame=] is established and the animation does
617+
<em>not</em> have a [=pending play task=] or [=pending pause task=],
618+
the events to dispatch are determined by
619+
comparing the animation's phase before and after establishing the new
620+
[=animation frame=] as follows:
585621
586622
<table class="event-state-transitions">
587623
<thead>
@@ -593,16 +629,18 @@ comparing the animation's phase before and after the sample as follows:
593629
</thead>
594630
<tbody>
595631
<tr>
596-
<td><a lt="idle phase">idle</a> or <a lt="before phase">before</a> &rarr;
597-
<a lt="active phase">active</a></td>
632+
<td>[=animation effect/idle phase|idle=] or
633+
[=animation effect/before phase|before=] &rarr;
634+
[=animation effect/active phase|active=]</td>
598635
<td>{{animationstart}}</td>
599636
<td><a>interval start</a>
600637
</td>
601638
</tr>
602639
<tr>
603640
<td rowspan="2">
604-
<a lt="idle phase">idle</a> or <a lt="before phase">before</a> &rarr;
605-
<a lt="after phase">after</a> <a
641+
[=animation effect/idle phase|idle=] or
642+
[=animation effect/before phase|before=] &rarr;
643+
[=animation effect/after phase|after=] <a
606644
href="#multiple-events-note">&#x66d;</a></td>
607645
<td>{{animationstart}}</td>
608646
<td><a>interval start</a>
@@ -614,37 +652,37 @@ comparing the animation's phase before and after the sample as follows:
614652
</td>
615653
</tr>
616654
<tr>
617-
<td><a lt="active phase">active</a> &rarr;
618-
<a lt="before phase">before</a></td>
655+
<td>[=animation effect/active phase|active=] &rarr;
656+
[=animation effect/before phase|before=]</td>
619657
<td>{{animationend}}</td>
620658
<td><a>interval start</a></td>
621659
</tr>
622660
<tr>
623-
<td><a lt="active phase">active</a> &rarr;
624-
<a lt="active phase">active</a>
661+
<td>[=animation effect/active phase|active=] &rarr;
662+
[=animation effect/active phase|active=]
625663
<em>and</em>
626-
the <a>current iteration</a> of the animation's <a>target effect</a>
627-
has changed since the previous sample
664+
the <a>current iteration</a> of the animation's [=associated effect=]
665+
has changed since the previous animation frame
628666
</td>
629667
<td>{{animationiteration}}</td>
630668
<td>(See below)
631669
<a href="#animation-iteration-elapsed-time">&dagger;</a></td>
632670
</tr>
633671
<tr>
634-
<td><a lt="active phase">active</a> &rarr;
635-
<a lt="after phase">after</a></td>
672+
<td>[=animation effect/active phase|active=] &rarr;
673+
[=animation effect/after phase|after=]</td>
636674
<td>{{animationend}}</td>
637675
<td><a>interval end</a></td>
638676
</tr>
639677
<tr>
640-
<td><a lt="after phase">after</a> &rarr;
641-
<a lt="active phase">active</a></td>
678+
<td>[=animation effect/after phase|after=] &rarr;
679+
[=animation effect/active phase|active=]</td>
642680
<td>{{animationstart}}</td>
643681
<td><a>interval end</a></td>
644682
</tr>
645683
<tr>
646-
<td rowspan="2"><a lt="after phase">after</a> &rarr;
647-
<a lt="before phase">before</a> <a
684+
<td rowspan="2">[=animation effect/after phase|after=] &rarr;
685+
[=animation effect/before phase|before=] <a
648686
href="#multiple-events-note">&#x66d;</a></td>
649687
<td>{{animationstart}}</td>
650688
<td><a>interval end</a></td>
@@ -654,9 +692,9 @@ comparing the animation's phase before and after the sample as follows:
654692
<td><a>interval start</a></td>
655693
</tr>
656694
<tr>
657-
<td><em>not</em> <a lt="idle phase">idle</a> and <em>not</em>
658-
<a lt="after phase">after</a>&rarr;
659-
<a lt="idle phase">idle</a></td>
695+
<td><em>not</em> [=animation effect/idle phase|idle=] and <em>not</em>
696+
[=animation effect/after phase|after=] &rarr;
697+
[=animation effect/idle phase|idle=]</td>
660698
<td>{{animationcancel}}</td>
661699
<td>The <a>active time</a> of the animation at the moment it was cancelled
662700
calculated using a <a>fill mode</a> of both.</td>
@@ -672,7 +710,7 @@ succession.</p>
672710
an {{animationiteration}} event is defined as follows:</p>
673711
674712
1. Let <var>previous current iteration</var> be the <a>current iteration</a>
675-
from the previous sample.
713+
from the previous animation frame.
676714
677715
1. If <var>previous current iteration</var> is greater than <a>current
678716
iteration</a>, let <var>iteration boundary</var> be <code><a>current
@@ -699,8 +737,8 @@ interface CSSAnimation : Animation {
699737
</pre>
700738
701739
: <dfn attribute for=CSSAnimation>animationName</dfn>
702-
:: The key used to find matching keyframes rules that define <a>target
703-
effect</a> at the point when the animation was created.
740+
:: The key used to find matching keyframes rules that define the
741+
[=associated effect=] at the point when the animation was created.
704742
This is the value of the 'animation-name' property that caused this
705743
object to be generated.
706744

0 commit comments

Comments
 (0)