Skip to content

Commit 553f515

Browse files
committed
[scroll-animations-1] Allow getCurrentTime to return out-of-range times. w3c#8114
1 parent 947f69b commit 553f515

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
@@ -898,11 +898,16 @@ spec: cssom-view-1; type: dfn;
898898

899899
1. If |rangeName| is a valid [=named timeline range=] on [=this=],
900900
let |progress| be the current progress through that range,
901-
expressed as a percentage value between 0 and 100.
901+
expressed as a percentage value.
902902

903903
Create a [=new unit value=] from (|progress|, "percent")
904904
and return it.
905905

906+
If the start and end points of the [=named timeline range=] coincide,
907+
return negative infinity for time values before it,
908+
positive infinity for time values after it,
909+
and zero for time values coinciding with that point.
910+
906911
2. Otherwise, return null.
907912

908913
2. Let |current time|

0 commit comments

Comments
 (0)