mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update web-platform-tests to revision 4100d1d51b885185c50902397f7d203d89efc24c
This commit is contained in:
parent
fd174c54ef
commit
35b828da75
91 changed files with 1843 additions and 298 deletions
|
@ -81,6 +81,7 @@ dictionary DOMRectInit {
|
|||
unrestricted double height = 0;
|
||||
};
|
||||
|
||||
[Exposed=Window]
|
||||
interface DOMRectList {
|
||||
readonly attribute unsigned long length;
|
||||
getter DOMRect? item(unsigned long index);
|
||||
|
|
|
@ -43,7 +43,7 @@ interface NFCReader : EventTarget {
|
|||
[Constructor(DOMString type, NFCReadingEventInit readingEventInitDict), SecureContext, Exposed=Window]
|
||||
interface NFCReadingEvent : Event {
|
||||
readonly attribute DOMString serialNumber;
|
||||
readonly attribute NDEFMessage message;
|
||||
readonly attribute object message; // NDEFMessage
|
||||
};
|
||||
|
||||
dictionary NFCReadingEventInit : EventInit {
|
||||
|
|
|
@ -612,7 +612,7 @@ dictionary RTCStatsEventInit : EventInit {
|
|||
|
||||
[
|
||||
Exposed=Window,
|
||||
Constructor(RTCErrorInit init, optional DOMString message = "")] interface RTCError {
|
||||
Constructor(RTCErrorInit init, optional DOMString message = "")] interface RTCError : DOMException {
|
||||
readonly attribute RTCErrorDetailType errorDetail;
|
||||
readonly attribute long? sdpLineNumber;
|
||||
readonly attribute long? httpRequestStatusCode;
|
||||
|
|
|
@ -28,9 +28,16 @@ enum XREnvironmentBlendMode {
|
|||
"alpha-blend",
|
||||
};
|
||||
|
||||
enum XRVisibilityState {
|
||||
"visible",
|
||||
"visible-blurred",
|
||||
"hidden",
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window] interface XRSession : EventTarget {
|
||||
// Attributes
|
||||
readonly attribute XREnvironmentBlendMode environmentBlendMode;
|
||||
readonly attribute XRVisibilityState visibilityState;
|
||||
[SameObject] readonly attribute XRRenderState renderState;
|
||||
[SameObject] readonly attribute XRInputSourceArray inputSources;
|
||||
|
||||
|
@ -44,29 +51,26 @@ enum XREnvironmentBlendMode {
|
|||
Promise<void> end();
|
||||
|
||||
// Events
|
||||
attribute EventHandler onblur;
|
||||
attribute EventHandler onfocus;
|
||||
attribute EventHandler onend;
|
||||
attribute EventHandler onselect;
|
||||
attribute EventHandler oninputsourceschange;
|
||||
attribute EventHandler onselectstart;
|
||||
attribute EventHandler onselectend;
|
||||
attribute EventHandler onvisibilitychange;
|
||||
};
|
||||
|
||||
dictionary XRRenderStateInit {
|
||||
double depthNear;
|
||||
double depthFar;
|
||||
double inlineVerticalFieldOfView;
|
||||
XRLayer? baseLayer;
|
||||
XRPresentationContext? outputContext;
|
||||
XRWebGLLayer? baseLayer;
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window] interface XRRenderState {
|
||||
readonly attribute double depthNear;
|
||||
readonly attribute double depthFar;
|
||||
readonly attribute double? inlineVerticalFieldOfView;
|
||||
readonly attribute XRLayer? baseLayer;
|
||||
readonly attribute XRPresentationContext? outputContext;
|
||||
readonly attribute XRWebGLLayer? baseLayer;
|
||||
};
|
||||
|
||||
callback XRFrameRequestCallback = void (DOMHighResTimeStamp time, XRFrame frame);
|
||||
|
@ -182,8 +186,6 @@ enum GamepadMappingType {
|
|||
"xr-standard",
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window] interface XRLayer {};
|
||||
|
||||
typedef (WebGLRenderingContext or
|
||||
WebGL2RenderingContext) XRWebGLRenderingContext;
|
||||
|
||||
|
@ -199,7 +201,7 @@ dictionary XRWebGLLayerInit {
|
|||
[SecureContext, Exposed=Window, Constructor(XRSession session,
|
||||
XRWebGLRenderingContext context,
|
||||
optional XRWebGLLayerInit layerInit)]
|
||||
interface XRWebGLLayer : XRLayer {
|
||||
interface XRWebGLLayer {
|
||||
// Attributes
|
||||
[SameObject] readonly attribute XRWebGLRenderingContext context;
|
||||
|
||||
|
@ -225,10 +227,6 @@ partial interface mixin WebGLRenderingContextBase {
|
|||
Promise<void> makeXRCompatible();
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window] interface XRPresentationContext {
|
||||
[SameObject] readonly attribute HTMLCanvasElement canvas;
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window, Constructor(DOMString type, XRSessionEventInit eventInitDict)]
|
||||
interface XRSessionEvent : Event {
|
||||
[SameObject] readonly attribute XRSession session;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue