Skip to content

Commit 43b12e4

Browse files
committed
[scroll-animations-1] Add length offsets to animation-range w3c#7575
* Add <length> offsets to timeline range offsets * Add <length-percentage> values referencing the whole timeline * Tighten up definitions
1 parent de5eab3 commit 43b12e4

1 file changed

Lines changed: 26 additions & 12 deletions

File tree

scroll-animations-1/Overview.bs

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -897,11 +897,11 @@ spec: cssom-view-1; type: dfn;
897897

898898
<pre class="propdef">
899899
Name: animation-range-start
900-
Value: [ normal | <<timeline-range-name>> <<percentage>> ]#
900+
Value: [ normal | <<length-percentage>> | <<timeline-range-name>> <<length-percentage>>? ]#
901901
Initial: normal
902902
Applies to: all elements
903903
Inherited: no
904-
Percentages: relative to the specified [=named timeline range=]
904+
Percentages: relative to the specified [=named timeline range=] if one was specified, else to the entire timeline
905905
Computed value: list, each item either the keyword ''animation-range-start/normal'' or a timeline range and progress percentage
906906
Animation type: not animatable
907907
</pre>
@@ -917,22 +917,30 @@ spec: cssom-view-1; type: dfn;
917917
The start of the animation’s [=active interval=]
918918
is determined as normal.
919919

920-
<dt><dfn><<timeline-range-name>> <<percentage>></dfn>
920+
<dt><dfn><<length-percentage>></dfn>
921+
<dd>
922+
The [=active interval=] starts
923+
at the specified point on the [=timeline=]
924+
measuring from the start of the timeline,
925+
plus any applicable [=start delay=].
926+
927+
<dt><dfn><<timeline-range-name>> <<length-percentage>>?</dfn>
921928
<dd>
922929
The [=active interval=] starts
923-
at the specified point on the [=timeline=],
930+
at the specified point on the [=timeline=]
931+
measuring from the start of the specified [=named timeline range=],
924932
plus any applicable [=start delay=].
925933
</dl>
926934

927935
### Specifying an Animation’s Timeline Range End: the 'animation-range-end' property ### {#animation-range-end}
928936

929937
<pre class="propdef">
930938
Name: animation-range-end
931-
Value: [ normal | <<timeline-range-name>> <<percentage>> ]#
939+
Value: [ normal | <<length-percentage>> | <<timeline-range-name>> <<length-percentage>>? ]#
932940
Initial: normal
933941
Applies to: all elements
934942
Inherited: no
935-
Percentages: relative to the specified [=named timeline range=]
943+
Percentages: relative to the specified [=named timeline range=] if one was specified, else to the entire timeline
936944
Computed value: list, each item either the keyword ''animation-range-end/normal'' or a timeline range and progress percentage
937945
Animation type: not animatable
938946
</pre>
@@ -948,13 +956,19 @@ spec: cssom-view-1; type: dfn;
948956
The end of the animation’s [=active interval=]
949957
is determined as normal.
950958

951-
<dt><dfn><<timeline-range-name>> <<percentage>></dfn>
959+
<dt><dfn><<length-percentage>></dfn>
960+
<dd>
961+
The [=active interval=] ends
962+
at the specified point on the [=timeline=]
963+
measuring from the start of the timeline,
964+
minus any applicable [=end delay=].
965+
966+
<dt><dfn><<timeline-range-name>> <<length-percentage>>?</dfn>
952967
<dd>
953-
The end of the [=active interval=]
954-
is at the specified point on the [=timeline=]
955-
minus any applicable [=end delay=],
956-
or at the end of the animation duration,
957-
whichever comes first.
968+
The [=active interval=] ends
969+
at the specified point on the [=timeline=]
970+
measuring from the start of the specified [=named timeline range=],
971+
minus any applicable [=end delay=].
958972
</dl>
959973

960974
## Reporting Timeline Range Progress: the ''getCurrentTime()'' method ## {#named-range-get-time}

0 commit comments

Comments
 (0)