mirror of
https://github.com/servo/servo.git
synced 2025-08-14 18:05:36 +01:00
Update web-platform-tests to revision 3bac98b37f29ec287e115fcecff566eb081131a8
This commit is contained in:
parent
6ff2524781
commit
57ea61dc86
64 changed files with 1309 additions and 347 deletions
|
@ -3,6 +3,7 @@
|
|||
// (https://github.com/tidoust/reffy-reports)
|
||||
// Source: Element Timing API (https://wicg.github.io/element-timing/)
|
||||
|
||||
[Exposed=Window]
|
||||
interface PerformanceElementTiming : PerformanceEntry {
|
||||
readonly attribute DOMHighResTimeStamp renderTime;
|
||||
readonly attribute DOMHighResTimeStamp loadTime;
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// (https://github.com/tidoust/reffy-reports)
|
||||
// Source: Largest Contentful Paint (https://wicg.github.io/largest-contentful-paint/)
|
||||
|
||||
[Exposed=Window]
|
||||
interface LargestContentfulPaint : PerformanceEntry {
|
||||
readonly attribute DOMHighResTimeStamp renderTime;
|
||||
readonly attribute DOMHighResTimeStamp loadTime;
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// (https://github.com/tidoust/reffy-reports)
|
||||
// Source: Layout Instability API (https://wicg.github.io/layout-instability/)
|
||||
|
||||
[Exposed=Window]
|
||||
interface LayoutShift : PerformanceEntry {
|
||||
readonly attribute long value;
|
||||
readonly attribute boolean hadRecentInput;
|
||||
|
|
|
@ -3,11 +3,13 @@
|
|||
// (https://github.com/tidoust/reffy-reports)
|
||||
// Source: Long Tasks API 1 (https://w3c.github.io/longtasks/)
|
||||
|
||||
[Exposed=Window]
|
||||
interface PerformanceLongTaskTiming : PerformanceEntry {
|
||||
readonly attribute FrozenArray<TaskAttributionTiming> attribution;
|
||||
[Default] object toJSON();
|
||||
};
|
||||
|
||||
[Exposed=Window]
|
||||
interface TaskAttributionTiming : PerformanceEntry {
|
||||
readonly attribute DOMString containerType;
|
||||
readonly attribute DOMString containerSrc;
|
||||
|
|
|
@ -7,6 +7,7 @@ partial interface HTMLVideoElement {
|
|||
VideoPlaybackQuality getVideoPlaybackQuality();
|
||||
};
|
||||
|
||||
[Exposed=Window]
|
||||
interface VideoPlaybackQuality {
|
||||
readonly attribute DOMHighResTimeStamp creationTime;
|
||||
readonly attribute unsigned long corruptedVideoFrames;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// Source: Screen Capture (https://w3c.github.io/mediacapture-screen-share/)
|
||||
|
||||
partial interface MediaDevices {
|
||||
Promise<MediaStream> getDisplayMedia(optional DisplayMediaStreamConstraints constraints);
|
||||
Promise<MediaStream> getDisplayMedia (optional DisplayMediaStreamConstraints constraints = {});
|
||||
};
|
||||
|
||||
dictionary DisplayMediaStreamConstraints {
|
||||
|
|
|
@ -22,7 +22,7 @@ dictionary ScrollTimelineOptions {
|
|||
};
|
||||
|
||||
[Exposed=Window,
|
||||
Constructor(optional ScrollTimelineOptions options)]
|
||||
Constructor(optional ScrollTimelineOptions options = {})]
|
||||
interface ScrollTimeline : AnimationTimeline {
|
||||
readonly attribute Element scrollSource;
|
||||
readonly attribute ScrollDirection orientation;
|
||||
|
|
|
@ -45,6 +45,7 @@ interface Touch {
|
|||
readonly attribute TouchType touchType;
|
||||
};
|
||||
|
||||
[Exposed=Window]
|
||||
interface TouchList {
|
||||
readonly attribute unsigned long length;
|
||||
getter Touch? item(unsigned long index);
|
||||
|
@ -56,15 +57,15 @@ dictionary TouchEventInit : EventModifierInit {
|
|||
sequence<Touch> changedTouches = [];
|
||||
};
|
||||
|
||||
[Constructor(DOMString type, optional TouchEventInit eventInitDict), Exposed=Window]
|
||||
[Constructor(DOMString type, optional TouchEventInit eventInitDict = {}), Exposed=Window]
|
||||
interface TouchEvent : UIEvent {
|
||||
readonly attribute TouchList touches;
|
||||
readonly attribute TouchList targetTouches;
|
||||
readonly attribute TouchList changedTouches;
|
||||
readonly attribute boolean altKey;
|
||||
readonly attribute boolean metaKey;
|
||||
readonly attribute boolean ctrlKey;
|
||||
readonly attribute boolean shiftKey;
|
||||
readonly attribute boolean altKey;
|
||||
readonly attribute boolean metaKey;
|
||||
readonly attribute boolean ctrlKey;
|
||||
readonly attribute boolean shiftKey;
|
||||
};
|
||||
|
||||
partial interface mixin GlobalEventHandlers {
|
||||
|
|
|
@ -13,7 +13,7 @@ dictionary DocumentTimelineOptions {
|
|||
};
|
||||
|
||||
[Exposed=Window,
|
||||
Constructor(optional DocumentTimelineOptions options)]
|
||||
Constructor(optional DocumentTimelineOptions options = {})]
|
||||
interface DocumentTimeline : AnimationTimeline {
|
||||
};
|
||||
|
||||
|
@ -53,7 +53,7 @@ enum AnimationReplaceState { "active", "removed", "persisted" };
|
|||
interface AnimationEffect {
|
||||
EffectTiming getTiming();
|
||||
ComputedEffectTiming getComputedTiming();
|
||||
void updateTiming(optional OptionalEffectTiming timing);
|
||||
void updateTiming(optional OptionalEffectTiming timing = {});
|
||||
};
|
||||
|
||||
dictionary EffectTiming {
|
||||
|
@ -93,7 +93,7 @@ dictionary ComputedEffectTiming : EffectTiming {
|
|||
[Exposed=Window,
|
||||
Constructor((Element or CSSPseudoElement)? target,
|
||||
object? keyframes,
|
||||
optional (unrestricted double or KeyframeEffectOptions) options),
|
||||
optional (unrestricted double or KeyframeEffectOptions) options = {}),
|
||||
Constructor(KeyframeEffect source)]
|
||||
interface KeyframeEffect : AnimationEffect {
|
||||
attribute (Element or CSSPseudoElement)? target;
|
||||
|
@ -135,8 +135,8 @@ enum CompositeOperationOrAuto { "replace", "add", "accumulate", "auto" };
|
|||
|
||||
interface mixin Animatable {
|
||||
Animation animate(object? keyframes,
|
||||
optional (unrestricted double or KeyframeAnimationOptions) options);
|
||||
sequence<Animation> getAnimations(optional GetAnimationsOptions options);
|
||||
optional (unrestricted double or KeyframeAnimationOptions) options = {});
|
||||
sequence<Animation> getAnimations(optional GetAnimationsOptions options = {});
|
||||
};
|
||||
|
||||
dictionary KeyframeAnimationOptions : KeyframeEffectOptions {
|
||||
|
@ -160,7 +160,7 @@ Element includes Animatable;
|
|||
CSSPseudoElement includes Animatable;
|
||||
|
||||
[Exposed=Window,
|
||||
Constructor(DOMString type, optional AnimationPlaybackEventInit eventInitDict)]
|
||||
Constructor(DOMString type, optional AnimationPlaybackEventInit eventInitDict = {})]
|
||||
interface AnimationPlaybackEvent : Event {
|
||||
readonly attribute double? currentTime;
|
||||
readonly attribute double? timelineTime;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// Source: Web MIDI API (http://webaudio.github.io/web-midi-api/)
|
||||
|
||||
partial interface Navigator {
|
||||
[SecureContext] Promise<MIDIAccess> requestMIDIAccess(optional MIDIOptions options);
|
||||
[SecureContext] Promise <MIDIAccess> requestMIDIAccess(optional MIDIOptions options = {});
|
||||
};
|
||||
|
||||
dictionary MIDIOptions {
|
||||
|
@ -12,22 +12,22 @@ dictionary MIDIOptions {
|
|||
boolean software;
|
||||
};
|
||||
|
||||
[SecureContext] interface MIDIInputMap {
|
||||
[SecureContext, Exposed=Window] interface MIDIInputMap {
|
||||
readonly maplike<DOMString, MIDIInput>;
|
||||
};
|
||||
|
||||
[SecureContext] interface MIDIOutputMap {
|
||||
[SecureContext, Exposed=Window] interface MIDIOutputMap {
|
||||
readonly maplike<DOMString, MIDIOutput>;
|
||||
};
|
||||
|
||||
[SecureContext] interface MIDIAccess : EventTarget {
|
||||
[SecureContext, Exposed=Window] interface MIDIAccess : EventTarget {
|
||||
readonly attribute MIDIInputMap inputs;
|
||||
readonly attribute MIDIOutputMap outputs;
|
||||
attribute EventHandler onstatechange;
|
||||
readonly attribute boolean sysexEnabled;
|
||||
};
|
||||
|
||||
[SecureContext] interface MIDIPort : EventTarget {
|
||||
[SecureContext, Exposed=Window] interface MIDIPort : EventTarget {
|
||||
readonly attribute DOMString id;
|
||||
readonly attribute DOMString? manufacturer;
|
||||
readonly attribute DOMString? name;
|
||||
|
@ -40,11 +40,11 @@ dictionary MIDIOptions {
|
|||
Promise<MIDIPort> close();
|
||||
};
|
||||
|
||||
[SecureContext] interface MIDIInput : MIDIPort {
|
||||
[SecureContext, Exposed=Window] interface MIDIInput : MIDIPort {
|
||||
attribute EventHandler onmidimessage;
|
||||
};
|
||||
|
||||
[SecureContext] interface MIDIOutput : MIDIPort {
|
||||
[SecureContext, Exposed=Window] interface MIDIOutput : MIDIPort {
|
||||
void send(sequence<octet> data, optional DOMHighResTimeStamp timestamp = 0);
|
||||
void clear();
|
||||
};
|
||||
|
@ -65,7 +65,7 @@ enum MIDIPortConnectionState {
|
|||
"pending",
|
||||
};
|
||||
|
||||
[SecureContext, Constructor(DOMString type, optional MIDIMessageEventInit eventInitDict)]
|
||||
[SecureContext, Exposed=Window, Constructor(DOMString type, optional MIDIMessageEventInit eventInitDict = {})]
|
||||
interface MIDIMessageEvent : Event {
|
||||
readonly attribute Uint8Array data;
|
||||
};
|
||||
|
@ -74,7 +74,7 @@ dictionary MIDIMessageEventInit : EventInit {
|
|||
Uint8Array data;
|
||||
};
|
||||
|
||||
[SecureContext, Constructor(DOMString type, optional MIDIConnectionEventInit eventInitDict)]
|
||||
[SecureContext, Exposed=Window, Constructor(DOMString type, optional MIDIConnectionEventInit eventInitDict = {})]
|
||||
interface MIDIConnectionEvent : Event {
|
||||
readonly attribute MIDIPort port;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue