File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -4877,6 +4877,22 @@ The {{Animation}} interface {#the-animation-interface}
4877
4877
calling this method <em> does</em> trigger a [=style change event=]
4878
4878
(see [[#model-liveness]] ).
4879
4879
4880
+ Furthermore,
4881
+ after updating the style attribute of each effect target,
4882
+ the user agent must ensure that the corresponding computed style
4883
+ is updated.
4884
+
4885
+ <div class=note>
4886
+
4887
+ Without the requirement to update the computed style
4888
+ at the end of the procedure,
4889
+ calling `commitStyles` followed by immediately canceling an animation
4890
+ may cause a transition to be generated since the changes to the
4891
+ style attributes would not be reflected in the
4892
+ [=before-change style=] during the next [=style change event=] .
4893
+
4894
+ </div>
4895
+
4880
4896
<div class=note>
4881
4897
4882
4898
Since the procedure to [=commit computed styles=]
You can’t perform that action at this time.
0 commit comments