diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index f61f92c0e..e448dde7f 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -2110,6 +2110,11 @@ interface ScrollOptions { behavior?: ScrollBehavior; } +interface ScrollTimelineOptions { + axis?: ScrollAxis; + source?: Element | null; +} + interface ScrollToOptions extends ScrollOptions { left?: number; top?: number; @@ -2489,6 +2494,12 @@ interface VideoFrameInit { visibleRect?: DOMRectInit; } +interface ViewTimelineOptions { + axis?: ScrollAxis; + inset?: string | (CSSNumericValue | CSSKeywordValue)[]; + subject?: Element; +} + interface WaveShaperOptions extends AudioNodeOptions { curve?: number[] | Float32Array; oversample?: OverSampleType; @@ -30550,6 +30561,31 @@ declare var ScriptProcessorNode: { new(): ScriptProcessorNode; }; +/** + * The **`ScrollTimeline`** interface of the Web Animations API represents a scroll progress timeline (see CSS scroll-driven animations for more details). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScrollTimeline) + */ +interface ScrollTimeline extends AnimationTimeline { + /** + * The **`axis`** read-only property of the An enumerated value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScrollTimeline/axis) + */ + readonly axis: ScrollAxis; + /** + * The **`source`** read-only property of the An Element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScrollTimeline/source) + */ + readonly source: Element | null; +} + +declare var ScrollTimeline: { + prototype: ScrollTimeline; + new(options?: ScrollTimelineOptions): ScrollTimeline; +}; + /** * The **`SecurityPolicyViolationEvent`** interface inherits from Event, and represents the event object of a `securitypolicyviolation` event sent on an Element/securitypolicyviolation_event, Document/securitypolicyviolation_event, or WorkerGlobalScope/securitypolicyviolation_event when its Content Security Policy (CSP) is violated. * @@ -33696,6 +33732,37 @@ declare var VideoPlaybackQuality: { new(): VideoPlaybackQuality; }; +/** + * The **`ViewTimeline`** interface of the Web Animations API represents a view progress timeline (see CSS scroll-driven animations for more details). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTimeline) + */ +interface ViewTimeline extends ScrollTimeline { + /** + * The **`endOffset`** read-only property of the ViewTimeline interface returns a CSSNumericValue representing the ending (100% progress) scroll position of the timeline as an offset from the start of the overflowing section of content in the scroller. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTimeline/endOffset) + */ + readonly endOffset: CSSNumericValue; + /** + * The **`startOffset`** read-only property of the ViewTimeline interface returns a CSSNumericValue representing the starting (0% progress) scroll position of the timeline as an offset from the start of the overflowing section of content in the scroller. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTimeline/startOffset) + */ + readonly startOffset: CSSNumericValue; + /** + * The **`subject`** read-only property of the ViewTimeline interface returns a reference to the subject element whose visibility within its nearest ancestor scrollable element (scroller) is driving the progress of the timeline. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTimeline/subject) + */ + readonly subject: Element; +} + +declare var ViewTimeline: { + prototype: ViewTimeline; + new(options?: ViewTimelineOptions): ViewTimeline; +}; + /** * The **`ViewTransition`** interface of the View Transition API represents an active view transition, and provides functionality to react to the transition reaching different states (e.g., ready to run the animation, or animation finished) or skip the transition altogether. * @@ -39750,6 +39817,7 @@ type ResidentKeyRequirement = "discouraged" | "preferred" | "required"; type ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; +type ScrollAxis = "block" | "inline" | "x" | "y"; type ScrollBehavior = "auto" | "instant" | "smooth"; type ScrollLogicalPosition = "center" | "end" | "nearest" | "start"; type ScrollRestoration = "auto" | "manual"; diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 04bc20e20..6a2a41887 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -2110,6 +2110,11 @@ interface ScrollOptions { behavior?: ScrollBehavior; } +interface ScrollTimelineOptions { + axis?: ScrollAxis; + source?: Element | null; +} + interface ScrollToOptions extends ScrollOptions { left?: number; top?: number; @@ -2489,6 +2494,12 @@ interface VideoFrameInit { visibleRect?: DOMRectInit; } +interface ViewTimelineOptions { + axis?: ScrollAxis; + inset?: string | (CSSNumericValue | CSSKeywordValue)[]; + subject?: Element; +} + interface WaveShaperOptions extends AudioNodeOptions { curve?: number[] | Float32Array; oversample?: OverSampleType; @@ -30528,6 +30539,31 @@ declare var ScriptProcessorNode: { new(): ScriptProcessorNode; }; +/** + * The **`ScrollTimeline`** interface of the Web Animations API represents a scroll progress timeline (see CSS scroll-driven animations for more details). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScrollTimeline) + */ +interface ScrollTimeline extends AnimationTimeline { + /** + * The **`axis`** read-only property of the An enumerated value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScrollTimeline/axis) + */ + readonly axis: ScrollAxis; + /** + * The **`source`** read-only property of the An Element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScrollTimeline/source) + */ + readonly source: Element | null; +} + +declare var ScrollTimeline: { + prototype: ScrollTimeline; + new(options?: ScrollTimelineOptions): ScrollTimeline; +}; + /** * The **`SecurityPolicyViolationEvent`** interface inherits from Event, and represents the event object of a `securitypolicyviolation` event sent on an Element/securitypolicyviolation_event, Document/securitypolicyviolation_event, or WorkerGlobalScope/securitypolicyviolation_event when its Content Security Policy (CSP) is violated. * @@ -33673,6 +33709,37 @@ declare var VideoPlaybackQuality: { new(): VideoPlaybackQuality; }; +/** + * The **`ViewTimeline`** interface of the Web Animations API represents a view progress timeline (see CSS scroll-driven animations for more details). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTimeline) + */ +interface ViewTimeline extends ScrollTimeline { + /** + * The **`endOffset`** read-only property of the ViewTimeline interface returns a CSSNumericValue representing the ending (100% progress) scroll position of the timeline as an offset from the start of the overflowing section of content in the scroller. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTimeline/endOffset) + */ + readonly endOffset: CSSNumericValue; + /** + * The **`startOffset`** read-only property of the ViewTimeline interface returns a CSSNumericValue representing the starting (0% progress) scroll position of the timeline as an offset from the start of the overflowing section of content in the scroller. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTimeline/startOffset) + */ + readonly startOffset: CSSNumericValue; + /** + * The **`subject`** read-only property of the ViewTimeline interface returns a reference to the subject element whose visibility within its nearest ancestor scrollable element (scroller) is driving the progress of the timeline. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTimeline/subject) + */ + readonly subject: Element; +} + +declare var ViewTimeline: { + prototype: ViewTimeline; + new(options?: ViewTimelineOptions): ViewTimeline; +}; + /** * The **`ViewTransition`** interface of the View Transition API represents an active view transition, and provides functionality to react to the transition reaching different states (e.g., ready to run the animation, or animation finished) or skip the transition altogether. * @@ -39727,6 +39794,7 @@ type ResidentKeyRequirement = "discouraged" | "preferred" | "required"; type ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; +type ScrollAxis = "block" | "inline" | "x" | "y"; type ScrollBehavior = "auto" | "instant" | "smooth"; type ScrollLogicalPosition = "center" | "end" | "nearest" | "start"; type ScrollRestoration = "auto" | "manual"; diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 9210977da..8fe1d3c74 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -2110,6 +2110,11 @@ interface ScrollOptions { behavior?: ScrollBehavior; } +interface ScrollTimelineOptions { + axis?: ScrollAxis; + source?: Element | null; +} + interface ScrollToOptions extends ScrollOptions { left?: number; top?: number; @@ -2489,6 +2494,12 @@ interface VideoFrameInit { visibleRect?: DOMRectInit; } +interface ViewTimelineOptions { + axis?: ScrollAxis; + inset?: string | (CSSNumericValue | CSSKeywordValue)[]; + subject?: Element; +} + interface WaveShaperOptions extends AudioNodeOptions { curve?: number[] | Float32Array; oversample?: OverSampleType; @@ -30550,6 +30561,31 @@ declare var ScriptProcessorNode: { new(): ScriptProcessorNode; }; +/** + * The **`ScrollTimeline`** interface of the Web Animations API represents a scroll progress timeline (see CSS scroll-driven animations for more details). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScrollTimeline) + */ +interface ScrollTimeline extends AnimationTimeline { + /** + * The **`axis`** read-only property of the An enumerated value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScrollTimeline/axis) + */ + readonly axis: ScrollAxis; + /** + * The **`source`** read-only property of the An Element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScrollTimeline/source) + */ + readonly source: Element | null; +} + +declare var ScrollTimeline: { + prototype: ScrollTimeline; + new(options?: ScrollTimelineOptions): ScrollTimeline; +}; + /** * The **`SecurityPolicyViolationEvent`** interface inherits from Event, and represents the event object of a `securitypolicyviolation` event sent on an Element/securitypolicyviolation_event, Document/securitypolicyviolation_event, or WorkerGlobalScope/securitypolicyviolation_event when its Content Security Policy (CSP) is violated. * @@ -33696,6 +33732,37 @@ declare var VideoPlaybackQuality: { new(): VideoPlaybackQuality; }; +/** + * The **`ViewTimeline`** interface of the Web Animations API represents a view progress timeline (see CSS scroll-driven animations for more details). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTimeline) + */ +interface ViewTimeline extends ScrollTimeline { + /** + * The **`endOffset`** read-only property of the ViewTimeline interface returns a CSSNumericValue representing the ending (100% progress) scroll position of the timeline as an offset from the start of the overflowing section of content in the scroller. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTimeline/endOffset) + */ + readonly endOffset: CSSNumericValue; + /** + * The **`startOffset`** read-only property of the ViewTimeline interface returns a CSSNumericValue representing the starting (0% progress) scroll position of the timeline as an offset from the start of the overflowing section of content in the scroller. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTimeline/startOffset) + */ + readonly startOffset: CSSNumericValue; + /** + * The **`subject`** read-only property of the ViewTimeline interface returns a reference to the subject element whose visibility within its nearest ancestor scrollable element (scroller) is driving the progress of the timeline. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTimeline/subject) + */ + readonly subject: Element; +} + +declare var ViewTimeline: { + prototype: ViewTimeline; + new(options?: ViewTimelineOptions): ViewTimeline; +}; + /** * The **`ViewTransition`** interface of the View Transition API represents an active view transition, and provides functionality to react to the transition reaching different states (e.g., ready to run the animation, or animation finished) or skip the transition altogether. * @@ -39750,6 +39817,7 @@ type ResidentKeyRequirement = "discouraged" | "preferred" | "required"; type ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; +type ScrollAxis = "block" | "inline" | "x" | "y"; type ScrollBehavior = "auto" | "instant" | "smooth"; type ScrollLogicalPosition = "center" | "end" | "nearest" | "start"; type ScrollRestoration = "auto" | "manual"; diff --git a/inputfiles/overridingTypes.jsonc b/inputfiles/overridingTypes.jsonc index 1b9559938..f8acee220 100644 --- a/inputfiles/overridingTypes.jsonc +++ b/inputfiles/overridingTypes.jsonc @@ -3810,9 +3810,6 @@ "GPUValidationError": { "exposed": "" }, - "ScrollTimeline": { - "exposed": "" - }, "TrustedHTML": { "exposed": "" }, @@ -3828,9 +3825,6 @@ "TrustedTypePolicyFactory": { "exposed": "" }, - "ViewTimeline": { - "exposed": "" - }, "WGSLLanguageFeatures": { "exposed": "" },