Skip to content

Commit 9578e4d

Browse files
committed
[scroll-animations-1] getCurrentTime() returns percentages on ScrollTimelines
1 parent 553f515 commit 9578e4d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

scroll-animations-1/Overview.bs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,11 @@ spec: cssom-view-1; type: dfn;
913913
2. Let |current time|
914914
be the value of [=this's=] {{AnimationTimeline/currentTime}} internal slot.
915915

916-
Create a [=new unit value=] from (|current time|, "ms")
916+
If [=this=] is a {{ScrollTimeline}},
917+
create a [=new unit value=] from (|current time|, "percent")
918+
and return it.
919+
920+
Otherwise,
921+
create a [=new unit value=] from (|current time|, "ms")
917922
and return it.
918923
</div>

0 commit comments

Comments
 (0)