mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
Update web-platform-tests to revision 132d12daea699ce266324e79eecbe59b10e56502
This commit is contained in:
parent
527d874bc1
commit
fe00a63040
1004 changed files with 18598 additions and 92770 deletions
|
@ -0,0 +1,22 @@
|
|||
// GENERATED CONTENT - DO NOT EDIT
|
||||
// Content of this file was automatically extracted from the
|
||||
// "Input Device Capabilities" spec.
|
||||
// See: https://wicg.github.io/InputDeviceCapabilities/
|
||||
|
||||
[Constructor(optional InputDeviceCapabilitiesInit deviceInitDict)]
|
||||
interface InputDeviceCapabilities {
|
||||
readonly attribute boolean firesTouchEvents;
|
||||
readonly attribute boolean pointerMovementScrolls;
|
||||
};
|
||||
|
||||
dictionary InputDeviceCapabilitiesInit {
|
||||
boolean firesTouchEvents = false;
|
||||
boolean pointerMovementScrolls = false;
|
||||
};
|
||||
partial interface UIEvent {
|
||||
readonly attribute InputDeviceCapabilities? sourceCapabilities;
|
||||
};
|
||||
|
||||
partial dictionary UIEventInit {
|
||||
InputDeviceCapabilities? sourceCapabilities = null;
|
||||
};
|
30
tests/wpt/web-platform-tests/interfaces/ResizeObserver.idl
Normal file
30
tests/wpt/web-platform-tests/interfaces/ResizeObserver.idl
Normal file
|
@ -0,0 +1,30 @@
|
|||
// GENERATED CONTENT - DO NOT EDIT
|
||||
// Content of this file was automatically extracted from the
|
||||
// "Resize Observer 1" spec.
|
||||
// See: https://wicg.github.io/ResizeObserver/
|
||||
|
||||
[Constructor(ResizeObserverCallback callback),
|
||||
Exposed=Window]
|
||||
interface ResizeObserver {
|
||||
void observe(Element target);
|
||||
void unobserve(Element target);
|
||||
void disconnect();
|
||||
};
|
||||
|
||||
callback ResizeObserverCallback = void (sequence<ResizeObserverEntry> entries, ResizeObserver observer);
|
||||
|
||||
[Constructor(Element target)
|
||||
]
|
||||
interface ResizeObserverEntry {
|
||||
readonly attribute Element target;
|
||||
readonly attribute DOMRectReadOnly contentRect;
|
||||
};
|
||||
|
||||
[Constructor(Element target)
|
||||
]
|
||||
interface ResizeObservation {
|
||||
readonly attribute Element target;
|
||||
readonly attribute float broadcastWidth;
|
||||
readonly attribute float broadcastHeight;
|
||||
boolean isActive();
|
||||
};
|
35
tests/wpt/web-platform-tests/interfaces/css-fonts.idl
Normal file
35
tests/wpt/web-platform-tests/interfaces/css-fonts.idl
Normal file
|
@ -0,0 +1,35 @@
|
|||
// GENERATED CONTENT - DO NOT EDIT
|
||||
// Content of this file was automatically extracted from the
|
||||
// "CSS Fonts Module Level 4" spec.
|
||||
// See: https://drafts.csswg.org/css-fonts-4/
|
||||
|
||||
[Exposed=Window]
|
||||
interface CSSFontFaceRule : CSSRule {
|
||||
readonly attribute CSSStyleDeclaration style;
|
||||
};
|
||||
|
||||
partial interface CSSRule { const unsigned short FONT_FEATURE_VALUES_RULE = 14;
|
||||
};
|
||||
interface CSSFontFeatureValuesRule : CSSRule { attribute CSSOMString fontFamily;
|
||||
readonly attribute CSSFontFeatureValuesMap annotation;
|
||||
readonly attribute CSSFontFeatureValuesMap ornaments;
|
||||
readonly attribute CSSFontFeatureValuesMap stylistic;
|
||||
readonly attribute CSSFontFeatureValuesMap swash;
|
||||
readonly attribute CSSFontFeatureValuesMap characterVariant;
|
||||
readonly attribute CSSFontFeatureValuesMap styleset;
|
||||
};
|
||||
|
||||
interface CSSFontFeatureValuesMap {
|
||||
maplike<CSSOMString, sequence<unsigned long>>;
|
||||
void set(CSSOMString featureValueName,
|
||||
(unsigned long or sequence<unsigned long>) values);
|
||||
};
|
||||
partial interface CSSRule {
|
||||
const unsigned short FONT_PALETTE_VALUES_RULE = 15;
|
||||
};
|
||||
|
||||
interface CSSFontPaletteValuesRule : CSSRule {
|
||||
maplike<unsigned long, (CSSOMString or CSSOMRGBColor)>;
|
||||
attribute CSSOMString fontFamily;
|
||||
attribute CSSOMString basePalette;
|
||||
};
|
18
tests/wpt/web-platform-tests/interfaces/css-masking.idl
Normal file
18
tests/wpt/web-platform-tests/interfaces/css-masking.idl
Normal file
|
@ -0,0 +1,18 @@
|
|||
// GENERATED CONTENT - DO NOT EDIT
|
||||
// Content of this file was automatically extracted from the
|
||||
// "CSS Masking Module Level 1" spec.
|
||||
// See: https://drafts.fxtf.org/css-masking-1/
|
||||
|
||||
interface SVGClipPathElement : SVGElement {
|
||||
readonly attribute SVGAnimatedEnumeration clipPathUnits;
|
||||
readonly attribute SVGAnimatedTransformList transform;
|
||||
};
|
||||
|
||||
interface SVGMaskElement : SVGElement {
|
||||
readonly attribute SVGAnimatedEnumeration maskUnits;
|
||||
readonly attribute SVGAnimatedEnumeration maskContentUnits;
|
||||
readonly attribute SVGAnimatedLength x;
|
||||
readonly attribute SVGAnimatedLength y;
|
||||
readonly attribute SVGAnimatedLength width;
|
||||
readonly attribute SVGAnimatedLength height;
|
||||
};
|
|
@ -35,6 +35,11 @@ dictionary EventInit {
|
|||
};
|
||||
|
||||
|
||||
partial interface Window {
|
||||
[Replaceable] readonly attribute any event;
|
||||
};
|
||||
|
||||
|
||||
[Constructor(DOMString type, optional CustomEventInit eventInitDict),
|
||||
Exposed=(Window,Worker)]
|
||||
interface CustomEvent : Event {
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
// GENERATED CONTENT - DO NOT EDIT
|
||||
// Content of this file was automatically extracted from the
|
||||
// "Performance Timeline Level 2" spec.
|
||||
// See: https://w3c.github.io/performance-timeline/
|
||||
|
||||
partial interface Performance {
|
||||
PerformanceEntryList getEntries();
|
||||
PerformanceEntryList getEntriesByType(DOMString type);
|
||||
PerformanceEntryList getEntriesByName(DOMString name,
|
||||
optional DOMString type);
|
||||
};
|
||||
typedef sequence<PerformanceEntry> PerformanceEntryList;
|
||||
[Exposed=(Window,Worker)]
|
||||
interface PerformanceEntry {
|
||||
readonly attribute DOMString name;
|
||||
readonly attribute DOMString entryType;
|
||||
readonly attribute DOMHighResTimeStamp startTime;
|
||||
readonly attribute DOMHighResTimeStamp duration;
|
||||
[Default] object toJSON();
|
||||
};
|
||||
callback PerformanceObserverCallback = void (PerformanceObserverEntryList entries,
|
||||
PerformanceObserver observer);
|
||||
[Constructor(PerformanceObserverCallback callback),
|
||||
Exposed=(Window,Worker)]
|
||||
interface PerformanceObserver {
|
||||
void observe(PerformanceObserverInit options);
|
||||
void disconnect();
|
||||
PerformanceEntryList takeRecords();
|
||||
};
|
||||
dictionary PerformanceObserverInit {
|
||||
required sequence<DOMString> entryTypes;
|
||||
boolean buffered = false;
|
||||
};
|
||||
[Exposed=(Window,Worker)]
|
||||
interface PerformanceObserverEntryList {
|
||||
PerformanceEntryList getEntries();
|
||||
PerformanceEntryList getEntriesByType(DOMString type);
|
||||
PerformanceEntryList getEntriesByName(DOMString name,
|
||||
optional DOMString type);
|
||||
};
|
53
tests/wpt/web-platform-tests/interfaces/permissions.idl
Normal file
53
tests/wpt/web-platform-tests/interfaces/permissions.idl
Normal file
|
@ -0,0 +1,53 @@
|
|||
// GENERATED CONTENT - DO NOT EDIT
|
||||
// Content of this file was automatically extracted from the
|
||||
// "Permissions" spec.
|
||||
// See: https://w3c.github.io/permissions/
|
||||
|
||||
dictionary PermissionDescriptor {
|
||||
required PermissionName name;
|
||||
};
|
||||
|
||||
enum PermissionState {
|
||||
"granted",
|
||||
"denied",
|
||||
"prompt",
|
||||
};
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface PermissionStatus : EventTarget {
|
||||
readonly attribute PermissionState state;
|
||||
attribute EventHandler onchange;
|
||||
};
|
||||
|
||||
[Exposed=(Window)]
|
||||
partial interface Navigator {
|
||||
readonly attribute Permissions permissions;
|
||||
};
|
||||
|
||||
[Exposed=(Worker)]
|
||||
partial interface WorkerNavigator {
|
||||
readonly attribute Permissions permissions;
|
||||
};
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface Permissions {
|
||||
Promise<PermissionStatus> query(object permissionDesc);
|
||||
};
|
||||
|
||||
dictionary PushPermissionDescriptor : PermissionDescriptor {
|
||||
boolean userVisibleOnly = false;
|
||||
};
|
||||
|
||||
dictionary MidiPermissionDescriptor : PermissionDescriptor {
|
||||
boolean sysex = false;
|
||||
};
|
||||
|
||||
dictionary DevicePermissionDescriptor : PermissionDescriptor {
|
||||
DOMString deviceId;
|
||||
};
|
||||
|
||||
dictionary PermissionSetParameters {
|
||||
required PermissionDescriptor descriptor;
|
||||
required PermissionState state;
|
||||
boolean oneRealm = false;
|
||||
};
|
19
tests/wpt/web-platform-tests/interfaces/user-timing.idl
Normal file
19
tests/wpt/web-platform-tests/interfaces/user-timing.idl
Normal file
|
@ -0,0 +1,19 @@
|
|||
// GENERATED CONTENT - DO NOT EDIT
|
||||
// Content of this file was automatically extracted from the
|
||||
// "User Timing Level 2" spec.
|
||||
// See: https://w3c.github.io/user-timing/
|
||||
|
||||
partial interface Performance {
|
||||
void mark(DOMString markName);
|
||||
void clearMarks(optional DOMString markName);
|
||||
void measure(DOMString measureName,
|
||||
optional DOMString startMark,
|
||||
optional DOMString endMark);
|
||||
void clearMeasures(optional DOMString measureName);
|
||||
};
|
||||
[Exposed=(Window,Worker)]
|
||||
interface PerformanceMark : PerformanceEntry {
|
||||
};
|
||||
[Exposed=(Window,Worker)]
|
||||
interface PerformanceMeasure : PerformanceEntry {
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue