Skip to content

Commit 4b6bb10

Browse files
committed
[css-animations-2] Tweak 'requirements on pending style changes'
1 parent df9c299 commit 4b6bb10

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

css-animations-2/Overview.bs

+6-5
Original file line numberDiff line numberDiff line change
@@ -491,11 +491,12 @@ As an example, in the following code fragment, when the specified style of
491491
<code>elem</code> is initially updated, a user agent may defer recalculating
492492
the computed value of the 'animation' property.
493493
494-
However, the <code>getAnimations</code> method from the {{Element}} interface
495-
which is specified by [[!WEB-ANIMATIONS]] can return {{CSSAnimation}} objects as
496-
defined in this specification, and hence the user agent must calculate the
497-
updated value <code>elem</code>'s 'animation' property and create
498-
the requested {{CSSAnimation}} object before returning its result.
494+
However, the {{Animatable/getAnimations()}} method called on <code>elem</code>
495+
is specified by Web Animations and can return {{CSSAnimation}} objects as
496+
defined in this specification.
497+
Hence, as result of the requirements in this section, the user agent must
498+
calculate the updated value of <code>elem</code>'s 'animation' property and
499+
create the requested {{CSSAnimation}} object before returning its result.
499500
500501
<div><pre class="example lang-javascript">
501502
elem.style.animation = 'fadeOut 1s';

css-animations-2/Overview.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -550,11 +550,11 @@ <h3 class="heading settled" data-level="5.2" id="requirements-on-pending-style-c
550550
<div class="note" role="note">
551551
As an example, in the following code fragment, when the specified style of <code>elem</code> is initially updated, a user agent may defer recalculating
552552
the computed value of the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-animations-1/#propdef-animation">animation</a> property.
553-
<p>However, the <code>getAnimations</code> method from the <code class="idl"><a data-link-type="idl" href="https://dom.spec.whatwg.org/#element">Element</a></code> interface
554-
which is specified by <a data-link-type="biblio" href="#biblio-web-animations">[WEB-ANIMATIONS]</a> can return <code class="idl"><a data-link-type="idl" href="#cssanimation">CSSAnimation</a></code> objects as
555-
defined in this specification, and hence the user agent must calculate the
556-
updated value <code>elem</code>’s <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-animations-1/#propdef-animation">animation</a> property and create
557-
the requested <code class="idl"><a data-link-type="idl" href="#cssanimation">CSSAnimation</a></code> object before returning its result.</p>
553+
<p>However, the <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/web-animations/#dom-animatable-getanimations">getAnimations()</a></code> method called on <code>elem</code> is specified by Web Animations and can return <code class="idl"><a data-link-type="idl" href="#cssanimation">CSSAnimation</a></code> objects as
554+
defined in this specification.
555+
Hence, as result of the requirements in this section, the user agent must
556+
calculate the updated value of <code>elem</code>’s <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-animations-1/#propdef-animation">animation</a> property and
557+
create the requested <code class="idl"><a data-link-type="idl" href="#cssanimation">CSSAnimation</a></code> object before returning its result.</p>
558558
<div>
559559
<pre class="example lang-javascript" id="example-bec75963"><a class="self-link" href="#example-bec75963"></a>elem.style.animation = 'fadeOut 1s';
560560
elem.getAnimations()[0].pause();
@@ -740,7 +740,6 @@ <h3 class="no-num heading settled" id="index-defined-elsewhere"><span class="con
740740
<li>
741741
<a data-link-type="biblio" href="#biblio-dom-ls">[dom-ls]</a> defines the following terms:
742742
<ul>
743-
<li><a href="https://dom.spec.whatwg.org/#element">Element</a>
744743
<li><a href="https://dom.spec.whatwg.org/#concept-tree-order">tree order</a>
745744
</ul>
746745
<li>
@@ -773,6 +772,7 @@ <h3 class="no-num heading settled" id="index-defined-elsewhere"><span class="con
773772
<li><a href="http://www.w3.org/TR/web-animations/#animatable">Animatable</a>
774773
<li><a href="http://www.w3.org/TR/web-animations/#animationtimeline">AnimationTimeline</a>
775774
<li><a href="http://www.w3.org/TR/web-animations/#dictdef-keyframeeffectoptions">KeyframeEffectOptions</a>
775+
<li><a href="http://www.w3.org/TR/web-animations/#dom-animatable-getanimations">getAnimations()</a>
776776
</ul>
777777
<li>
778778
<a data-link-type="biblio" href="#biblio-webidl">[WebIDL]</a> defines the following terms:

0 commit comments

Comments
 (0)