mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
Update web-platform-tests to revision b'b728032f59a396243864b0f8584e7211e3632005'
This commit is contained in:
parent
ace9b32b1c
commit
df68c4e5d1
15632 changed files with 514865 additions and 155000 deletions
|
@ -3,44 +3,40 @@
|
|||
// (https://github.com/w3c/webref)
|
||||
// Source: Scroll-linked Animations (https://drafts.csswg.org/scroll-animations-1/)
|
||||
|
||||
enum ScrollDirection {
|
||||
enum ScrollAxis {
|
||||
"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 = [];
|
||||
ScrollAxis axis = "block";
|
||||
};
|
||||
|
||||
[Exposed=Window]
|
||||
interface ScrollTimeline : AnimationTimeline {
|
||||
constructor(optional ScrollTimelineOptions options = {});
|
||||
readonly attribute Element? source;
|
||||
readonly attribute ScrollDirection orientation;
|
||||
readonly attribute FrozenArray<ScrollTimelineOffset> scrollOffsets;
|
||||
readonly attribute ScrollAxis axis;
|
||||
};
|
||||
|
||||
enum Edge { "start", "end" };
|
||||
|
||||
dictionary ElementBasedOffset {
|
||||
Element target;
|
||||
Edge edge = "start";
|
||||
double threshold = 0.0;
|
||||
dictionary ViewTimelineOptions {
|
||||
Element subject;
|
||||
ScrollAxis axis = "block";
|
||||
};
|
||||
|
||||
[Exposed=Window]
|
||||
interface CSSScrollTimelineRule : CSSRule {
|
||||
readonly attribute CSSOMString name;
|
||||
readonly attribute CSSOMString source;
|
||||
readonly attribute CSSOMString orientation;
|
||||
readonly attribute CSSOMString scrollOffsets;
|
||||
interface ViewTimeline : ScrollTimeline {
|
||||
constructor(optional ViewTimelineOptions options = {});
|
||||
readonly attribute Element subject;
|
||||
readonly attribute CSSNumericValue startOffset;
|
||||
readonly attribute CSSNumericValue endOffset;
|
||||
};
|
||||
|
||||
[Exposed=Window]
|
||||
interface AnimationTimeline {
|
||||
readonly attribute CSSNumberish? currentTime;
|
||||
CSSNumericValue? getCurrentTime(optional CSSOMString rangeName);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue