Victor Porof | 6e09692 | 2022-06-10 13:01:05 +0000 | [diff] [blame] | 1 | // 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 | |
| 6 | enum ScrollDirection { |
| 7 | "block", |
| 8 | "inline", |
| 9 | "horizontal", |
| 10 | "vertical" |
| 11 | }; |
| 12 | |
| 13 | enum ScrollTimelineAutoKeyword { "auto" }; |
| 14 | |
| 15 | typedef (CSSNumericValue or CSSKeywordish) ContainerBasedOffset; |
| 16 | typedef (ContainerBasedOffset or ElementBasedOffset) ScrollTimelineOffset; |
| 17 | |
| 18 | dictionary ScrollTimelineOptions { |
| 19 | Element? source; |
| 20 | ScrollDirection orientation = "block"; |
| 21 | sequence<ScrollTimelineOffset> scrollOffsets = []; |
| 22 | }; |
| 23 | |
| 24 | [Exposed=Window] |
| 25 | interface 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 | |
| 32 | enum Edge { "start", "end" }; |
| 33 | |
| 34 | dictionary ElementBasedOffset { |
| 35 | Element target; |
| 36 | Edge edge = "start"; |
| 37 | double threshold = 0.0; |
| 38 | }; |
| 39 | |
| 40 | [Exposed=Window] |
| 41 | interface CSSScrollTimelineRule : CSSRule { |
| 42 | readonly attribute CSSOMString name; |
| 43 | readonly attribute CSSOMString source; |
| 44 | readonly attribute CSSOMString orientation; |
| 45 | readonly attribute CSSOMString scrollOffsets; |
| 46 | }; |