Files
react-native-devtools-frontend/node_modules/@webref/idl/scroll-animations.idl
T
Victor Porof 6e09692deb Add @webref/idl dependency
Signed-off-by: Victor Porof <victorporof@chromium.org>
Bug: 1325812
Change-Id: I044170880d20ce0402062755787cccafd63c6a42
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3695370
Reviewed-by: Mathias Bynens <mathias@chromium.org>
2022-06-13 10:23:45 +00:00

47 lines
1.3 KiB
Plaintext

// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
// Source: Scroll-linked Animations (https://drafts.csswg.org/scroll-animations-1/)
enum ScrollDirection {
"block",
"inline",
"horizontal",
"vertical"
};
enum ScrollTimelineAutoKeyword { "auto" };
typedef (CSSNumericValue or CSSKeywordish) ContainerBasedOffset;
typedef (ContainerBasedOffset or ElementBasedOffset) ScrollTimelineOffset;
dictionary ScrollTimelineOptions {
Element? source;
ScrollDirection orientation = "block";
sequence<ScrollTimelineOffset> scrollOffsets = [];
};
[Exposed=Window]
interface ScrollTimeline : AnimationTimeline {
constructor(optional ScrollTimelineOptions options = {});
readonly attribute Element? source;
readonly attribute ScrollDirection orientation;
readonly attribute FrozenArray<ScrollTimelineOffset> scrollOffsets;
};
enum Edge { "start", "end" };
dictionary ElementBasedOffset {
Element target;
Edge edge = "start";
double threshold = 0.0;
};
[Exposed=Window]
interface CSSScrollTimelineRule : CSSRule {
readonly attribute CSSOMString name;
readonly attribute CSSOMString source;
readonly attribute CSSOMString orientation;
readonly attribute CSSOMString scrollOffsets;
};