From 521261489000e8fb83178066af8705583abf534a Mon Sep 17 00:00:00 2001 From: Brian Birtles Date: Fri, 25 Oct 2024 11:04:09 +0900 Subject: [PATCH] [web-animations-1] Require a style flush at the end of commitStyles Fixes #11084. --- web-animations-1/Overview.bs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/web-animations-1/Overview.bs b/web-animations-1/Overview.bs index 6539775cf95..18e631af773 100644 --- a/web-animations-1/Overview.bs +++ b/web-animations-1/Overview.bs @@ -4877,6 +4877,22 @@ The {{Animation}} interface {#the-animation-interface} calling this method does 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. + +
+ + Without the requirement to update the computed style + at the end of the procedure, + calling `commitStyles` followed by immediately canceling an animation + could 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=]. + +
+
Since the procedure to [=commit computed styles=]