Skip to content

Commit 9a8316d

Browse files
committed
Move 'Extensions to the DocumentTimeline interface' under 'Triggering animations'
1 parent 31d3333 commit 9a8316d

1 file changed

Lines changed: 27 additions & 27 deletions

File tree

Overview.bs

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,33 @@ element.
308308
</div>
309309
</div>
310310

311+
## Extensions to the {{DocumentTimeline}} interface ## {#document-timeline-interface}
312+
313+
<pre class="idl">
314+
partial dictionary DocumentTimelineOptions {
315+
ScrollTrigger trigger;
316+
};
317+
[Constructor(DocumentTimelineOptions options)]
318+
partial interface DocumentTimeline {
319+
readonly attribute ScrollTrigger trigger;
320+
};
321+
</pre>
322+
323+
Issue: We should add the DocumentTimelineOptions to the [[WEB-ANIMATIONS-1]].
324+
325+
Issue: Do we need to repeat the attribute here? It is already listed in [[#extensions-to-animationtimeline]].
326+
327+
The {{DocumentTimeline}} is defined in [[WEB-ANIMATIONS-1]].
328+
329+
If we specified the trigger, this DocumentTimeline will perform following behaviors.
330+
1. If the ScrollTriggerKind of specified options is "offset":
331+
1. DocumentTimeline will return current document timeline time after exceed specified offset.
332+
1. If the ScrollTriggerKind of specified options is "range":
333+
1. DocumentTimeline wil lreturn current document timeline time when scroll offset is within specified range.
334+
335+
ISSUE: Is it necessary to specify the above, or does it fall out naturally from the definitions of
336+
{{ScrollTrigger}}, {{AnimationTimeline/trigger}}, and [[web-animations#inactive-timeline]]?
337+
311338
## The 'scroll-container-name' property ## {#scroll-container-name}
312339

313340
<pre class='propdef'>
@@ -534,33 +561,6 @@ as follows:
534561

535562
</div> <!-- link-for-hint="ScrollTrigger" -->
536563

537-
## Extensions to the {{DocumentTimeline}} interface ## {#document-timeline-interface}
538-
539-
<pre class="idl">
540-
partial dictionary DocumentTimelineOptions {
541-
ScrollTrigger trigger;
542-
};
543-
[Constructor(DocumentTimelineOptions options)]
544-
partial interface DocumentTimeline {
545-
readonly attribute ScrollTrigger trigger;
546-
};
547-
</pre>
548-
549-
Issue: We should add the DocumentTimelineOptions to the [[WEB-ANIMATIONS-1]].
550-
551-
Issue: Do we need to repeat the attribute here? It is already listed in [[#extensions-to-animationtimeline]].
552-
553-
The {{DocumentTimeline}} is defined in [[WEB-ANIMATIONS-1]].
554-
555-
If we specified the trigger, this DocumentTimeline will perform following behaviors.
556-
1. If the ScrollTriggerKind of specified options is "offset":
557-
1. DocumentTimeline will return current document timeline time after exceed specified offset.
558-
1. If the ScrollTriggerKind of specified options is "range":
559-
1. DocumentTimeline wil lreturn current document timeline time when scroll offset is within specified range.
560-
561-
ISSUE: Is it necessary to specify the above, or does it fall out naturally from the definitions of
562-
{{ScrollTrigger}}, {{AnimationTimeline/trigger}}, and [[web-animations#inactive-timeline]]?
563-
564564
## The 'animation-timeline' property ## {#animation-timeline}
565565

566566
<pre class='propdef'>

0 commit comments

Comments
 (0)