Skip to content

Commit fea54cd

Browse files
authored
[web-animations-2] [scroll-animations] should calling play() reset the start time of a scroll-driven animation? (#14146)
Address #11469.
1 parent 324e9d7 commit fea54cd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

web-animations-2/Overview.bs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,8 +654,10 @@ as CSS Animations [[CSS-ANIMATIONS-1]].
654654

655655
</dl>
656656

657-
1. If |has finite timeline| and |previous current time| is unresolved:
658-
* Set the flag |auto align start time| to true.
657+
1. If |has finite timeline| and |auto-rewind| is true:
658+
659+
1. Set the flag |auto align start time| to true.
660+
1. Set the |animation|'s <a>hold time</a> to |previous current time|.
659661

660662
Note: If play is called for a CSS animation during style update,
661663
the |animation|'s [=animation/start time=] cannot be reliably calculated until post layout since the start time is to align with the start or end of the animation range (depending on the [=playback rate=]).

0 commit comments

Comments
 (0)