servo/tests/wpt/web-platform-tests/interfaces/scroll-animations.idl

39 lines
1.1 KiB
Text

// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into reffy-reports
// (https://github.com/tidoust/reffy-reports)
// Source: Scroll-linked Animations (https://drafts.csswg.org/scroll-animations-1/)
enum ScrollDirection {
"block",
"inline",
"horizontal",
"vertical"
};
enum ScrollTimelineAutoKeyword { "auto" };
dictionary ScrollTimelineOptions {
Element? source = null;
ScrollDirection orientation = "block";
(DOMString or ElementBasedOffset) start = "auto";
(DOMString or ElementBasedOffset) end = "auto";
(double or ScrollTimelineAutoKeyword) timeRange = "auto";
};
[Exposed=Window]
interface ScrollTimeline : AnimationTimeline {
constructor(optional ScrollTimelineOptions options = {});
readonly attribute Element source;
readonly attribute ScrollDirection orientation;
readonly attribute DOMString start;
readonly attribute DOMString end;
readonly attribute (double or ScrollTimelineAutoKeyword) timeRange;
};
enum Edge { "start", "end" };
dictionary ElementBasedOffset {
Element target;
Edge edge = "start";
double threshold = 0.0;
};