Skip to content

Commit

Permalink
[web-animations-1] Require a style flush at the end of commitStyles
Browse files Browse the repository at this point in the history
Fixes #11084.
  • Loading branch information
birtles committed Oct 25, 2024
1 parent bedf32e commit e24222b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions web-animations-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4877,6 +4877,22 @@ The {{Animation}} interface {#the-animation-interface}
calling this method <em>does</em> trigger a [=style change event=]
(see [[#model-liveness]]).

Furthermore,
after updating the style attribute of each effect target,
the user agent must ensure that the corresponding computed style
is updated.

<div class=note>

Without the requirement to update the computed style
at the end of the procedure,
calling `commitStyles` followed by immediately canceling an animation
may cause a transition to be generated since the changes to the
style attributes would not be reflected in the
[=before-change style=] during the next [=style change event=].

</div>

<div class=note>

Since the procedure to [=commit computed styles=]
Expand Down

0 comments on commit e24222b

Please sign in to comment.