diff options
Diffstat (limited to '')
-rw-r--r-- | test/wpt/tests/interfaces/scroll-animations.idl | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/test/wpt/tests/interfaces/scroll-animations.idl b/test/wpt/tests/interfaces/scroll-animations.idl new file mode 100644 index 0000000..31b3746 --- /dev/null +++ b/test/wpt/tests/interfaces/scroll-animations.idl @@ -0,0 +1,46 @@ +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Scroll-driven Animations (https://drafts.csswg.org/scroll-animations-1/) + +enum ScrollAxis { + "block", + "inline", + "horizontal", + "vertical" +}; + +dictionary ScrollTimelineOptions { + Element? source; + ScrollAxis axis = "block"; +}; + +[Exposed=Window] +interface ScrollTimeline : AnimationTimeline { + constructor(optional ScrollTimelineOptions options = {}); + readonly attribute Element? source; + readonly attribute ScrollAxis axis; +}; + +dictionary ViewTimelineOptions { + Element subject; + ScrollAxis axis = "block"; + (DOMString or sequence<(CSSNumericValue or CSSKeywordValue)>) inset = "auto"; +}; + +[Exposed=Window] +interface ViewTimeline : ScrollTimeline { + constructor(optional ViewTimelineOptions options = {}); + readonly attribute Element subject; + readonly attribute CSSNumericValue startOffset; + readonly attribute CSSNumericValue endOffset; +}; + +dictionary AnimationTimeOptions { + DOMString? range; +}; + +[Exposed=Window] +partial interface AnimationTimeline { + CSSNumericValue? getCurrentTime(optional AnimationTimeOptions options = {}); +}; |