@@ -534,6 +534,7 @@ spec: cssom-view-1; type: dfn;
534534 dictionary ViewTimelineOptions {
535535 Element subject;
536536 ScrollAxis axis = "block";
537+ (DOMString or sequence<(CSSNumericValue or CSSKeywordValue)>) inset = "auto";
537538 };
538539
539540 [Exposed=Window]
@@ -608,15 +609,26 @@ spec: cssom-view-1; type: dfn;
608609 1. Set the {{ScrollTimeline/source}} of |timeline|
609610 to the {{ViewTimeline/subject}} ’s
610611 nearest ancestor [=scroll container=] element.
612+
613+ 1. If a {{DOMString}} value is provided as an |inset|,
614+ parse it as a <<'view-timeline-inset'>> value;
615+ if a sequence is provided,
616+ the first value represents the start inset
617+ and the second value represents the end inset.
618+ If the sequence has only one value,
619+ it is duplicated.
620+ If it has zero values or more than two values,
621+ or if it contains a {{CSSKeywordValue}} whose {{CSSKeywordValue/value}} is not "auto",
622+ throw a <span class="exceptionname"> TypeError</span> .
623+
624+ These insets define the {{ViewTimeline}} ’s [=view progress visibility range=] .
611625 </dl>
612626
613627 If the {{ScrollTimeline/source}} or {{ViewTimeline/subject}} of a {{ViewTimeline}}
614628 is an element whose [=principal box=] does not exist,
615629 or if its nearest ancestor [=scroll container=] has no [=scrollable overflow=] ,
616630 then the {{ViewTimeline}} is [=inactive timeline|inactive=] .
617631
618- ISSUE: Figure out how to incorporate fit/inset abilities.
619-
620632 The values of {{ViewTimeline/subject}} , {{ScrollTimeline/source}} , and {{AnimationTimeline/currentTime}}
621633 are all computed when any of them is requested or updated.
622634
0 commit comments