blob: bdd41187044051fb0cc4d3165e9a7c99a1b23e58 [file] [log] [blame]
Victor Porof6e096922022-06-10 13:01:05 +00001// GENERATED CONTENT - DO NOT EDIT
2// Content was automatically extracted by Reffy into webref
3// (https://github.com/w3c/webref)
4// Source: Scroll-linked Animations (https://drafts.csswg.org/scroll-animations-1/)
5
6enum ScrollDirection {
7 "block",
8 "inline",
9 "horizontal",
10 "vertical"
11};
12
13enum ScrollTimelineAutoKeyword { "auto" };
14
15typedef (CSSNumericValue or CSSKeywordish) ContainerBasedOffset;
16typedef (ContainerBasedOffset or ElementBasedOffset) ScrollTimelineOffset;
17
18dictionary ScrollTimelineOptions {
19 Element? source;
20 ScrollDirection orientation = "block";
21 sequence<ScrollTimelineOffset> scrollOffsets = [];
22};
23
24[Exposed=Window]
25interface ScrollTimeline : AnimationTimeline {
26 constructor(optional ScrollTimelineOptions options = {});
27 readonly attribute Element? source;
28 readonly attribute ScrollDirection orientation;
29 readonly attribute FrozenArray<ScrollTimelineOffset> scrollOffsets;
30};
31
32enum Edge { "start", "end" };
33
34dictionary ElementBasedOffset {
35 Element target;
36 Edge edge = "start";
37 double threshold = 0.0;
38};
39
40[Exposed=Window]
41interface CSSScrollTimelineRule : CSSRule {
42 readonly attribute CSSOMString name;
43 readonly attribute CSSOMString source;
44 readonly attribute CSSOMString orientation;
45 readonly attribute CSSOMString scrollOffsets;
46};