blob: 1f5eebf17c86db649847618f7db23e8251f6d5e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
typedef (CSSNumericValue or CSSKeywordish) ScrollTimelineContainerBasedOffset;
typedef (ScrollTimelineContainerBasedOffset or ScrollTimelineElementBasedOffset) ScrollTimelineOffset;
// https://wicg.github.io/scroll-animations/#scrolltimeline-interface
[
RuntimeEnabled=ScrollTimeline,
Exposed=Window
] interface ScrollTimeline : AnimationTimeline {
[CallWith=Document, RaisesException, MeasureAs=ScrollTimelineConstructor] constructor(optional ScrollTimelineOptions options = {});
readonly attribute Element? scrollSource;
readonly attribute ScrollDirection orientation;
readonly attribute ScrollTimelineOffset startScrollOffset;
readonly attribute ScrollTimelineOffset endScrollOffset;
readonly attribute FrozenArray<ScrollTimelineOffset> scrollOffsets;
readonly attribute (double or ScrollTimelineAutoKeyword) timeRange;
};
|