Skip to content

Commit e24222b

Browse files
committed
[web-animations-1] Require a style flush at the end of commitStyles
Fixes #11084.
1 parent bedf32e commit e24222b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

web-animations-1/Overview.bs

+16
Original file line numberDiff line numberDiff line change
@@ -4877,6 +4877,22 @@ The {{Animation}} interface {#the-animation-interface}
48774877
calling this method <em>does</em> trigger a [=style change event=]
48784878
(see [[#model-liveness]]).
48794879

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+
48804896
<div class=note>
48814897

48824898
Since the procedure to [=commit computed styles=]

0 commit comments

Comments
 (0)