mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-07 04:26:32 +08:00
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>
47 lines
1.3 KiB
Plaintext
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;
|
|
};
|