Update web-platform-tests to revision 132d12daea699ce266324e79eecbe59b10e56502

This commit is contained in:
WPT Sync Bot 2018-06-08 21:05:21 -04:00
parent 527d874bc1
commit fe00a63040
1004 changed files with 18598 additions and 92770 deletions

View file

@ -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;
};

View 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();
};

View 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;
};

View 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;
};

View file

@ -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 {

View file

@ -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);
};

View 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;
};

View 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 {
};