diff --git a/interfaces/ANGLE_instanced_arrays.idl b/interfaces/ANGLE_instanced_arrays.idl index c7d195950297949..215624835a9018f 100644 --- a/interfaces/ANGLE_instanced_arrays.idl +++ b/interfaces/ANGLE_instanced_arrays.idl @@ -1,12 +1,12 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL ANGLE_instanced_arrays Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/ANGLE_instanced_arrays/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface ANGLE_instanced_arrays { - const GLenum VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE = 0x88FE; - undefined drawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, GLsizei primcount); - undefined drawElementsInstancedANGLE(GLenum mode, GLsizei count, GLenum type, GLintptr offset, GLsizei primcount); - undefined vertexAttribDivisorANGLE(GLuint index, GLuint divisor); -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL ANGLE_instanced_arrays Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/ANGLE_instanced_arrays/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface ANGLE_instanced_arrays { + const GLenum VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE = 0x88FE; + undefined drawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, GLsizei primcount); + undefined drawElementsInstancedANGLE(GLenum mode, GLsizei count, GLenum type, GLintptr offset, GLsizei primcount); + undefined vertexAttribDivisorANGLE(GLuint index, GLuint divisor); +}; diff --git a/interfaces/CSP.idl b/interfaces/CSP.idl index fd08a33499b19ea..17900afb6035ceb 100644 --- a/interfaces/CSP.idl +++ b/interfaces/CSP.idl @@ -1,58 +1,55 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: Content Security Policy Level 3 (https://w3c.github.io/webappsec-csp/) - -[Exposed=Window] -interface CSPViolationReportBody : ReportBody { - readonly attribute USVString documentURL; - readonly attribute USVString? referrer; - readonly attribute USVString? blockedURL; - readonly attribute DOMString effectiveDirective; - readonly attribute DOMString originalPolicy; - readonly attribute USVString? sourceFile; - readonly attribute DOMString? sample; - readonly attribute SecurityPolicyViolationEventDisposition disposition; - readonly attribute unsigned short statusCode; - readonly attribute unsigned long? lineNumber; - readonly attribute unsigned long? columnNumber; -}; - -enum SecurityPolicyViolationEventDisposition { - "enforce", "report" -}; - -[Exposed=(Window,Worker)] -interface SecurityPolicyViolationEvent : Event { - constructor(DOMString type, optional SecurityPolicyViolationEventInit eventInitDict = {}); - readonly attribute USVString documentURL; - readonly attribute USVString documentURI; // historical alias of documentURL - readonly attribute USVString referrer; - readonly attribute USVString blockedURL; - readonly attribute USVString blockedURI; // historical alias of blockedURL - readonly attribute DOMString effectiveDirective; - readonly attribute DOMString violatedDirective; // historical alias of effectiveDirective - readonly attribute DOMString originalPolicy; - readonly attribute USVString sourceFile; - readonly attribute DOMString sample; - readonly attribute SecurityPolicyViolationEventDisposition disposition; - readonly attribute unsigned short statusCode; - readonly attribute unsigned long lineno; - readonly attribute unsigned long lineNumber; // historical alias of lineno - readonly attribute unsigned long colno; - readonly attribute unsigned long columnNumber; // historical alias of colno -}; - -dictionary SecurityPolicyViolationEventInit : EventInit { - required USVString documentURL; - USVString referrer = ""; - USVString blockedURL = ""; - required DOMString effectiveDirective; - required DOMString originalPolicy; - USVString sourceFile = ""; - DOMString sample = ""; - required SecurityPolicyViolationEventDisposition disposition; - required unsigned short statusCode; - unsigned long lineno = 0; - unsigned long colno = 0; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Content Security Policy Level 3 (https://w3c.github.io/webappsec-csp/) + +[Exposed=Window] +interface CSPViolationReportBody : ReportBody { + readonly attribute USVString documentURL; + readonly attribute USVString? referrer; + readonly attribute USVString? blockedURL; + readonly attribute DOMString effectiveDirective; + readonly attribute DOMString originalPolicy; + readonly attribute USVString? sourceFile; + readonly attribute DOMString? sample; + readonly attribute SecurityPolicyViolationEventDisposition disposition; + readonly attribute unsigned short statusCode; + readonly attribute unsigned long? lineNumber; + readonly attribute unsigned long? columnNumber; +}; + +enum SecurityPolicyViolationEventDisposition { + "enforce", "report" +}; + +[Exposed=(Window,Worker)] +interface SecurityPolicyViolationEvent : Event { + constructor(DOMString type, optional SecurityPolicyViolationEventInit eventInitDict = {}); + readonly attribute USVString documentURI; + readonly attribute USVString referrer; + readonly attribute USVString blockedURI; + readonly attribute DOMString effectiveDirective; + readonly attribute DOMString violatedDirective; // historical alias of effectiveDirective + readonly attribute DOMString originalPolicy; + readonly attribute USVString sourceFile; + readonly attribute DOMString sample; + readonly attribute SecurityPolicyViolationEventDisposition disposition; + readonly attribute unsigned short statusCode; + readonly attribute unsigned long lineNumber; + readonly attribute unsigned long columnNumber; +}; + +dictionary SecurityPolicyViolationEventInit : EventInit { + required USVString documentURI; + USVString referrer = ""; + USVString blockedURI = ""; + required DOMString violatedDirective; + required DOMString effectiveDirective; + required DOMString originalPolicy; + USVString sourceFile = ""; + DOMString sample = ""; + required SecurityPolicyViolationEventDisposition disposition; + required unsigned short statusCode; + unsigned long lineNumber = 0; + unsigned long columnNumber = 0; +}; diff --git a/interfaces/DOM-Parsing.idl b/interfaces/DOM-Parsing.idl index d0d84ab6972f02a..47b66b12e079d5b 100644 --- a/interfaces/DOM-Parsing.idl +++ b/interfaces/DOM-Parsing.idl @@ -1,26 +1,26 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: DOM Parsing and Serialization (https://w3c.github.io/DOM-Parsing/) - -[Exposed=Window] -interface XMLSerializer { - constructor(); - DOMString serializeToString(Node root); -}; - -interface mixin InnerHTML { - [CEReactions] attribute [LegacyNullToEmptyString] DOMString innerHTML; -}; - -Element includes InnerHTML; -ShadowRoot includes InnerHTML; - -partial interface Element { - [CEReactions] attribute [LegacyNullToEmptyString] DOMString outerHTML; - [CEReactions] undefined insertAdjacentHTML(DOMString position, DOMString text); -}; - -partial interface Range { - [CEReactions, NewObject] DocumentFragment createContextualFragment(DOMString fragment); -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: DOM Parsing and Serialization (https://w3c.github.io/DOM-Parsing/) + +[Exposed=Window] +interface XMLSerializer { + constructor(); + DOMString serializeToString(Node root); +}; + +interface mixin InnerHTML { + [CEReactions] attribute [LegacyNullToEmptyString] DOMString innerHTML; +}; + +Element includes InnerHTML; +ShadowRoot includes InnerHTML; + +partial interface Element { + [CEReactions] attribute [LegacyNullToEmptyString] DOMString outerHTML; + [CEReactions] undefined insertAdjacentHTML(DOMString position, DOMString text); +}; + +partial interface Range { + [CEReactions, NewObject] DocumentFragment createContextualFragment(DOMString fragment); +}; diff --git a/interfaces/EXT_blend_minmax.idl b/interfaces/EXT_blend_minmax.idl index 9ce9e3aeebdd8d1..76ca6772474e51d 100644 --- a/interfaces/EXT_blend_minmax.idl +++ b/interfaces/EXT_blend_minmax.idl @@ -1,10 +1,10 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL EXT_blend_minmax Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_blend_minmax/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface EXT_blend_minmax { - const GLenum MIN_EXT = 0x8007; - const GLenum MAX_EXT = 0x8008; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL EXT_blend_minmax Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_blend_minmax/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface EXT_blend_minmax { + const GLenum MIN_EXT = 0x8007; + const GLenum MAX_EXT = 0x8008; +}; diff --git a/interfaces/EXT_clip_cull_distance.idl b/interfaces/EXT_clip_cull_distance.idl index 61bbfab27e889a5..2266d20c078b51e 100644 --- a/interfaces/EXT_clip_cull_distance.idl +++ b/interfaces/EXT_clip_cull_distance.idl @@ -1,20 +1,20 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL EXT_clip_cull_distance Extension Draft Specification (https://www.khronos.org/registry/webgl/extensions/EXT_clip_cull_distance/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface EXT_clip_cull_distance { - const GLenum MAX_CLIP_DISTANCES_EXT = 0x0D32; - const GLenum MAX_CULL_DISTANCES_EXT = 0x82F9; - const GLenum MAX_COMBINED_CLIP_AND_CULL_DISTANCES_EXT = 0x82FA; - - const GLenum CLIP_DISTANCE0_EXT = 0x3000; - const GLenum CLIP_DISTANCE1_EXT = 0x3001; - const GLenum CLIP_DISTANCE2_EXT = 0x3002; - const GLenum CLIP_DISTANCE3_EXT = 0x3003; - const GLenum CLIP_DISTANCE4_EXT = 0x3004; - const GLenum CLIP_DISTANCE5_EXT = 0x3005; - const GLenum CLIP_DISTANCE6_EXT = 0x3006; - const GLenum CLIP_DISTANCE7_EXT = 0x3007; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL EXT_clip_cull_distance Extension Draft Specification (https://www.khronos.org/registry/webgl/extensions/EXT_clip_cull_distance/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface EXT_clip_cull_distance { + const GLenum MAX_CLIP_DISTANCES_EXT = 0x0D32; + const GLenum MAX_CULL_DISTANCES_EXT = 0x82F9; + const GLenum MAX_COMBINED_CLIP_AND_CULL_DISTANCES_EXT = 0x82FA; + + const GLenum CLIP_DISTANCE0_EXT = 0x3000; + const GLenum CLIP_DISTANCE1_EXT = 0x3001; + const GLenum CLIP_DISTANCE2_EXT = 0x3002; + const GLenum CLIP_DISTANCE3_EXT = 0x3003; + const GLenum CLIP_DISTANCE4_EXT = 0x3004; + const GLenum CLIP_DISTANCE5_EXT = 0x3005; + const GLenum CLIP_DISTANCE6_EXT = 0x3006; + const GLenum CLIP_DISTANCE7_EXT = 0x3007; +}; diff --git a/interfaces/EXT_color_buffer_float.idl b/interfaces/EXT_color_buffer_float.idl index 6d99af6282e3922..422c604384743c4 100644 --- a/interfaces/EXT_color_buffer_float.idl +++ b/interfaces/EXT_color_buffer_float.idl @@ -1,8 +1,8 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL EXT_color_buffer_float Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_color_buffer_float/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface EXT_color_buffer_float { -}; // interface EXT_color_buffer_float +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL EXT_color_buffer_float Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_color_buffer_float/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface EXT_color_buffer_float { +}; // interface EXT_color_buffer_float diff --git a/interfaces/EXT_color_buffer_half_float.idl b/interfaces/EXT_color_buffer_half_float.idl index f16a0514d9b739c..a3f83b1455ccaeb 100644 --- a/interfaces/EXT_color_buffer_half_float.idl +++ b/interfaces/EXT_color_buffer_half_float.idl @@ -1,12 +1,12 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL EXT_color_buffer_half_float Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_color_buffer_half_float/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface EXT_color_buffer_half_float { - const GLenum RGBA16F_EXT = 0x881A; - const GLenum RGB16F_EXT = 0x881B; - const GLenum FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT = 0x8211; - const GLenum UNSIGNED_NORMALIZED_EXT = 0x8C17; -}; // interface EXT_color_buffer_half_float +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL EXT_color_buffer_half_float Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_color_buffer_half_float/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface EXT_color_buffer_half_float { + const GLenum RGBA16F_EXT = 0x881A; + const GLenum RGB16F_EXT = 0x881B; + const GLenum FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT = 0x8211; + const GLenum UNSIGNED_NORMALIZED_EXT = 0x8C17; +}; // interface EXT_color_buffer_half_float diff --git a/interfaces/EXT_disjoint_timer_query.idl b/interfaces/EXT_disjoint_timer_query.idl index e42e591f7e8b375..26a8d909ecbf2c3 100644 --- a/interfaces/EXT_disjoint_timer_query.idl +++ b/interfaces/EXT_disjoint_timer_query.idl @@ -1,30 +1,30 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL EXT_disjoint_timer_query Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_disjoint_timer_query/) - -typedef unsigned long long GLuint64EXT; - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface WebGLTimerQueryEXT : WebGLObject { -}; - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface EXT_disjoint_timer_query { - const GLenum QUERY_COUNTER_BITS_EXT = 0x8864; - const GLenum CURRENT_QUERY_EXT = 0x8865; - const GLenum QUERY_RESULT_EXT = 0x8866; - const GLenum QUERY_RESULT_AVAILABLE_EXT = 0x8867; - const GLenum TIME_ELAPSED_EXT = 0x88BF; - const GLenum TIMESTAMP_EXT = 0x8E28; - const GLenum GPU_DISJOINT_EXT = 0x8FBB; - - WebGLTimerQueryEXT? createQueryEXT(); - undefined deleteQueryEXT(WebGLTimerQueryEXT? query); - [WebGLHandlesContextLoss] boolean isQueryEXT(WebGLTimerQueryEXT? query); - undefined beginQueryEXT(GLenum target, WebGLTimerQueryEXT query); - undefined endQueryEXT(GLenum target); - undefined queryCounterEXT(WebGLTimerQueryEXT query, GLenum target); - any getQueryEXT(GLenum target, GLenum pname); - any getQueryObjectEXT(WebGLTimerQueryEXT query, GLenum pname); -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL EXT_disjoint_timer_query Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_disjoint_timer_query/) + +typedef unsigned long long GLuint64EXT; + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface WebGLTimerQueryEXT : WebGLObject { +}; + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface EXT_disjoint_timer_query { + const GLenum QUERY_COUNTER_BITS_EXT = 0x8864; + const GLenum CURRENT_QUERY_EXT = 0x8865; + const GLenum QUERY_RESULT_EXT = 0x8866; + const GLenum QUERY_RESULT_AVAILABLE_EXT = 0x8867; + const GLenum TIME_ELAPSED_EXT = 0x88BF; + const GLenum TIMESTAMP_EXT = 0x8E28; + const GLenum GPU_DISJOINT_EXT = 0x8FBB; + + WebGLTimerQueryEXT? createQueryEXT(); + undefined deleteQueryEXT(WebGLTimerQueryEXT? query); + [WebGLHandlesContextLoss] boolean isQueryEXT(WebGLTimerQueryEXT? query); + undefined beginQueryEXT(GLenum target, WebGLTimerQueryEXT query); + undefined endQueryEXT(GLenum target); + undefined queryCounterEXT(WebGLTimerQueryEXT query, GLenum target); + any getQueryEXT(GLenum target, GLenum pname); + any getQueryObjectEXT(WebGLTimerQueryEXT query, GLenum pname); +}; diff --git a/interfaces/EXT_disjoint_timer_query_webgl2.idl b/interfaces/EXT_disjoint_timer_query_webgl2.idl index 336c42b82ba12b8..dc2b4186c09db33 100644 --- a/interfaces/EXT_disjoint_timer_query_webgl2.idl +++ b/interfaces/EXT_disjoint_timer_query_webgl2.idl @@ -1,14 +1,14 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL EXT_disjoint_timer_query_webgl2 Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_disjoint_timer_query_webgl2/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface EXT_disjoint_timer_query_webgl2 { - const GLenum QUERY_COUNTER_BITS_EXT = 0x8864; - const GLenum TIME_ELAPSED_EXT = 0x88BF; - const GLenum TIMESTAMP_EXT = 0x8E28; - const GLenum GPU_DISJOINT_EXT = 0x8FBB; - - undefined queryCounterEXT(WebGLQuery query, GLenum target); -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL EXT_disjoint_timer_query_webgl2 Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_disjoint_timer_query_webgl2/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface EXT_disjoint_timer_query_webgl2 { + const GLenum QUERY_COUNTER_BITS_EXT = 0x8864; + const GLenum TIME_ELAPSED_EXT = 0x88BF; + const GLenum TIMESTAMP_EXT = 0x8E28; + const GLenum GPU_DISJOINT_EXT = 0x8FBB; + + undefined queryCounterEXT(WebGLQuery query, GLenum target); +}; diff --git a/interfaces/EXT_float_blend.idl b/interfaces/EXT_float_blend.idl index acdbfb54e104c52..c79d62d6fa7eaf1 100644 --- a/interfaces/EXT_float_blend.idl +++ b/interfaces/EXT_float_blend.idl @@ -1,8 +1,8 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL EXT_float_blend Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_float_blend/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface EXT_float_blend { -}; // interface EXT_float_blend +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL EXT_float_blend Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_float_blend/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface EXT_float_blend { +}; // interface EXT_float_blend diff --git a/interfaces/EXT_frag_depth.idl b/interfaces/EXT_frag_depth.idl index 2011752f36b672a..19a4464d2a06b88 100644 --- a/interfaces/EXT_frag_depth.idl +++ b/interfaces/EXT_frag_depth.idl @@ -1,8 +1,8 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL EXT_frag_depth Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_frag_depth/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface EXT_frag_depth { -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL EXT_frag_depth Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_frag_depth/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface EXT_frag_depth { +}; diff --git a/interfaces/EXT_sRGB.idl b/interfaces/EXT_sRGB.idl index 76e7f878c1cd0ae..6f484552495fdad 100644 --- a/interfaces/EXT_sRGB.idl +++ b/interfaces/EXT_sRGB.idl @@ -1,12 +1,12 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL EXT_sRGB Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_sRGB/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface EXT_sRGB { - const GLenum SRGB_EXT = 0x8C40; - const GLenum SRGB_ALPHA_EXT = 0x8C42; - const GLenum SRGB8_ALPHA8_EXT = 0x8C43; - const GLenum FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT = 0x8210; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL EXT_sRGB Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_sRGB/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface EXT_sRGB { + const GLenum SRGB_EXT = 0x8C40; + const GLenum SRGB_ALPHA_EXT = 0x8C42; + const GLenum SRGB8_ALPHA8_EXT = 0x8C43; + const GLenum FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT = 0x8210; +}; diff --git a/interfaces/EXT_shader_texture_lod.idl b/interfaces/EXT_shader_texture_lod.idl index 955002e6c18d548..24534bd68736dc5 100644 --- a/interfaces/EXT_shader_texture_lod.idl +++ b/interfaces/EXT_shader_texture_lod.idl @@ -1,8 +1,8 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL EXT_shader_texture_lod Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_shader_texture_lod/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface EXT_shader_texture_lod { -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL EXT_shader_texture_lod Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_shader_texture_lod/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface EXT_shader_texture_lod { +}; diff --git a/interfaces/EXT_texture_compression_bptc.idl b/interfaces/EXT_texture_compression_bptc.idl index 58756f2402c089c..acc775e27c493e0 100644 --- a/interfaces/EXT_texture_compression_bptc.idl +++ b/interfaces/EXT_texture_compression_bptc.idl @@ -1,12 +1,12 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL EXT_texture_compression_bptc Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_texture_compression_bptc/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface EXT_texture_compression_bptc { - const GLenum COMPRESSED_RGBA_BPTC_UNORM_EXT = 0x8E8C; - const GLenum COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT = 0x8E8D; - const GLenum COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT = 0x8E8E; - const GLenum COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT = 0x8E8F; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL EXT_texture_compression_bptc Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_texture_compression_bptc/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface EXT_texture_compression_bptc { + const GLenum COMPRESSED_RGBA_BPTC_UNORM_EXT = 0x8E8C; + const GLenum COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT = 0x8E8D; + const GLenum COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT = 0x8E8E; + const GLenum COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT = 0x8E8F; +}; diff --git a/interfaces/EXT_texture_compression_rgtc.idl b/interfaces/EXT_texture_compression_rgtc.idl index c8bed9945b1b5ed..d257f486fb5f397 100644 --- a/interfaces/EXT_texture_compression_rgtc.idl +++ b/interfaces/EXT_texture_compression_rgtc.idl @@ -1,12 +1,12 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL EXT_texture_compression_rgtc Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_texture_compression_rgtc/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface EXT_texture_compression_rgtc { - const GLenum COMPRESSED_RED_RGTC1_EXT = 0x8DBB; - const GLenum COMPRESSED_SIGNED_RED_RGTC1_EXT = 0x8DBC; - const GLenum COMPRESSED_RED_GREEN_RGTC2_EXT = 0x8DBD; - const GLenum COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT = 0x8DBE; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL EXT_texture_compression_rgtc Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_texture_compression_rgtc/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface EXT_texture_compression_rgtc { + const GLenum COMPRESSED_RED_RGTC1_EXT = 0x8DBB; + const GLenum COMPRESSED_SIGNED_RED_RGTC1_EXT = 0x8DBC; + const GLenum COMPRESSED_RED_GREEN_RGTC2_EXT = 0x8DBD; + const GLenum COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT = 0x8DBE; +}; diff --git a/interfaces/EXT_texture_filter_anisotropic.idl b/interfaces/EXT_texture_filter_anisotropic.idl index 6a42fc017bd4765..450795031d3c72e 100644 --- a/interfaces/EXT_texture_filter_anisotropic.idl +++ b/interfaces/EXT_texture_filter_anisotropic.idl @@ -1,10 +1,10 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL EXT_texture_filter_anisotropic Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_texture_filter_anisotropic/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface EXT_texture_filter_anisotropic { - const GLenum TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; - const GLenum MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL EXT_texture_filter_anisotropic Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_texture_filter_anisotropic/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface EXT_texture_filter_anisotropic { + const GLenum TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; + const GLenum MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; +}; diff --git a/interfaces/EXT_texture_norm16.idl b/interfaces/EXT_texture_norm16.idl index bb1525cc225db8a..c592604fc77a988 100644 --- a/interfaces/EXT_texture_norm16.idl +++ b/interfaces/EXT_texture_norm16.idl @@ -1,16 +1,16 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL EXT_texture_norm16 Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_texture_norm16/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface EXT_texture_norm16 { - const GLenum R16_EXT = 0x822A; - const GLenum RG16_EXT = 0x822C; - const GLenum RGB16_EXT = 0x8054; - const GLenum RGBA16_EXT = 0x805B; - const GLenum R16_SNORM_EXT = 0x8F98; - const GLenum RG16_SNORM_EXT = 0x8F99; - const GLenum RGB16_SNORM_EXT = 0x8F9A; - const GLenum RGBA16_SNORM_EXT = 0x8F9B; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL EXT_texture_norm16 Extension Specification (https://www.khronos.org/registry/webgl/extensions/EXT_texture_norm16/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface EXT_texture_norm16 { + const GLenum R16_EXT = 0x822A; + const GLenum RG16_EXT = 0x822C; + const GLenum RGB16_EXT = 0x8054; + const GLenum RGBA16_EXT = 0x805B; + const GLenum R16_SNORM_EXT = 0x8F98; + const GLenum RG16_SNORM_EXT = 0x8F99; + const GLenum RGB16_SNORM_EXT = 0x8F9A; + const GLenum RGBA16_SNORM_EXT = 0x8F9B; +}; diff --git a/interfaces/FileAPI.idl b/interfaces/FileAPI.idl index aee0e65dcae2672..4a9c6d06701957a 100644 --- a/interfaces/FileAPI.idl +++ b/interfaces/FileAPI.idl @@ -1,100 +1,100 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: File API (https://w3c.github.io/FileAPI/) - -[Exposed=(Window,Worker), Serializable] -interface Blob { - constructor(optional sequence blobParts, - optional BlobPropertyBag options = {}); - - readonly attribute unsigned long long size; - readonly attribute DOMString type; - - // slice Blob into byte-ranged chunks - Blob slice(optional [Clamp] long long start, - optional [Clamp] long long end, - optional DOMString contentType); - - // read from the Blob. - [NewObject] ReadableStream stream(); - [NewObject] Promise text(); - [NewObject] Promise arrayBuffer(); -}; - -enum EndingType { "transparent", "native" }; - -dictionary BlobPropertyBag { - DOMString type = ""; - EndingType endings = "transparent"; -}; - -typedef (BufferSource or Blob or USVString) BlobPart; - -[Exposed=(Window,Worker), Serializable] -interface File : Blob { - constructor(sequence fileBits, - USVString fileName, - optional FilePropertyBag options = {}); - readonly attribute DOMString name; - readonly attribute long long lastModified; -}; - -dictionary FilePropertyBag : BlobPropertyBag { - long long lastModified; -}; - -[Exposed=(Window,Worker), Serializable] -interface FileList { - getter File? item(unsigned long index); - readonly attribute unsigned long length; -}; - -[Exposed=(Window,Worker)] -interface FileReader: EventTarget { - constructor(); - // async read methods - undefined readAsArrayBuffer(Blob blob); - undefined readAsBinaryString(Blob blob); - undefined readAsText(Blob blob, optional DOMString encoding); - undefined readAsDataURL(Blob blob); - - undefined abort(); - - // states - const unsigned short EMPTY = 0; - const unsigned short LOADING = 1; - const unsigned short DONE = 2; - - readonly attribute unsigned short readyState; - - // File or Blob data - readonly attribute (DOMString or ArrayBuffer)? result; - - readonly attribute DOMException? error; - - // event handler content attributes - attribute EventHandler onloadstart; - attribute EventHandler onprogress; - attribute EventHandler onload; - attribute EventHandler onabort; - attribute EventHandler onerror; - attribute EventHandler onloadend; -}; - -[Exposed=(DedicatedWorker,SharedWorker)] -interface FileReaderSync { - constructor(); - // Synchronously return strings - - ArrayBuffer readAsArrayBuffer(Blob blob); - DOMString readAsBinaryString(Blob blob); - DOMString readAsText(Blob blob, optional DOMString encoding); - DOMString readAsDataURL(Blob blob); -}; - -[Exposed=(Window,DedicatedWorker,SharedWorker)] -partial interface URL { - static DOMString createObjectURL((Blob or MediaSource) obj); - static undefined revokeObjectURL(DOMString url); -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: File API (https://w3c.github.io/FileAPI/) + +[Exposed=(Window,Worker), Serializable] +interface Blob { + constructor(optional sequence blobParts, + optional BlobPropertyBag options = {}); + + readonly attribute unsigned long long size; + readonly attribute DOMString type; + + // slice Blob into byte-ranged chunks + Blob slice(optional [Clamp] long long start, + optional [Clamp] long long end, + optional DOMString contentType); + + // read from the Blob. + [NewObject] ReadableStream stream(); + [NewObject] Promise text(); + [NewObject] Promise arrayBuffer(); +}; + +enum EndingType { "transparent", "native" }; + +dictionary BlobPropertyBag { + DOMString type = ""; + EndingType endings = "transparent"; +}; + +typedef (BufferSource or Blob or USVString) BlobPart; + +[Exposed=(Window,Worker), Serializable] +interface File : Blob { + constructor(sequence fileBits, + USVString fileName, + optional FilePropertyBag options = {}); + readonly attribute DOMString name; + readonly attribute long long lastModified; +}; + +dictionary FilePropertyBag : BlobPropertyBag { + long long lastModified; +}; + +[Exposed=(Window,Worker), Serializable] +interface FileList { + getter File? item(unsigned long index); + readonly attribute unsigned long length; +}; + +[Exposed=(Window,Worker)] +interface FileReader: EventTarget { + constructor(); + // async read methods + undefined readAsArrayBuffer(Blob blob); + undefined readAsBinaryString(Blob blob); + undefined readAsText(Blob blob, optional DOMString encoding); + undefined readAsDataURL(Blob blob); + + undefined abort(); + + // states + const unsigned short EMPTY = 0; + const unsigned short LOADING = 1; + const unsigned short DONE = 2; + + readonly attribute unsigned short readyState; + + // File or Blob data + readonly attribute (DOMString or ArrayBuffer)? result; + + readonly attribute DOMException? error; + + // event handler content attributes + attribute EventHandler onloadstart; + attribute EventHandler onprogress; + attribute EventHandler onload; + attribute EventHandler onabort; + attribute EventHandler onerror; + attribute EventHandler onloadend; +}; + +[Exposed=(DedicatedWorker,SharedWorker)] +interface FileReaderSync { + constructor(); + // Synchronously return strings + + ArrayBuffer readAsArrayBuffer(Blob blob); + DOMString readAsBinaryString(Blob blob); + DOMString readAsText(Blob blob, optional DOMString encoding); + DOMString readAsDataURL(Blob blob); +}; + +[Exposed=(Window,DedicatedWorker,SharedWorker)] +partial interface URL { + static DOMString createObjectURL((Blob or MediaSource) obj); + static undefined revokeObjectURL(DOMString url); +}; diff --git a/interfaces/IndexedDB.idl b/interfaces/IndexedDB.idl index d82391da7e65ddd..fe5e99b9786318f 100644 --- a/interfaces/IndexedDB.idl +++ b/interfaces/IndexedDB.idl @@ -1,226 +1,226 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: Indexed Database API 3.0 (https://w3c.github.io/IndexedDB/) - -[Exposed=(Window,Worker)] -interface IDBRequest : EventTarget { - readonly attribute any result; - readonly attribute DOMException? error; - readonly attribute (IDBObjectStore or IDBIndex or IDBCursor)? source; - readonly attribute IDBTransaction? transaction; - readonly attribute IDBRequestReadyState readyState; - - // Event handlers: - attribute EventHandler onsuccess; - attribute EventHandler onerror; -}; - -enum IDBRequestReadyState { - "pending", - "done" -}; - -[Exposed=(Window,Worker)] -interface IDBOpenDBRequest : IDBRequest { - // Event handlers: - attribute EventHandler onblocked; - attribute EventHandler onupgradeneeded; -}; - -[Exposed=(Window,Worker)] -interface IDBVersionChangeEvent : Event { - constructor(DOMString type, optional IDBVersionChangeEventInit eventInitDict = {}); - readonly attribute unsigned long long oldVersion; - readonly attribute unsigned long long? newVersion; -}; - -dictionary IDBVersionChangeEventInit : EventInit { - unsigned long long oldVersion = 0; - unsigned long long? newVersion = null; -}; - -partial interface mixin WindowOrWorkerGlobalScope { - [SameObject] readonly attribute IDBFactory indexedDB; -}; - -[Exposed=(Window,Worker)] -interface IDBFactory { - [NewObject] IDBOpenDBRequest open(DOMString name, - optional [EnforceRange] unsigned long long version); - [NewObject] IDBOpenDBRequest deleteDatabase(DOMString name); - - Promise> databases(); - - short cmp(any first, any second); -}; - -dictionary IDBDatabaseInfo { - DOMString name; - unsigned long long version; -}; - -[Exposed=(Window,Worker)] -interface IDBDatabase : EventTarget { - readonly attribute DOMString name; - readonly attribute unsigned long long version; - readonly attribute DOMStringList objectStoreNames; - - [NewObject] IDBTransaction transaction((DOMString or sequence) storeNames, - optional IDBTransactionMode mode = "readonly", - optional IDBTransactionOptions options = {}); - undefined close(); - - [NewObject] IDBObjectStore createObjectStore( - DOMString name, - optional IDBObjectStoreParameters options = {}); - undefined deleteObjectStore(DOMString name); - - // Event handlers: - attribute EventHandler onabort; - attribute EventHandler onclose; - attribute EventHandler onerror; - attribute EventHandler onversionchange; -}; - -enum IDBTransactionDurability { "default", "strict", "relaxed" }; - -dictionary IDBTransactionOptions { - IDBTransactionDurability durability = "default"; -}; - -dictionary IDBObjectStoreParameters { - (DOMString or sequence)? keyPath = null; - boolean autoIncrement = false; -}; - -[Exposed=(Window,Worker)] -interface IDBObjectStore { - attribute DOMString name; - readonly attribute any keyPath; - readonly attribute DOMStringList indexNames; - [SameObject] readonly attribute IDBTransaction transaction; - readonly attribute boolean autoIncrement; - - [NewObject] IDBRequest put(any value, optional any key); - [NewObject] IDBRequest add(any value, optional any key); - [NewObject] IDBRequest delete(any query); - [NewObject] IDBRequest clear(); - [NewObject] IDBRequest get(any query); - [NewObject] IDBRequest getKey(any query); - [NewObject] IDBRequest getAll(optional any query, - optional [EnforceRange] unsigned long count); - [NewObject] IDBRequest getAllKeys(optional any query, - optional [EnforceRange] unsigned long count); - [NewObject] IDBRequest count(optional any query); - - [NewObject] IDBRequest openCursor(optional any query, - optional IDBCursorDirection direction = "next"); - [NewObject] IDBRequest openKeyCursor(optional any query, - optional IDBCursorDirection direction = "next"); - - IDBIndex index(DOMString name); - - [NewObject] IDBIndex createIndex(DOMString name, - (DOMString or sequence) keyPath, - optional IDBIndexParameters options = {}); - undefined deleteIndex(DOMString name); -}; - -dictionary IDBIndexParameters { - boolean unique = false; - boolean multiEntry = false; -}; - -[Exposed=(Window,Worker)] -interface IDBIndex { - attribute DOMString name; - [SameObject] readonly attribute IDBObjectStore objectStore; - readonly attribute any keyPath; - readonly attribute boolean multiEntry; - readonly attribute boolean unique; - - [NewObject] IDBRequest get(any query); - [NewObject] IDBRequest getKey(any query); - [NewObject] IDBRequest getAll(optional any query, - optional [EnforceRange] unsigned long count); - [NewObject] IDBRequest getAllKeys(optional any query, - optional [EnforceRange] unsigned long count); - [NewObject] IDBRequest count(optional any query); - - [NewObject] IDBRequest openCursor(optional any query, - optional IDBCursorDirection direction = "next"); - [NewObject] IDBRequest openKeyCursor(optional any query, - optional IDBCursorDirection direction = "next"); -}; - -[Exposed=(Window,Worker)] -interface IDBKeyRange { - readonly attribute any lower; - readonly attribute any upper; - readonly attribute boolean lowerOpen; - readonly attribute boolean upperOpen; - - // Static construction methods: - [NewObject] static IDBKeyRange only(any value); - [NewObject] static IDBKeyRange lowerBound(any lower, optional boolean open = false); - [NewObject] static IDBKeyRange upperBound(any upper, optional boolean open = false); - [NewObject] static IDBKeyRange bound(any lower, - any upper, - optional boolean lowerOpen = false, - optional boolean upperOpen = false); - - boolean includes(any key); -}; - -[Exposed=(Window,Worker)] -interface IDBCursor { - readonly attribute (IDBObjectStore or IDBIndex) source; - readonly attribute IDBCursorDirection direction; - readonly attribute any key; - readonly attribute any primaryKey; - [SameObject] readonly attribute IDBRequest request; - - undefined advance([EnforceRange] unsigned long count); - undefined continue(optional any key); - undefined continuePrimaryKey(any key, any primaryKey); - - [NewObject] IDBRequest update(any value); - [NewObject] IDBRequest delete(); -}; - -enum IDBCursorDirection { - "next", - "nextunique", - "prev", - "prevunique" -}; - -[Exposed=(Window,Worker)] -interface IDBCursorWithValue : IDBCursor { - readonly attribute any value; -}; - -[Exposed=(Window,Worker)] -interface IDBTransaction : EventTarget { - readonly attribute DOMStringList objectStoreNames; - readonly attribute IDBTransactionMode mode; - readonly attribute IDBTransactionDurability durability; - [SameObject] readonly attribute IDBDatabase db; - readonly attribute DOMException? error; - - IDBObjectStore objectStore(DOMString name); - undefined commit(); - undefined abort(); - - // Event handlers: - attribute EventHandler onabort; - attribute EventHandler oncomplete; - attribute EventHandler onerror; -}; - -enum IDBTransactionMode { - "readonly", - "readwrite", - "versionchange" -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Indexed Database API 3.0 (https://w3c.github.io/IndexedDB/) + +[Exposed=(Window,Worker)] +interface IDBRequest : EventTarget { + readonly attribute any result; + readonly attribute DOMException? error; + readonly attribute (IDBObjectStore or IDBIndex or IDBCursor)? source; + readonly attribute IDBTransaction? transaction; + readonly attribute IDBRequestReadyState readyState; + + // Event handlers: + attribute EventHandler onsuccess; + attribute EventHandler onerror; +}; + +enum IDBRequestReadyState { + "pending", + "done" +}; + +[Exposed=(Window,Worker)] +interface IDBOpenDBRequest : IDBRequest { + // Event handlers: + attribute EventHandler onblocked; + attribute EventHandler onupgradeneeded; +}; + +[Exposed=(Window,Worker)] +interface IDBVersionChangeEvent : Event { + constructor(DOMString type, optional IDBVersionChangeEventInit eventInitDict = {}); + readonly attribute unsigned long long oldVersion; + readonly attribute unsigned long long? newVersion; +}; + +dictionary IDBVersionChangeEventInit : EventInit { + unsigned long long oldVersion = 0; + unsigned long long? newVersion = null; +}; + +partial interface mixin WindowOrWorkerGlobalScope { + [SameObject] readonly attribute IDBFactory indexedDB; +}; + +[Exposed=(Window,Worker)] +interface IDBFactory { + [NewObject] IDBOpenDBRequest open(DOMString name, + optional [EnforceRange] unsigned long long version); + [NewObject] IDBOpenDBRequest deleteDatabase(DOMString name); + + Promise> databases(); + + short cmp(any first, any second); +}; + +dictionary IDBDatabaseInfo { + DOMString name; + unsigned long long version; +}; + +[Exposed=(Window,Worker)] +interface IDBDatabase : EventTarget { + readonly attribute DOMString name; + readonly attribute unsigned long long version; + readonly attribute DOMStringList objectStoreNames; + + [NewObject] IDBTransaction transaction((DOMString or sequence) storeNames, + optional IDBTransactionMode mode = "readonly", + optional IDBTransactionOptions options = {}); + undefined close(); + + [NewObject] IDBObjectStore createObjectStore( + DOMString name, + optional IDBObjectStoreParameters options = {}); + undefined deleteObjectStore(DOMString name); + + // Event handlers: + attribute EventHandler onabort; + attribute EventHandler onclose; + attribute EventHandler onerror; + attribute EventHandler onversionchange; +}; + +enum IDBTransactionDurability { "default", "strict", "relaxed" }; + +dictionary IDBTransactionOptions { + IDBTransactionDurability durability = "default"; +}; + +dictionary IDBObjectStoreParameters { + (DOMString or sequence)? keyPath = null; + boolean autoIncrement = false; +}; + +[Exposed=(Window,Worker)] +interface IDBObjectStore { + attribute DOMString name; + readonly attribute any keyPath; + readonly attribute DOMStringList indexNames; + [SameObject] readonly attribute IDBTransaction transaction; + readonly attribute boolean autoIncrement; + + [NewObject] IDBRequest put(any value, optional any key); + [NewObject] IDBRequest add(any value, optional any key); + [NewObject] IDBRequest delete(any query); + [NewObject] IDBRequest clear(); + [NewObject] IDBRequest get(any query); + [NewObject] IDBRequest getKey(any query); + [NewObject] IDBRequest getAll(optional any query, + optional [EnforceRange] unsigned long count); + [NewObject] IDBRequest getAllKeys(optional any query, + optional [EnforceRange] unsigned long count); + [NewObject] IDBRequest count(optional any query); + + [NewObject] IDBRequest openCursor(optional any query, + optional IDBCursorDirection direction = "next"); + [NewObject] IDBRequest openKeyCursor(optional any query, + optional IDBCursorDirection direction = "next"); + + IDBIndex index(DOMString name); + + [NewObject] IDBIndex createIndex(DOMString name, + (DOMString or sequence) keyPath, + optional IDBIndexParameters options = {}); + undefined deleteIndex(DOMString name); +}; + +dictionary IDBIndexParameters { + boolean unique = false; + boolean multiEntry = false; +}; + +[Exposed=(Window,Worker)] +interface IDBIndex { + attribute DOMString name; + [SameObject] readonly attribute IDBObjectStore objectStore; + readonly attribute any keyPath; + readonly attribute boolean multiEntry; + readonly attribute boolean unique; + + [NewObject] IDBRequest get(any query); + [NewObject] IDBRequest getKey(any query); + [NewObject] IDBRequest getAll(optional any query, + optional [EnforceRange] unsigned long count); + [NewObject] IDBRequest getAllKeys(optional any query, + optional [EnforceRange] unsigned long count); + [NewObject] IDBRequest count(optional any query); + + [NewObject] IDBRequest openCursor(optional any query, + optional IDBCursorDirection direction = "next"); + [NewObject] IDBRequest openKeyCursor(optional any query, + optional IDBCursorDirection direction = "next"); +}; + +[Exposed=(Window,Worker)] +interface IDBKeyRange { + readonly attribute any lower; + readonly attribute any upper; + readonly attribute boolean lowerOpen; + readonly attribute boolean upperOpen; + + // Static construction methods: + [NewObject] static IDBKeyRange only(any value); + [NewObject] static IDBKeyRange lowerBound(any lower, optional boolean open = false); + [NewObject] static IDBKeyRange upperBound(any upper, optional boolean open = false); + [NewObject] static IDBKeyRange bound(any lower, + any upper, + optional boolean lowerOpen = false, + optional boolean upperOpen = false); + + boolean includes(any key); +}; + +[Exposed=(Window,Worker)] +interface IDBCursor { + readonly attribute (IDBObjectStore or IDBIndex) source; + readonly attribute IDBCursorDirection direction; + readonly attribute any key; + readonly attribute any primaryKey; + [SameObject] readonly attribute IDBRequest request; + + undefined advance([EnforceRange] unsigned long count); + undefined continue(optional any key); + undefined continuePrimaryKey(any key, any primaryKey); + + [NewObject] IDBRequest update(any value); + [NewObject] IDBRequest delete(); +}; + +enum IDBCursorDirection { + "next", + "nextunique", + "prev", + "prevunique" +}; + +[Exposed=(Window,Worker)] +interface IDBCursorWithValue : IDBCursor { + readonly attribute any value; +}; + +[Exposed=(Window,Worker)] +interface IDBTransaction : EventTarget { + readonly attribute DOMStringList objectStoreNames; + readonly attribute IDBTransactionMode mode; + readonly attribute IDBTransactionDurability durability; + [SameObject] readonly attribute IDBDatabase db; + readonly attribute DOMException? error; + + IDBObjectStore objectStore(DOMString name); + undefined commit(); + undefined abort(); + + // Event handlers: + attribute EventHandler onabort; + attribute EventHandler oncomplete; + attribute EventHandler onerror; +}; + +enum IDBTransactionMode { + "readonly", + "readwrite", + "versionchange" +}; diff --git a/interfaces/KHR_parallel_shader_compile.idl b/interfaces/KHR_parallel_shader_compile.idl index 4001f16e978152a..fbc0309c5ce3191 100644 --- a/interfaces/KHR_parallel_shader_compile.idl +++ b/interfaces/KHR_parallel_shader_compile.idl @@ -1,9 +1,9 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL KHR_parallel_shader_compile Extension Specification (https://www.khronos.org/registry/webgl/extensions/KHR_parallel_shader_compile/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface KHR_parallel_shader_compile { - const GLenum COMPLETION_STATUS_KHR = 0x91B1; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL KHR_parallel_shader_compile Extension Specification (https://www.khronos.org/registry/webgl/extensions/KHR_parallel_shader_compile/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface KHR_parallel_shader_compile { + const GLenum COMPLETION_STATUS_KHR = 0x91B1; +}; diff --git a/interfaces/OES_draw_buffers_indexed.idl b/interfaces/OES_draw_buffers_indexed.idl index 25696f12fca7779..449395d96a35cba 100644 --- a/interfaces/OES_draw_buffers_indexed.idl +++ b/interfaces/OES_draw_buffers_indexed.idl @@ -1,26 +1,26 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL OES_draw_buffers_indexed Extension Draft Specification (https://www.khronos.org/registry/webgl/extensions/OES_draw_buffers_indexed/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface OES_draw_buffers_indexed { - undefined enableiOES(GLenum target, GLuint index); - - undefined disableiOES(GLenum target, GLuint index); - - undefined blendEquationiOES(GLuint buf, GLenum mode); - - undefined blendEquationSeparateiOES(GLuint buf, - GLenum modeRGB, GLenum modeAlpha); - - undefined blendFunciOES(GLuint buf, - GLenum src, GLenum dst); - - undefined blendFuncSeparateiOES(GLuint buf, - GLenum srcRGB, GLenum dstRGB, - GLenum srcAlpha, GLenum dstAlpha); - - undefined colorMaskiOES(GLuint buf, - GLboolean r, GLboolean g, GLboolean b, GLboolean a); -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL OES_draw_buffers_indexed Extension Draft Specification (https://www.khronos.org/registry/webgl/extensions/OES_draw_buffers_indexed/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface OES_draw_buffers_indexed { + undefined enableiOES(GLenum target, GLuint index); + + undefined disableiOES(GLenum target, GLuint index); + + undefined blendEquationiOES(GLuint buf, GLenum mode); + + undefined blendEquationSeparateiOES(GLuint buf, + GLenum modeRGB, GLenum modeAlpha); + + undefined blendFunciOES(GLuint buf, + GLenum src, GLenum dst); + + undefined blendFuncSeparateiOES(GLuint buf, + GLenum srcRGB, GLenum dstRGB, + GLenum srcAlpha, GLenum dstAlpha); + + undefined colorMaskiOES(GLuint buf, + GLboolean r, GLboolean g, GLboolean b, GLboolean a); +}; diff --git a/interfaces/OES_element_index_uint.idl b/interfaces/OES_element_index_uint.idl index f2d8c6ad13a3456..bef8c8c16da0ef3 100644 --- a/interfaces/OES_element_index_uint.idl +++ b/interfaces/OES_element_index_uint.idl @@ -1,8 +1,8 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL OES_element_index_uint Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/OES_element_index_uint/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface OES_element_index_uint { -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL OES_element_index_uint Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/OES_element_index_uint/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface OES_element_index_uint { +}; diff --git a/interfaces/OES_fbo_render_mipmap.idl b/interfaces/OES_fbo_render_mipmap.idl index 9a7d78a0a0f6747..6639e25ae5503e4 100644 --- a/interfaces/OES_fbo_render_mipmap.idl +++ b/interfaces/OES_fbo_render_mipmap.idl @@ -1,8 +1,8 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL OES_fbo_render_mipmap Extension Specification (https://www.khronos.org/registry/webgl/extensions/OES_fbo_render_mipmap/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface OES_fbo_render_mipmap { -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL OES_fbo_render_mipmap Extension Specification (https://www.khronos.org/registry/webgl/extensions/OES_fbo_render_mipmap/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface OES_fbo_render_mipmap { +}; diff --git a/interfaces/OES_standard_derivatives.idl b/interfaces/OES_standard_derivatives.idl index 46da3d21aec42da..df50aed910d87f7 100644 --- a/interfaces/OES_standard_derivatives.idl +++ b/interfaces/OES_standard_derivatives.idl @@ -1,9 +1,9 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL OES_standard_derivatives Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface OES_standard_derivatives { - const GLenum FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL OES_standard_derivatives Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface OES_standard_derivatives { + const GLenum FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; +}; diff --git a/interfaces/OES_texture_float.idl b/interfaces/OES_texture_float.idl index 913886e93cf4d91..bde5c2ae268d068 100644 --- a/interfaces/OES_texture_float.idl +++ b/interfaces/OES_texture_float.idl @@ -1,7 +1,7 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL OES_texture_float Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/OES_texture_float/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface OES_texture_float { }; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL OES_texture_float Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/OES_texture_float/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface OES_texture_float { }; diff --git a/interfaces/OES_texture_float_linear.idl b/interfaces/OES_texture_float_linear.idl index aa62590103feb85..50d7252931d1cc1 100644 --- a/interfaces/OES_texture_float_linear.idl +++ b/interfaces/OES_texture_float_linear.idl @@ -1,7 +1,7 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL OES_texture_float_linear Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/OES_texture_float_linear/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface OES_texture_float_linear { }; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL OES_texture_float_linear Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/OES_texture_float_linear/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface OES_texture_float_linear { }; diff --git a/interfaces/OES_texture_half_float.idl b/interfaces/OES_texture_half_float.idl index cefd643c4d0e94f..414912ece339fd6 100644 --- a/interfaces/OES_texture_half_float.idl +++ b/interfaces/OES_texture_half_float.idl @@ -1,9 +1,9 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL OES_texture_half_float Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/OES_texture_half_float/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface OES_texture_half_float { - const GLenum HALF_FLOAT_OES = 0x8D61; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL OES_texture_half_float Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/OES_texture_half_float/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface OES_texture_half_float { + const GLenum HALF_FLOAT_OES = 0x8D61; +}; diff --git a/interfaces/OES_texture_half_float_linear.idl b/interfaces/OES_texture_half_float_linear.idl index dde3efbac63c1ab..1050fc4cb2d83da 100644 --- a/interfaces/OES_texture_half_float_linear.idl +++ b/interfaces/OES_texture_half_float_linear.idl @@ -1,7 +1,7 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL OES_texture_half_float_linear Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/OES_texture_half_float_linear/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface OES_texture_half_float_linear { }; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL OES_texture_half_float_linear Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/OES_texture_half_float_linear/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface OES_texture_half_float_linear { }; diff --git a/interfaces/OES_vertex_array_object.idl b/interfaces/OES_vertex_array_object.idl index c366b03b0a023ce..34b1a8906770c14 100644 --- a/interfaces/OES_vertex_array_object.idl +++ b/interfaces/OES_vertex_array_object.idl @@ -1,18 +1,18 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL OES_vertex_array_object Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface WebGLVertexArrayObjectOES : WebGLObject { -}; - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface OES_vertex_array_object { - const GLenum VERTEX_ARRAY_BINDING_OES = 0x85B5; - - WebGLVertexArrayObjectOES? createVertexArrayOES(); - undefined deleteVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject); - [WebGLHandlesContextLoss] GLboolean isVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject); - undefined bindVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject); -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL OES_vertex_array_object Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface WebGLVertexArrayObjectOES : WebGLObject { +}; + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface OES_vertex_array_object { + const GLenum VERTEX_ARRAY_BINDING_OES = 0x85B5; + + WebGLVertexArrayObjectOES? createVertexArrayOES(); + undefined deleteVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject); + [WebGLHandlesContextLoss] GLboolean isVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject); + undefined bindVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject); +}; diff --git a/interfaces/OVR_multiview2.idl b/interfaces/OVR_multiview2.idl index 96a71ebd0fb6935..1c3da00f1773bf6 100644 --- a/interfaces/OVR_multiview2.idl +++ b/interfaces/OVR_multiview2.idl @@ -1,14 +1,14 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL OVR_multiview2 Extension Specification (https://www.khronos.org/registry/webgl/extensions/OVR_multiview2/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface OVR_multiview2 { - const GLenum FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR = 0x9630; - const GLenum FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR = 0x9632; - const GLenum MAX_VIEWS_OVR = 0x9631; - const GLenum FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR = 0x9633; - - undefined framebufferTextureMultiviewOVR(GLenum target, GLenum attachment, WebGLTexture? texture, GLint level, GLint baseViewIndex, GLsizei numViews); -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL OVR_multiview2 Extension Specification (https://www.khronos.org/registry/webgl/extensions/OVR_multiview2/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface OVR_multiview2 { + const GLenum FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR = 0x9630; + const GLenum FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR = 0x9632; + const GLenum MAX_VIEWS_OVR = 0x9631; + const GLenum FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR = 0x9633; + + undefined framebufferTextureMultiviewOVR(GLenum target, GLenum attachment, WebGLTexture? texture, GLint level, GLint baseViewIndex, GLsizei numViews); +}; diff --git a/interfaces/SVG.idl b/interfaces/SVG.idl index 11a5c7c299cd3b8..a53bbb27d4d8a2d 100644 --- a/interfaces/SVG.idl +++ b/interfaces/SVG.idl @@ -1,694 +1,730 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: Scalable Vector Graphics (SVG) 2 (https://svgwg.org/svg2-draft/) - -[Exposed=Window] -interface SVGElement : Element { - - [SameObject] readonly attribute SVGAnimatedString className; - - readonly attribute SVGSVGElement? ownerSVGElement; - readonly attribute SVGElement? viewportElement; -}; - -SVGElement includes GlobalEventHandlers; -SVGElement includes DocumentAndElementEventHandlers; -SVGElement includes SVGElementInstance; -SVGElement includes HTMLOrSVGElement; - -dictionary SVGBoundingBoxOptions { - boolean fill = true; - boolean stroke = false; - boolean markers = false; - boolean clipped = false; -}; - -[Exposed=Window] -interface SVGGraphicsElement : SVGElement { - [SameObject] readonly attribute SVGAnimatedTransformList transform; - - DOMRect getBBox(optional SVGBoundingBoxOptions options = {}); - DOMMatrix? getCTM(); - DOMMatrix? getScreenCTM(); -}; - -SVGGraphicsElement includes SVGTests; - -[Exposed=Window] -interface SVGGeometryElement : SVGGraphicsElement { - [SameObject] readonly attribute SVGAnimatedNumber pathLength; - - boolean isPointInFill(optional DOMPointInit point = {}); - boolean isPointInStroke(optional DOMPointInit point = {}); - float getTotalLength(); - DOMPoint getPointAtLength(float distance); -}; - -[Exposed=Window] -interface SVGNumber { - attribute float value; -}; - -[Exposed=Window] -interface SVGLength { - - // Length Unit Types - const unsigned short SVG_LENGTHTYPE_UNKNOWN = 0; - const unsigned short SVG_LENGTHTYPE_NUMBER = 1; - const unsigned short SVG_LENGTHTYPE_PERCENTAGE = 2; - const unsigned short SVG_LENGTHTYPE_EMS = 3; - const unsigned short SVG_LENGTHTYPE_EXS = 4; - const unsigned short SVG_LENGTHTYPE_PX = 5; - const unsigned short SVG_LENGTHTYPE_CM = 6; - const unsigned short SVG_LENGTHTYPE_MM = 7; - const unsigned short SVG_LENGTHTYPE_IN = 8; - const unsigned short SVG_LENGTHTYPE_PT = 9; - const unsigned short SVG_LENGTHTYPE_PC = 10; - - readonly attribute unsigned short unitType; - attribute float value; - attribute float valueInSpecifiedUnits; - attribute DOMString valueAsString; - - undefined newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits); - undefined convertToSpecifiedUnits(unsigned short unitType); -}; - -[Exposed=Window] -interface SVGAngle { - - // Angle Unit Types - const unsigned short SVG_ANGLETYPE_UNKNOWN = 0; - const unsigned short SVG_ANGLETYPE_UNSPECIFIED = 1; - const unsigned short SVG_ANGLETYPE_DEG = 2; - const unsigned short SVG_ANGLETYPE_RAD = 3; - const unsigned short SVG_ANGLETYPE_GRAD = 4; - - readonly attribute unsigned short unitType; - attribute float value; - attribute float valueInSpecifiedUnits; - attribute DOMString valueAsString; - - undefined newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits); - undefined convertToSpecifiedUnits(unsigned short unitType); -}; - -[Exposed=Window] -interface SVGNumberList { - - readonly attribute unsigned long length; - readonly attribute unsigned long numberOfItems; - - undefined clear(); - SVGNumber initialize(SVGNumber newItem); - getter SVGNumber getItem(unsigned long index); - SVGNumber insertItemBefore(SVGNumber newItem, unsigned long index); - SVGNumber replaceItem(SVGNumber newItem, unsigned long index); - SVGNumber removeItem(unsigned long index); - SVGNumber appendItem(SVGNumber newItem); - setter undefined (unsigned long index, SVGNumber newItem); -}; - -[Exposed=Window] -interface SVGLengthList { - - readonly attribute unsigned long length; - readonly attribute unsigned long numberOfItems; - - undefined clear(); - SVGLength initialize(SVGLength newItem); - getter SVGLength getItem(unsigned long index); - SVGLength insertItemBefore(SVGLength newItem, unsigned long index); - SVGLength replaceItem(SVGLength newItem, unsigned long index); - SVGLength removeItem(unsigned long index); - SVGLength appendItem(SVGLength newItem); - setter undefined (unsigned long index, SVGLength newItem); -}; - -[Exposed=Window] -interface SVGStringList { - - readonly attribute unsigned long length; - readonly attribute unsigned long numberOfItems; - - undefined clear(); - DOMString initialize(DOMString newItem); - getter DOMString getItem(unsigned long index); - DOMString insertItemBefore(DOMString newItem, unsigned long index); - DOMString replaceItem(DOMString newItem, unsigned long index); - DOMString removeItem(unsigned long index); - DOMString appendItem(DOMString newItem); - setter undefined (unsigned long index, DOMString newItem); -}; - -[Exposed=Window] -interface SVGAnimatedBoolean { - attribute boolean baseVal; - readonly attribute boolean animVal; -}; - -[Exposed=Window] -interface SVGAnimatedEnumeration { - attribute unsigned short baseVal; - readonly attribute unsigned short animVal; -}; - -[Exposed=Window] -interface SVGAnimatedInteger { - attribute long baseVal; - readonly attribute long animVal; -}; - -[Exposed=Window] -interface SVGAnimatedNumber { - attribute float baseVal; - readonly attribute float animVal; -}; - -[Exposed=Window] -interface SVGAnimatedLength { - [SameObject] readonly attribute SVGLength baseVal; - [SameObject] readonly attribute SVGLength animVal; -}; - -[Exposed=Window] -interface SVGAnimatedAngle { - [SameObject] readonly attribute SVGAngle baseVal; - [SameObject] readonly attribute SVGAngle animVal; -}; - -[Exposed=Window] -interface SVGAnimatedString { - attribute DOMString baseVal; - readonly attribute DOMString animVal; -}; - -[Exposed=Window] -interface SVGAnimatedRect { - [SameObject] readonly attribute DOMRect baseVal; - [SameObject] readonly attribute DOMRectReadOnly animVal; -}; - -[Exposed=Window] -interface SVGAnimatedNumberList { - [SameObject] readonly attribute SVGNumberList baseVal; - [SameObject] readonly attribute SVGNumberList animVal; -}; - -[Exposed=Window] -interface SVGAnimatedLengthList { - [SameObject] readonly attribute SVGLengthList baseVal; - [SameObject] readonly attribute SVGLengthList animVal; -}; - -[Exposed=Window] -interface SVGUnitTypes { - // Unit Types - const unsigned short SVG_UNIT_TYPE_UNKNOWN = 0; - const unsigned short SVG_UNIT_TYPE_USERSPACEONUSE = 1; - const unsigned short SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2; -}; - -interface mixin SVGTests { - [SameObject] readonly attribute SVGStringList requiredExtensions; - [SameObject] readonly attribute SVGStringList systemLanguage; -}; - -interface mixin SVGFitToViewBox { - [SameObject] readonly attribute SVGAnimatedRect viewBox; - [SameObject] readonly attribute SVGAnimatedPreserveAspectRatio preserveAspectRatio; -}; - -interface mixin SVGURIReference { - [SameObject] readonly attribute SVGAnimatedString href; -}; - -partial interface Document { - readonly attribute SVGSVGElement? rootElement; -}; - -[Exposed=Window] -interface SVGSVGElement : SVGGraphicsElement { - - [SameObject] readonly attribute SVGAnimatedLength x; - [SameObject] readonly attribute SVGAnimatedLength y; - [SameObject] readonly attribute SVGAnimatedLength width; - [SameObject] readonly attribute SVGAnimatedLength height; - - attribute float currentScale; - [SameObject] readonly attribute DOMPointReadOnly currentTranslate; - - NodeList getIntersectionList(DOMRectReadOnly rect, SVGElement? referenceElement); - NodeList getEnclosureList(DOMRectReadOnly rect, SVGElement? referenceElement); - boolean checkIntersection(SVGElement element, DOMRectReadOnly rect); - boolean checkEnclosure(SVGElement element, DOMRectReadOnly rect); - - undefined deselectAll(); - - SVGNumber createSVGNumber(); - SVGLength createSVGLength(); - SVGAngle createSVGAngle(); - DOMPoint createSVGPoint(); - DOMMatrix createSVGMatrix(); - DOMRect createSVGRect(); - SVGTransform createSVGTransform(); - SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix = {}); - - Element getElementById(DOMString elementId); - - // Deprecated methods that have no effect when called, - // but which are kept for compatibility reasons. - unsigned long suspendRedraw(unsigned long maxWaitMilliseconds); - undefined unsuspendRedraw(unsigned long suspendHandleID); - undefined unsuspendRedrawAll(); - undefined forceRedraw(); -}; - -SVGSVGElement includes SVGFitToViewBox; -SVGSVGElement includes WindowEventHandlers; - -[Exposed=Window] -interface SVGGElement : SVGGraphicsElement { -}; - -[Exposed=Window] -interface SVGDefsElement : SVGGraphicsElement { -}; - -[Exposed=Window] -interface SVGDescElement : SVGElement { -}; - -[Exposed=Window] -interface SVGMetadataElement : SVGElement { -}; - -[Exposed=Window] -interface SVGTitleElement : SVGElement { -}; - -[Exposed=Window] -interface SVGSymbolElement : SVGGraphicsElement { -}; - -SVGSymbolElement includes SVGFitToViewBox; - -[Exposed=Window] -interface SVGUseElement : SVGGraphicsElement { - [SameObject] readonly attribute SVGAnimatedLength x; - [SameObject] readonly attribute SVGAnimatedLength y; - [SameObject] readonly attribute SVGAnimatedLength width; - [SameObject] readonly attribute SVGAnimatedLength height; - [SameObject] readonly attribute SVGElement? instanceRoot; - [SameObject] readonly attribute SVGElement? animatedInstanceRoot; -}; - -SVGUseElement includes SVGURIReference; - -[Exposed=Window] -interface SVGUseElementShadowRoot : ShadowRoot { -}; - -interface mixin SVGElementInstance { - [SameObject] readonly attribute SVGElement? correspondingElement; - [SameObject] readonly attribute SVGUseElement? correspondingUseElement; -}; - -[Exposed=Window] -interface ShadowAnimation : Animation { - constructor(Animation source, (Element or CSSPseudoElement) newTarget); - [SameObject] readonly attribute Animation sourceAnimation; -}; - -[Exposed=Window] -interface SVGSwitchElement : SVGGraphicsElement { -}; - -interface mixin GetSVGDocument { - Document getSVGDocument(); -}; - -[Exposed=Window] -interface SVGStyleElement : SVGElement { - attribute DOMString type; - attribute DOMString media; - attribute DOMString title; -}; - -SVGStyleElement includes LinkStyle; - -[Exposed=Window] -interface SVGTransform { - - // Transform Types - const unsigned short SVG_TRANSFORM_UNKNOWN = 0; - const unsigned short SVG_TRANSFORM_MATRIX = 1; - const unsigned short SVG_TRANSFORM_TRANSLATE = 2; - const unsigned short SVG_TRANSFORM_SCALE = 3; - const unsigned short SVG_TRANSFORM_ROTATE = 4; - const unsigned short SVG_TRANSFORM_SKEWX = 5; - const unsigned short SVG_TRANSFORM_SKEWY = 6; - - readonly attribute unsigned short type; - [SameObject] readonly attribute DOMMatrix matrix; - readonly attribute float angle; - - undefined setMatrix(optional DOMMatrix2DInit matrix = {}); - undefined setTranslate(float tx, float ty); - undefined setScale(float sx, float sy); - undefined setRotate(float angle, float cx, float cy); - undefined setSkewX(float angle); - undefined setSkewY(float angle); -}; - -[Exposed=Window] -interface SVGTransformList { - - readonly attribute unsigned long length; - readonly attribute unsigned long numberOfItems; - - undefined clear(); - SVGTransform initialize(SVGTransform newItem); - getter SVGTransform getItem(unsigned long index); - SVGTransform insertItemBefore(SVGTransform newItem, unsigned long index); - SVGTransform replaceItem(SVGTransform newItem, unsigned long index); - SVGTransform removeItem(unsigned long index); - SVGTransform appendItem(SVGTransform newItem); - setter undefined (unsigned long index, SVGTransform newItem); - - // Additional methods not common to other list interfaces. - SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix = {}); - SVGTransform? consolidate(); -}; - -[Exposed=Window] -interface SVGAnimatedTransformList { - [SameObject] readonly attribute SVGTransformList baseVal; - [SameObject] readonly attribute SVGTransformList animVal; -}; - -[Exposed=Window] -interface SVGPreserveAspectRatio { - - // Alignment Types - const unsigned short SVG_PRESERVEASPECTRATIO_UNKNOWN = 0; - const unsigned short SVG_PRESERVEASPECTRATIO_NONE = 1; - const unsigned short SVG_PRESERVEASPECTRATIO_XMINYMIN = 2; - const unsigned short SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3; - const unsigned short SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4; - const unsigned short SVG_PRESERVEASPECTRATIO_XMINYMID = 5; - const unsigned short SVG_PRESERVEASPECTRATIO_XMIDYMID = 6; - const unsigned short SVG_PRESERVEASPECTRATIO_XMAXYMID = 7; - const unsigned short SVG_PRESERVEASPECTRATIO_XMINYMAX = 8; - const unsigned short SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9; - const unsigned short SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10; - - // Meet-or-slice Types - const unsigned short SVG_MEETORSLICE_UNKNOWN = 0; - const unsigned short SVG_MEETORSLICE_MEET = 1; - const unsigned short SVG_MEETORSLICE_SLICE = 2; - - attribute unsigned short align; - attribute unsigned short meetOrSlice; -}; - -[Exposed=Window] -interface SVGAnimatedPreserveAspectRatio { - [SameObject] readonly attribute SVGPreserveAspectRatio baseVal; - [SameObject] readonly attribute SVGPreserveAspectRatio animVal; -}; - -[Exposed=Window] -interface SVGPathElement : SVGGeometryElement { -}; - -[Exposed=Window] -interface SVGRectElement : SVGGeometryElement { - [SameObject] readonly attribute SVGAnimatedLength x; - [SameObject] readonly attribute SVGAnimatedLength y; - [SameObject] readonly attribute SVGAnimatedLength width; - [SameObject] readonly attribute SVGAnimatedLength height; - [SameObject] readonly attribute SVGAnimatedLength rx; - [SameObject] readonly attribute SVGAnimatedLength ry; -}; - -[Exposed=Window] -interface SVGCircleElement : SVGGeometryElement { - [SameObject] readonly attribute SVGAnimatedLength cx; - [SameObject] readonly attribute SVGAnimatedLength cy; - [SameObject] readonly attribute SVGAnimatedLength r; -}; - -[Exposed=Window] -interface SVGEllipseElement : SVGGeometryElement { - [SameObject] readonly attribute SVGAnimatedLength cx; - [SameObject] readonly attribute SVGAnimatedLength cy; - [SameObject] readonly attribute SVGAnimatedLength rx; - [SameObject] readonly attribute SVGAnimatedLength ry; -}; - -[Exposed=Window] -interface SVGLineElement : SVGGeometryElement { - [SameObject] readonly attribute SVGAnimatedLength x1; - [SameObject] readonly attribute SVGAnimatedLength y1; - [SameObject] readonly attribute SVGAnimatedLength x2; - [SameObject] readonly attribute SVGAnimatedLength y2; -}; - -interface mixin SVGAnimatedPoints { - [SameObject] readonly attribute SVGPointList points; - [SameObject] readonly attribute SVGPointList animatedPoints; -}; - -[Exposed=Window] -interface SVGPointList { - - readonly attribute unsigned long length; - readonly attribute unsigned long numberOfItems; - - undefined clear(); - DOMPoint initialize(DOMPoint newItem); - getter DOMPoint getItem(unsigned long index); - DOMPoint insertItemBefore(DOMPoint newItem, unsigned long index); - DOMPoint replaceItem(DOMPoint newItem, unsigned long index); - DOMPoint removeItem(unsigned long index); - DOMPoint appendItem(DOMPoint newItem); - setter undefined (unsigned long index, DOMPoint newItem); -}; - -[Exposed=Window] -interface SVGPolylineElement : SVGGeometryElement { -}; - -SVGPolylineElement includes SVGAnimatedPoints; - -[Exposed=Window] -interface SVGPolygonElement : SVGGeometryElement { -}; - -SVGPolygonElement includes SVGAnimatedPoints; - -[Exposed=Window] -interface SVGTextContentElement : SVGGraphicsElement { - - // lengthAdjust Types - const unsigned short LENGTHADJUST_UNKNOWN = 0; - const unsigned short LENGTHADJUST_SPACING = 1; - const unsigned short LENGTHADJUST_SPACINGANDGLYPHS = 2; - - [SameObject] readonly attribute SVGAnimatedLength textLength; - [SameObject] readonly attribute SVGAnimatedEnumeration lengthAdjust; - - long getNumberOfChars(); - float getComputedTextLength(); - float getSubStringLength(unsigned long charnum, unsigned long nchars); - DOMPoint getStartPositionOfChar(unsigned long charnum); - DOMPoint getEndPositionOfChar(unsigned long charnum); - DOMRect getExtentOfChar(unsigned long charnum); - float getRotationOfChar(unsigned long charnum); - long getCharNumAtPosition(optional DOMPointInit point = {}); - undefined selectSubString(unsigned long charnum, unsigned long nchars); -}; - -[Exposed=Window] -interface SVGTextPositioningElement : SVGTextContentElement { - [SameObject] readonly attribute SVGAnimatedLengthList x; - [SameObject] readonly attribute SVGAnimatedLengthList y; - [SameObject] readonly attribute SVGAnimatedLengthList dx; - [SameObject] readonly attribute SVGAnimatedLengthList dy; - [SameObject] readonly attribute SVGAnimatedNumberList rotate; -}; - -[Exposed=Window] -interface SVGTextElement : SVGTextPositioningElement { -}; - -[Exposed=Window] -interface SVGTSpanElement : SVGTextPositioningElement { -}; - -[Exposed=Window] -interface SVGTextPathElement : SVGTextContentElement { - - // textPath Method Types - const unsigned short TEXTPATH_METHODTYPE_UNKNOWN = 0; - const unsigned short TEXTPATH_METHODTYPE_ALIGN = 1; - const unsigned short TEXTPATH_METHODTYPE_STRETCH = 2; - - // textPath Spacing Types - const unsigned short TEXTPATH_SPACINGTYPE_UNKNOWN = 0; - const unsigned short TEXTPATH_SPACINGTYPE_AUTO = 1; - const unsigned short TEXTPATH_SPACINGTYPE_EXACT = 2; - - [SameObject] readonly attribute SVGAnimatedLength startOffset; - [SameObject] readonly attribute SVGAnimatedEnumeration method; - [SameObject] readonly attribute SVGAnimatedEnumeration spacing; -}; - -SVGTextPathElement includes SVGURIReference; - -[Exposed=Window] -interface SVGImageElement : SVGGraphicsElement { - [SameObject] readonly attribute SVGAnimatedLength x; - [SameObject] readonly attribute SVGAnimatedLength y; - [SameObject] readonly attribute SVGAnimatedLength width; - [SameObject] readonly attribute SVGAnimatedLength height; - [SameObject] readonly attribute SVGAnimatedPreserveAspectRatio preserveAspectRatio; - attribute DOMString? crossOrigin; -}; - -SVGImageElement includes SVGURIReference; - -[Exposed=Window] -interface SVGForeignObjectElement : SVGGraphicsElement { - [SameObject] readonly attribute SVGAnimatedLength x; - [SameObject] readonly attribute SVGAnimatedLength y; - [SameObject] readonly attribute SVGAnimatedLength width; - [SameObject] readonly attribute SVGAnimatedLength height; -}; - -[Exposed=Window] -interface SVGMarkerElement : SVGElement { - - // Marker Unit Types - const unsigned short SVG_MARKERUNITS_UNKNOWN = 0; - const unsigned short SVG_MARKERUNITS_USERSPACEONUSE = 1; - const unsigned short SVG_MARKERUNITS_STROKEWIDTH = 2; - - // Marker Orientation Types - const unsigned short SVG_MARKER_ORIENT_UNKNOWN = 0; - const unsigned short SVG_MARKER_ORIENT_AUTO = 1; - const unsigned short SVG_MARKER_ORIENT_ANGLE = 2; - - [SameObject] readonly attribute SVGAnimatedLength refX; - [SameObject] readonly attribute SVGAnimatedLength refY; - [SameObject] readonly attribute SVGAnimatedEnumeration markerUnits; - [SameObject] readonly attribute SVGAnimatedLength markerWidth; - [SameObject] readonly attribute SVGAnimatedLength markerHeight; - [SameObject] readonly attribute SVGAnimatedEnumeration orientType; - [SameObject] readonly attribute SVGAnimatedAngle orientAngle; - attribute DOMString orient; - - undefined setOrientToAuto(); - undefined setOrientToAngle(SVGAngle angle); -}; - -SVGMarkerElement includes SVGFitToViewBox; - -[Exposed=Window] -interface SVGGradientElement : SVGElement { - - // Spread Method Types - const unsigned short SVG_SPREADMETHOD_UNKNOWN = 0; - const unsigned short SVG_SPREADMETHOD_PAD = 1; - const unsigned short SVG_SPREADMETHOD_REFLECT = 2; - const unsigned short SVG_SPREADMETHOD_REPEAT = 3; - - [SameObject] readonly attribute SVGAnimatedEnumeration gradientUnits; - [SameObject] readonly attribute SVGAnimatedTransformList gradientTransform; - [SameObject] readonly attribute SVGAnimatedEnumeration spreadMethod; -}; - -SVGGradientElement includes SVGURIReference; - -[Exposed=Window] -interface SVGLinearGradientElement : SVGGradientElement { - [SameObject] readonly attribute SVGAnimatedLength x1; - [SameObject] readonly attribute SVGAnimatedLength y1; - [SameObject] readonly attribute SVGAnimatedLength x2; - [SameObject] readonly attribute SVGAnimatedLength y2; -}; - -[Exposed=Window] -interface SVGRadialGradientElement : SVGGradientElement { - [SameObject] readonly attribute SVGAnimatedLength cx; - [SameObject] readonly attribute SVGAnimatedLength cy; - [SameObject] readonly attribute SVGAnimatedLength r; - [SameObject] readonly attribute SVGAnimatedLength fx; - [SameObject] readonly attribute SVGAnimatedLength fy; - [SameObject] readonly attribute SVGAnimatedLength fr; -}; - -[Exposed=Window] -interface SVGStopElement : SVGElement { - [SameObject] readonly attribute SVGAnimatedNumber offset; -}; - -[Exposed=Window] -interface SVGPatternElement : SVGElement { - [SameObject] readonly attribute SVGAnimatedEnumeration patternUnits; - [SameObject] readonly attribute SVGAnimatedEnumeration patternContentUnits; - [SameObject] readonly attribute SVGAnimatedTransformList patternTransform; - [SameObject] readonly attribute SVGAnimatedLength x; - [SameObject] readonly attribute SVGAnimatedLength y; - [SameObject] readonly attribute SVGAnimatedLength width; - [SameObject] readonly attribute SVGAnimatedLength height; -}; - -SVGPatternElement includes SVGFitToViewBox; -SVGPatternElement includes SVGURIReference; - -[Exposed=Window] -interface SVGScriptElement : SVGElement { - attribute DOMString type; - attribute DOMString? crossOrigin; -}; - -SVGScriptElement includes SVGURIReference; - -[Exposed=Window] -interface SVGAElement : SVGGraphicsElement { - [SameObject] readonly attribute SVGAnimatedString target; - attribute DOMString download; - attribute USVString ping; - attribute DOMString rel; - [SameObject, PutForwards=value] readonly attribute DOMTokenList relList; - attribute DOMString hreflang; - attribute DOMString type; - - attribute DOMString text; - - attribute DOMString referrerPolicy; -}; - -SVGAElement includes SVGURIReference; - -// Inline HTMLHyperlinkElementUtils except href, which conflicts. -partial interface SVGAElement { - readonly attribute USVString origin; - [CEReactions] attribute USVString protocol; - [CEReactions] attribute USVString username; - [CEReactions] attribute USVString password; - [CEReactions] attribute USVString host; - [CEReactions] attribute USVString hostname; - [CEReactions] attribute USVString port; - [CEReactions] attribute USVString pathname; - [CEReactions] attribute USVString search; - [CEReactions] attribute USVString hash; -}; - -[Exposed=Window] -interface SVGViewElement : SVGElement {}; - -SVGViewElement includes SVGFitToViewBox; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Scalable Vector Graphics (SVG) 2 (https://svgwg.org/svg2-draft/) + +[Exposed=Window] +interface SVGElement : Element { + + [SameObject] readonly attribute SVGAnimatedString className; + + readonly attribute SVGSVGElement? ownerSVGElement; + readonly attribute SVGElement? viewportElement; +}; + +SVGElement includes GlobalEventHandlers; +SVGElement includes DocumentAndElementEventHandlers; +SVGElement includes SVGElementInstance; +SVGElement includes HTMLOrSVGElement; + +dictionary SVGBoundingBoxOptions { + boolean fill = true; + boolean stroke = false; + boolean markers = false; + boolean clipped = false; +}; + +[Exposed=Window] +interface SVGGraphicsElement : SVGElement { + [SameObject] readonly attribute SVGAnimatedTransformList transform; + + DOMRect getBBox(optional SVGBoundingBoxOptions options = {}); + DOMMatrix? getCTM(); + DOMMatrix? getScreenCTM(); +}; + +SVGGraphicsElement includes SVGTests; + +[Exposed=Window] +interface SVGGeometryElement : SVGGraphicsElement { + [SameObject] readonly attribute SVGAnimatedNumber pathLength; + + boolean isPointInFill(optional DOMPointInit point = {}); + boolean isPointInStroke(optional DOMPointInit point = {}); + float getTotalLength(); + DOMPoint getPointAtLength(float distance); +}; + +[Exposed=Window] +interface SVGNumber { + attribute float value; +}; + +[Exposed=Window] +interface SVGLength { + + // Length Unit Types + const unsigned short SVG_LENGTHTYPE_UNKNOWN = 0; + const unsigned short SVG_LENGTHTYPE_NUMBER = 1; + const unsigned short SVG_LENGTHTYPE_PERCENTAGE = 2; + const unsigned short SVG_LENGTHTYPE_EMS = 3; + const unsigned short SVG_LENGTHTYPE_EXS = 4; + const unsigned short SVG_LENGTHTYPE_PX = 5; + const unsigned short SVG_LENGTHTYPE_CM = 6; + const unsigned short SVG_LENGTHTYPE_MM = 7; + const unsigned short SVG_LENGTHTYPE_IN = 8; + const unsigned short SVG_LENGTHTYPE_PT = 9; + const unsigned short SVG_LENGTHTYPE_PC = 10; + + readonly attribute unsigned short unitType; + attribute float value; + attribute float valueInSpecifiedUnits; + attribute DOMString valueAsString; + + undefined newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits); + undefined convertToSpecifiedUnits(unsigned short unitType); +}; + +[Exposed=Window] +interface SVGAngle { + + // Angle Unit Types + const unsigned short SVG_ANGLETYPE_UNKNOWN = 0; + const unsigned short SVG_ANGLETYPE_UNSPECIFIED = 1; + const unsigned short SVG_ANGLETYPE_DEG = 2; + const unsigned short SVG_ANGLETYPE_RAD = 3; + const unsigned short SVG_ANGLETYPE_GRAD = 4; + + readonly attribute unsigned short unitType; + attribute float value; + attribute float valueInSpecifiedUnits; + attribute DOMString valueAsString; + + undefined newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits); + undefined convertToSpecifiedUnits(unsigned short unitType); +}; + +[Exposed=Window] +interface SVGNumberList { + + readonly attribute unsigned long length; + readonly attribute unsigned long numberOfItems; + + undefined clear(); + SVGNumber initialize(SVGNumber newItem); + getter SVGNumber getItem(unsigned long index); + SVGNumber insertItemBefore(SVGNumber newItem, unsigned long index); + SVGNumber replaceItem(SVGNumber newItem, unsigned long index); + SVGNumber removeItem(unsigned long index); + SVGNumber appendItem(SVGNumber newItem); + setter undefined (unsigned long index, SVGNumber newItem); +}; + +[Exposed=Window] +interface SVGLengthList { + + readonly attribute unsigned long length; + readonly attribute unsigned long numberOfItems; + + undefined clear(); + SVGLength initialize(SVGLength newItem); + getter SVGLength getItem(unsigned long index); + SVGLength insertItemBefore(SVGLength newItem, unsigned long index); + SVGLength replaceItem(SVGLength newItem, unsigned long index); + SVGLength removeItem(unsigned long index); + SVGLength appendItem(SVGLength newItem); + setter undefined (unsigned long index, SVGLength newItem); +}; + +[Exposed=Window] +interface SVGStringList { + + readonly attribute unsigned long length; + readonly attribute unsigned long numberOfItems; + + undefined clear(); + DOMString initialize(DOMString newItem); + getter DOMString getItem(unsigned long index); + DOMString insertItemBefore(DOMString newItem, unsigned long index); + DOMString replaceItem(DOMString newItem, unsigned long index); + DOMString removeItem(unsigned long index); + DOMString appendItem(DOMString newItem); + setter undefined (unsigned long index, DOMString newItem); +}; + +[Exposed=Window] +interface SVGAnimatedBoolean { + attribute boolean baseVal; + readonly attribute boolean animVal; +}; + +[Exposed=Window] +interface SVGAnimatedEnumeration { + attribute unsigned short baseVal; + readonly attribute unsigned short animVal; +}; + +[Exposed=Window] +interface SVGAnimatedInteger { + attribute long baseVal; + readonly attribute long animVal; +}; + +[Exposed=Window] +interface SVGAnimatedNumber { + attribute float baseVal; + readonly attribute float animVal; +}; + +[Exposed=Window] +interface SVGAnimatedLength { + [SameObject] readonly attribute SVGLength baseVal; + [SameObject] readonly attribute SVGLength animVal; +}; + +[Exposed=Window] +interface SVGAnimatedAngle { + [SameObject] readonly attribute SVGAngle baseVal; + [SameObject] readonly attribute SVGAngle animVal; +}; + +[Exposed=Window] +interface SVGAnimatedString { + attribute DOMString baseVal; + readonly attribute DOMString animVal; +}; + +[Exposed=Window] +interface SVGAnimatedRect { + [SameObject] readonly attribute DOMRect baseVal; + [SameObject] readonly attribute DOMRectReadOnly animVal; +}; + +[Exposed=Window] +interface SVGAnimatedNumberList { + [SameObject] readonly attribute SVGNumberList baseVal; + [SameObject] readonly attribute SVGNumberList animVal; +}; + +[Exposed=Window] +interface SVGAnimatedLengthList { + [SameObject] readonly attribute SVGLengthList baseVal; + [SameObject] readonly attribute SVGLengthList animVal; +}; + +[Exposed=Window] +interface SVGUnitTypes { + // Unit Types + const unsigned short SVG_UNIT_TYPE_UNKNOWN = 0; + const unsigned short SVG_UNIT_TYPE_USERSPACEONUSE = 1; + const unsigned short SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2; +}; + +interface mixin SVGTests { + [SameObject] readonly attribute SVGStringList requiredExtensions; + [SameObject] readonly attribute SVGStringList systemLanguage; +}; + +interface mixin SVGFitToViewBox { + [SameObject] readonly attribute SVGAnimatedRect viewBox; + [SameObject] readonly attribute SVGAnimatedPreserveAspectRatio preserveAspectRatio; +}; + +interface mixin SVGURIReference { + [SameObject] readonly attribute SVGAnimatedString href; +}; + +partial interface Document { + readonly attribute SVGSVGElement? rootElement; +}; + +[Exposed=Window] +interface SVGSVGElement : SVGGraphicsElement { + + [SameObject] readonly attribute SVGAnimatedLength x; + [SameObject] readonly attribute SVGAnimatedLength y; + [SameObject] readonly attribute SVGAnimatedLength width; + [SameObject] readonly attribute SVGAnimatedLength height; + + attribute float currentScale; + [SameObject] readonly attribute DOMPointReadOnly currentTranslate; + + NodeList getIntersectionList(DOMRectReadOnly rect, SVGElement? referenceElement); + NodeList getEnclosureList(DOMRectReadOnly rect, SVGElement? referenceElement); + boolean checkIntersection(SVGElement element, DOMRectReadOnly rect); + boolean checkEnclosure(SVGElement element, DOMRectReadOnly rect); + + undefined deselectAll(); + + SVGNumber createSVGNumber(); + SVGLength createSVGLength(); + SVGAngle createSVGAngle(); + DOMPoint createSVGPoint(); + DOMMatrix createSVGMatrix(); + DOMRect createSVGRect(); + SVGTransform createSVGTransform(); + SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix = {}); + + Element getElementById(DOMString elementId); + + // Deprecated methods that have no effect when called, + // but which are kept for compatibility reasons. + unsigned long suspendRedraw(unsigned long maxWaitMilliseconds); + undefined unsuspendRedraw(unsigned long suspendHandleID); + undefined unsuspendRedrawAll(); + undefined forceRedraw(); +}; + +SVGSVGElement includes SVGFitToViewBox; +SVGSVGElement includes WindowEventHandlers; + +[Exposed=Window] +interface SVGGElement : SVGGraphicsElement { +}; + +[Exposed=Window] +interface SVGDefsElement : SVGGraphicsElement { +}; + +[Exposed=Window] +interface SVGDescElement : SVGElement { +}; + +[Exposed=Window] +interface SVGMetadataElement : SVGElement { +}; + +[Exposed=Window] +interface SVGTitleElement : SVGElement { +}; + +[Exposed=Window] +interface SVGSymbolElement : SVGGraphicsElement { +}; + +SVGSymbolElement includes SVGFitToViewBox; + +[Exposed=Window] +interface SVGUseElement : SVGGraphicsElement { + [SameObject] readonly attribute SVGAnimatedLength x; + [SameObject] readonly attribute SVGAnimatedLength y; + [SameObject] readonly attribute SVGAnimatedLength width; + [SameObject] readonly attribute SVGAnimatedLength height; + [SameObject] readonly attribute SVGElement? instanceRoot; + [SameObject] readonly attribute SVGElement? animatedInstanceRoot; +}; + +SVGUseElement includes SVGURIReference; + +[Exposed=Window] +interface SVGUseElementShadowRoot : ShadowRoot { +}; + +interface mixin SVGElementInstance { + [SameObject] readonly attribute SVGElement? correspondingElement; + [SameObject] readonly attribute SVGUseElement? correspondingUseElement; +}; + +[Exposed=Window] +interface ShadowAnimation : Animation { + constructor(Animation source, (Element or CSSPseudoElement) newTarget); + [SameObject] readonly attribute Animation sourceAnimation; +}; + +[Exposed=Window] +interface SVGSwitchElement : SVGGraphicsElement { +}; + +interface mixin GetSVGDocument { + Document getSVGDocument(); +}; + +[Exposed=Window] +interface SVGStyleElement : SVGElement { + attribute DOMString type; + attribute DOMString media; + attribute DOMString title; +}; + +SVGStyleElement includes LinkStyle; + +[Exposed=Window] +interface SVGTransform { + + // Transform Types + const unsigned short SVG_TRANSFORM_UNKNOWN = 0; + const unsigned short SVG_TRANSFORM_MATRIX = 1; + const unsigned short SVG_TRANSFORM_TRANSLATE = 2; + const unsigned short SVG_TRANSFORM_SCALE = 3; + const unsigned short SVG_TRANSFORM_ROTATE = 4; + const unsigned short SVG_TRANSFORM_SKEWX = 5; + const unsigned short SVG_TRANSFORM_SKEWY = 6; + + readonly attribute unsigned short type; + [SameObject] readonly attribute DOMMatrix matrix; + readonly attribute float angle; + + undefined setMatrix(optional DOMMatrix2DInit matrix = {}); + undefined setTranslate(float tx, float ty); + undefined setScale(float sx, float sy); + undefined setRotate(float angle, float cx, float cy); + undefined setSkewX(float angle); + undefined setSkewY(float angle); +}; + +[Exposed=Window] +interface SVGTransformList { + + readonly attribute unsigned long length; + readonly attribute unsigned long numberOfItems; + + undefined clear(); + SVGTransform initialize(SVGTransform newItem); + getter SVGTransform getItem(unsigned long index); + SVGTransform insertItemBefore(SVGTransform newItem, unsigned long index); + SVGTransform replaceItem(SVGTransform newItem, unsigned long index); + SVGTransform removeItem(unsigned long index); + SVGTransform appendItem(SVGTransform newItem); + setter undefined (unsigned long index, SVGTransform newItem); + + // Additional methods not common to other list interfaces. + SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix = {}); + SVGTransform? consolidate(); +}; + +[Exposed=Window] +interface SVGAnimatedTransformList { + [SameObject] readonly attribute SVGTransformList baseVal; + [SameObject] readonly attribute SVGTransformList animVal; +}; + +[Exposed=Window] +interface SVGPreserveAspectRatio { + + // Alignment Types + const unsigned short SVG_PRESERVEASPECTRATIO_UNKNOWN = 0; + const unsigned short SVG_PRESERVEASPECTRATIO_NONE = 1; + const unsigned short SVG_PRESERVEASPECTRATIO_XMINYMIN = 2; + const unsigned short SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3; + const unsigned short SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4; + const unsigned short SVG_PRESERVEASPECTRATIO_XMINYMID = 5; + const unsigned short SVG_PRESERVEASPECTRATIO_XMIDYMID = 6; + const unsigned short SVG_PRESERVEASPECTRATIO_XMAXYMID = 7; + const unsigned short SVG_PRESERVEASPECTRATIO_XMINYMAX = 8; + const unsigned short SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9; + const unsigned short SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10; + + // Meet-or-slice Types + const unsigned short SVG_MEETORSLICE_UNKNOWN = 0; + const unsigned short SVG_MEETORSLICE_MEET = 1; + const unsigned short SVG_MEETORSLICE_SLICE = 2; + + attribute unsigned short align; + attribute unsigned short meetOrSlice; +}; + +[Exposed=Window] +interface SVGAnimatedPreserveAspectRatio { + [SameObject] readonly attribute SVGPreserveAspectRatio baseVal; + [SameObject] readonly attribute SVGPreserveAspectRatio animVal; +}; + +[Exposed=Window] +interface SVGPathElement : SVGGeometryElement { +}; + +[Exposed=Window] +interface SVGRectElement : SVGGeometryElement { + [SameObject] readonly attribute SVGAnimatedLength x; + [SameObject] readonly attribute SVGAnimatedLength y; + [SameObject] readonly attribute SVGAnimatedLength width; + [SameObject] readonly attribute SVGAnimatedLength height; + [SameObject] readonly attribute SVGAnimatedLength rx; + [SameObject] readonly attribute SVGAnimatedLength ry; +}; + +[Exposed=Window] +interface SVGCircleElement : SVGGeometryElement { + [SameObject] readonly attribute SVGAnimatedLength cx; + [SameObject] readonly attribute SVGAnimatedLength cy; + [SameObject] readonly attribute SVGAnimatedLength r; +}; + +[Exposed=Window] +interface SVGEllipseElement : SVGGeometryElement { + [SameObject] readonly attribute SVGAnimatedLength cx; + [SameObject] readonly attribute SVGAnimatedLength cy; + [SameObject] readonly attribute SVGAnimatedLength rx; + [SameObject] readonly attribute SVGAnimatedLength ry; +}; + +[Exposed=Window] +interface SVGLineElement : SVGGeometryElement { + [SameObject] readonly attribute SVGAnimatedLength x1; + [SameObject] readonly attribute SVGAnimatedLength y1; + [SameObject] readonly attribute SVGAnimatedLength x2; + [SameObject] readonly attribute SVGAnimatedLength y2; +}; + +interface mixin SVGAnimatedPoints { + [SameObject] readonly attribute SVGPointList points; + [SameObject] readonly attribute SVGPointList animatedPoints; +}; + +[Exposed=Window] +interface SVGPointList { + + readonly attribute unsigned long length; + readonly attribute unsigned long numberOfItems; + + undefined clear(); + DOMPoint initialize(DOMPoint newItem); + getter DOMPoint getItem(unsigned long index); + DOMPoint insertItemBefore(DOMPoint newItem, unsigned long index); + DOMPoint replaceItem(DOMPoint newItem, unsigned long index); + DOMPoint removeItem(unsigned long index); + DOMPoint appendItem(DOMPoint newItem); + setter undefined (unsigned long index, DOMPoint newItem); +}; + +[Exposed=Window] +interface SVGPolylineElement : SVGGeometryElement { +}; + +SVGPolylineElement includes SVGAnimatedPoints; + +[Exposed=Window] +interface SVGPolygonElement : SVGGeometryElement { +}; + +SVGPolygonElement includes SVGAnimatedPoints; + +[Exposed=Window] +interface SVGTextContentElement : SVGGraphicsElement { + + // lengthAdjust Types + const unsigned short LENGTHADJUST_UNKNOWN = 0; + const unsigned short LENGTHADJUST_SPACING = 1; + const unsigned short LENGTHADJUST_SPACINGANDGLYPHS = 2; + + [SameObject] readonly attribute SVGAnimatedLength textLength; + [SameObject] readonly attribute SVGAnimatedEnumeration lengthAdjust; + + long getNumberOfChars(); + float getComputedTextLength(); + float getSubStringLength(unsigned long charnum, unsigned long nchars); + DOMPoint getStartPositionOfChar(unsigned long charnum); + DOMPoint getEndPositionOfChar(unsigned long charnum); + DOMRect getExtentOfChar(unsigned long charnum); + float getRotationOfChar(unsigned long charnum); + long getCharNumAtPosition(optional DOMPointInit point = {}); + undefined selectSubString(unsigned long charnum, unsigned long nchars); +}; + +[Exposed=Window] +interface SVGTextPositioningElement : SVGTextContentElement { + [SameObject] readonly attribute SVGAnimatedLengthList x; + [SameObject] readonly attribute SVGAnimatedLengthList y; + [SameObject] readonly attribute SVGAnimatedLengthList dx; + [SameObject] readonly attribute SVGAnimatedLengthList dy; + [SameObject] readonly attribute SVGAnimatedNumberList rotate; +}; + +[Exposed=Window] +interface SVGTextElement : SVGTextPositioningElement { +}; + +[Exposed=Window] +interface SVGTSpanElement : SVGTextPositioningElement { +}; + +[Exposed=Window] +interface SVGTextPathElement : SVGTextContentElement { + + // textPath Method Types + const unsigned short TEXTPATH_METHODTYPE_UNKNOWN = 0; + const unsigned short TEXTPATH_METHODTYPE_ALIGN = 1; + const unsigned short TEXTPATH_METHODTYPE_STRETCH = 2; + + // textPath Spacing Types + const unsigned short TEXTPATH_SPACINGTYPE_UNKNOWN = 0; + const unsigned short TEXTPATH_SPACINGTYPE_AUTO = 1; + const unsigned short TEXTPATH_SPACINGTYPE_EXACT = 2; + + [SameObject] readonly attribute SVGAnimatedLength startOffset; + [SameObject] readonly attribute SVGAnimatedEnumeration method; + [SameObject] readonly attribute SVGAnimatedEnumeration spacing; +}; + +SVGTextPathElement includes SVGURIReference; + +[Exposed=Window] +interface SVGImageElement : SVGGraphicsElement { + [SameObject] readonly attribute SVGAnimatedLength x; + [SameObject] readonly attribute SVGAnimatedLength y; + [SameObject] readonly attribute SVGAnimatedLength width; + [SameObject] readonly attribute SVGAnimatedLength height; + [SameObject] readonly attribute SVGAnimatedPreserveAspectRatio preserveAspectRatio; + attribute DOMString? crossOrigin; +}; + +SVGImageElement includes SVGURIReference; + +[Exposed=Window] +interface SVGForeignObjectElement : SVGGraphicsElement { + [SameObject] readonly attribute SVGAnimatedLength x; + [SameObject] readonly attribute SVGAnimatedLength y; + [SameObject] readonly attribute SVGAnimatedLength width; + [SameObject] readonly attribute SVGAnimatedLength height; +}; + +[Exposed=Window] +interface SVGMarkerElement : SVGElement { + + // Marker Unit Types + const unsigned short SVG_MARKERUNITS_UNKNOWN = 0; + const unsigned short SVG_MARKERUNITS_USERSPACEONUSE = 1; + const unsigned short SVG_MARKERUNITS_STROKEWIDTH = 2; + + // Marker Orientation Types + const unsigned short SVG_MARKER_ORIENT_UNKNOWN = 0; + const unsigned short SVG_MARKER_ORIENT_AUTO = 1; + const unsigned short SVG_MARKER_ORIENT_ANGLE = 2; + + [SameObject] readonly attribute SVGAnimatedLength refX; + [SameObject] readonly attribute SVGAnimatedLength refY; + [SameObject] readonly attribute SVGAnimatedEnumeration markerUnits; + [SameObject] readonly attribute SVGAnimatedLength markerWidth; + [SameObject] readonly attribute SVGAnimatedLength markerHeight; + [SameObject] readonly attribute SVGAnimatedEnumeration orientType; + [SameObject] readonly attribute SVGAnimatedAngle orientAngle; + attribute DOMString orient; + + undefined setOrientToAuto(); + undefined setOrientToAngle(SVGAngle angle); +}; + +SVGMarkerElement includes SVGFitToViewBox; + +[Exposed=Window] +interface SVGGradientElement : SVGElement { + + // Spread Method Types + const unsigned short SVG_SPREADMETHOD_UNKNOWN = 0; + const unsigned short SVG_SPREADMETHOD_PAD = 1; + const unsigned short SVG_SPREADMETHOD_REFLECT = 2; + const unsigned short SVG_SPREADMETHOD_REPEAT = 3; + + [SameObject] readonly attribute SVGAnimatedEnumeration gradientUnits; + [SameObject] readonly attribute SVGAnimatedTransformList gradientTransform; + [SameObject] readonly attribute SVGAnimatedEnumeration spreadMethod; +}; + +SVGGradientElement includes SVGURIReference; + +[Exposed=Window] +interface SVGLinearGradientElement : SVGGradientElement { + [SameObject] readonly attribute SVGAnimatedLength x1; + [SameObject] readonly attribute SVGAnimatedLength y1; + [SameObject] readonly attribute SVGAnimatedLength x2; + [SameObject] readonly attribute SVGAnimatedLength y2; +}; + +[Exposed=Window] +interface SVGRadialGradientElement : SVGGradientElement { + [SameObject] readonly attribute SVGAnimatedLength cx; + [SameObject] readonly attribute SVGAnimatedLength cy; + [SameObject] readonly attribute SVGAnimatedLength r; + [SameObject] readonly attribute SVGAnimatedLength fx; + [SameObject] readonly attribute SVGAnimatedLength fy; + [SameObject] readonly attribute SVGAnimatedLength fr; +}; + +[Exposed=Window] +interface SVGStopElement : SVGElement { + [SameObject] readonly attribute SVGAnimatedNumber offset; +}; + +[Exposed=Window] +interface SVGPatternElement : SVGElement { + [SameObject] readonly attribute SVGAnimatedEnumeration patternUnits; + [SameObject] readonly attribute SVGAnimatedEnumeration patternContentUnits; + [SameObject] readonly attribute SVGAnimatedTransformList patternTransform; + [SameObject] readonly attribute SVGAnimatedLength x; + [SameObject] readonly attribute SVGAnimatedLength y; + [SameObject] readonly attribute SVGAnimatedLength width; + [SameObject] readonly attribute SVGAnimatedLength height; +}; + +SVGPatternElement includes SVGFitToViewBox; +SVGPatternElement includes SVGURIReference; + +[Exposed=Window] +interface SVGScriptElement : SVGElement { + attribute DOMString type; + attribute DOMString? crossOrigin; +}; + +SVGScriptElement includes SVGURIReference; + +[Exposed=Window] +interface SVGAElement : SVGGraphicsElement { + [SameObject] readonly attribute SVGAnimatedString target; + attribute DOMString download; + attribute USVString ping; + attribute DOMString rel; + [SameObject, PutForwards=value] readonly attribute DOMTokenList relList; + attribute DOMString hreflang; + attribute DOMString type; + + attribute DOMString text; + + attribute DOMString referrerPolicy; +}; + +SVGAElement includes SVGURIReference; + +// Inline HTMLHyperlinkElementUtils except href, which conflicts. +partial interface SVGAElement { + readonly attribute USVString origin; + [CEReactions] attribute USVString protocol; + [CEReactions] attribute USVString username; + [CEReactions] attribute USVString password; + [CEReactions] attribute USVString host; + [CEReactions] attribute USVString hostname; + [CEReactions] attribute USVString port; + [CEReactions] attribute USVString pathname; + [CEReactions] attribute USVString search; + [CEReactions] attribute USVString hash; +}; + +[Exposed=Window] +interface SVGViewElement : SVGElement {}; + +SVGViewElement includes SVGFitToViewBox; + + +//////////////////////////////////////////////////////////////////////////////// +// SVG 1.1 interfaces that do not exist in SVG 2 and that are still implemented. +// +// Note this is best effort at defining these interfaces with current Web IDL, +// as the actual definitions in SVG 1.1 use outdated (and invalid) IDL. +//////////////////////////////////////////////////////////////////////////////// +[Exposed=Window] +interface SVGAltGlyphElement : SVGTextPositioningElement { + attribute DOMString glyphRef; + attribute DOMString format; +}; +SVGAltGlyphElement includes SVGURIReference; + +[Exposed=Window] +interface SVGGlyphRefElement : SVGElement { + attribute DOMString glyphRef; + attribute DOMString format; + attribute float x; + attribute float y; + attribute float dx; + attribute float dy; +}; +SVGGlyphRefElement includes SVGURIReference; + +[Exposed=Window] +interface SVGCursorElement : SVGElement { + readonly attribute SVGAnimatedLength x; + readonly attribute SVGAnimatedLength y; +}; +SVGCursorElement includes SVGURIReference; +SVGCursorElement includes SVGTests; + +[Exposed=Window] +interface SVGFontElement : SVGElement {}; diff --git a/interfaces/WEBGL_blend_equation_advanced_coherent.idl b/interfaces/WEBGL_blend_equation_advanced_coherent.idl index 647a6f844cbf5dc..3245295e4b25f3e 100644 --- a/interfaces/WEBGL_blend_equation_advanced_coherent.idl +++ b/interfaces/WEBGL_blend_equation_advanced_coherent.idl @@ -1,23 +1,23 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL WEBGL_blend_equation_advanced_coherent Extension Draft Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_blend_equation_advanced_coherent/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface WEBGL_blend_equation_advanced_coherent { - const GLenum MULTIPLY = 0x9294; - const GLenum SCREEN = 0x9295; - const GLenum OVERLAY = 0x9296; - const GLenum DARKEN = 0x9297; - const GLenum LIGHTEN = 0x9298; - const GLenum COLORDODGE = 0x9299; - const GLenum COLORBURN = 0x929A; - const GLenum HARDLIGHT = 0x929B; - const GLenum SOFTLIGHT = 0x929C; - const GLenum DIFFERENCE = 0x929E; - const GLenum EXCLUSION = 0x92A0; - const GLenum HSL_HUE = 0x92AD; - const GLenum HSL_SATURATION = 0x92AE; - const GLenum HSL_COLOR = 0x92AF; - const GLenum HSL_LUMINOSITY = 0x92B0; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL WEBGL_blend_equation_advanced_coherent Extension Draft Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_blend_equation_advanced_coherent/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface WEBGL_blend_equation_advanced_coherent { + const GLenum MULTIPLY = 0x9294; + const GLenum SCREEN = 0x9295; + const GLenum OVERLAY = 0x9296; + const GLenum DARKEN = 0x9297; + const GLenum LIGHTEN = 0x9298; + const GLenum COLORDODGE = 0x9299; + const GLenum COLORBURN = 0x929A; + const GLenum HARDLIGHT = 0x929B; + const GLenum SOFTLIGHT = 0x929C; + const GLenum DIFFERENCE = 0x929E; + const GLenum EXCLUSION = 0x92A0; + const GLenum HSL_HUE = 0x92AD; + const GLenum HSL_SATURATION = 0x92AE; + const GLenum HSL_COLOR = 0x92AF; + const GLenum HSL_LUMINOSITY = 0x92B0; +}; diff --git a/interfaces/WEBGL_color_buffer_float.idl b/interfaces/WEBGL_color_buffer_float.idl index ac66261d35f8bde..56708c2768a0080 100644 --- a/interfaces/WEBGL_color_buffer_float.idl +++ b/interfaces/WEBGL_color_buffer_float.idl @@ -1,11 +1,11 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL WEBGL_color_buffer_float Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_color_buffer_float/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface WEBGL_color_buffer_float { - const GLenum RGBA32F_EXT = 0x8814; - const GLenum FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT = 0x8211; - const GLenum UNSIGNED_NORMALIZED_EXT = 0x8C17; -}; // interface WEBGL_color_buffer_float +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL WEBGL_color_buffer_float Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_color_buffer_float/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface WEBGL_color_buffer_float { + const GLenum RGBA32F_EXT = 0x8814; + const GLenum FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT = 0x8211; + const GLenum UNSIGNED_NORMALIZED_EXT = 0x8C17; +}; // interface WEBGL_color_buffer_float diff --git a/interfaces/WEBGL_compressed_texture_astc.idl b/interfaces/WEBGL_compressed_texture_astc.idl index 968e508474a05cd..b45097cff7d4df3 100644 --- a/interfaces/WEBGL_compressed_texture_astc.idl +++ b/interfaces/WEBGL_compressed_texture_astc.idl @@ -1,41 +1,41 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL WEBGL_compressed_texture_astc Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_astc/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface WEBGL_compressed_texture_astc { - /* Compressed Texture Format */ - const GLenum COMPRESSED_RGBA_ASTC_4x4_KHR = 0x93B0; - const GLenum COMPRESSED_RGBA_ASTC_5x4_KHR = 0x93B1; - const GLenum COMPRESSED_RGBA_ASTC_5x5_KHR = 0x93B2; - const GLenum COMPRESSED_RGBA_ASTC_6x5_KHR = 0x93B3; - const GLenum COMPRESSED_RGBA_ASTC_6x6_KHR = 0x93B4; - const GLenum COMPRESSED_RGBA_ASTC_8x5_KHR = 0x93B5; - const GLenum COMPRESSED_RGBA_ASTC_8x6_KHR = 0x93B6; - const GLenum COMPRESSED_RGBA_ASTC_8x8_KHR = 0x93B7; - const GLenum COMPRESSED_RGBA_ASTC_10x5_KHR = 0x93B8; - const GLenum COMPRESSED_RGBA_ASTC_10x6_KHR = 0x93B9; - const GLenum COMPRESSED_RGBA_ASTC_10x8_KHR = 0x93BA; - const GLenum COMPRESSED_RGBA_ASTC_10x10_KHR = 0x93BB; - const GLenum COMPRESSED_RGBA_ASTC_12x10_KHR = 0x93BC; - const GLenum COMPRESSED_RGBA_ASTC_12x12_KHR = 0x93BD; - - const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR = 0x93D0; - const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR = 0x93D1; - const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR = 0x93D2; - const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR = 0x93D3; - const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR = 0x93D4; - const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR = 0x93D5; - const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR = 0x93D6; - const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR = 0x93D7; - const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR = 0x93D8; - const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR = 0x93D9; - const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR = 0x93DA; - const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR = 0x93DB; - const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR = 0x93DC; - const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR = 0x93DD; - - // Profile query support. - sequence getSupportedProfiles(); -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL WEBGL_compressed_texture_astc Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_astc/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface WEBGL_compressed_texture_astc { + /* Compressed Texture Format */ + const GLenum COMPRESSED_RGBA_ASTC_4x4_KHR = 0x93B0; + const GLenum COMPRESSED_RGBA_ASTC_5x4_KHR = 0x93B1; + const GLenum COMPRESSED_RGBA_ASTC_5x5_KHR = 0x93B2; + const GLenum COMPRESSED_RGBA_ASTC_6x5_KHR = 0x93B3; + const GLenum COMPRESSED_RGBA_ASTC_6x6_KHR = 0x93B4; + const GLenum COMPRESSED_RGBA_ASTC_8x5_KHR = 0x93B5; + const GLenum COMPRESSED_RGBA_ASTC_8x6_KHR = 0x93B6; + const GLenum COMPRESSED_RGBA_ASTC_8x8_KHR = 0x93B7; + const GLenum COMPRESSED_RGBA_ASTC_10x5_KHR = 0x93B8; + const GLenum COMPRESSED_RGBA_ASTC_10x6_KHR = 0x93B9; + const GLenum COMPRESSED_RGBA_ASTC_10x8_KHR = 0x93BA; + const GLenum COMPRESSED_RGBA_ASTC_10x10_KHR = 0x93BB; + const GLenum COMPRESSED_RGBA_ASTC_12x10_KHR = 0x93BC; + const GLenum COMPRESSED_RGBA_ASTC_12x12_KHR = 0x93BD; + + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR = 0x93D0; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR = 0x93D1; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR = 0x93D2; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR = 0x93D3; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR = 0x93D4; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR = 0x93D5; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR = 0x93D6; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR = 0x93D7; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR = 0x93D8; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR = 0x93D9; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR = 0x93DA; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR = 0x93DB; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR = 0x93DC; + const GLenum COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR = 0x93DD; + + // Profile query support. + sequence getSupportedProfiles(); +}; diff --git a/interfaces/WEBGL_compressed_texture_etc.idl b/interfaces/WEBGL_compressed_texture_etc.idl index 45b7229494246b9..d06fe94b0d7adcb 100644 --- a/interfaces/WEBGL_compressed_texture_etc.idl +++ b/interfaces/WEBGL_compressed_texture_etc.idl @@ -1,19 +1,19 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL WEBGL_compressed_texture_etc Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_etc/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface WEBGL_compressed_texture_etc { - /* Compressed Texture Formats */ - const GLenum COMPRESSED_R11_EAC = 0x9270; - const GLenum COMPRESSED_SIGNED_R11_EAC = 0x9271; - const GLenum COMPRESSED_RG11_EAC = 0x9272; - const GLenum COMPRESSED_SIGNED_RG11_EAC = 0x9273; - const GLenum COMPRESSED_RGB8_ETC2 = 0x9274; - const GLenum COMPRESSED_SRGB8_ETC2 = 0x9275; - const GLenum COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9276; - const GLenum COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9277; - const GLenum COMPRESSED_RGBA8_ETC2_EAC = 0x9278; - const GLenum COMPRESSED_SRGB8_ALPHA8_ETC2_EAC = 0x9279; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL WEBGL_compressed_texture_etc Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_etc/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface WEBGL_compressed_texture_etc { + /* Compressed Texture Formats */ + const GLenum COMPRESSED_R11_EAC = 0x9270; + const GLenum COMPRESSED_SIGNED_R11_EAC = 0x9271; + const GLenum COMPRESSED_RG11_EAC = 0x9272; + const GLenum COMPRESSED_SIGNED_RG11_EAC = 0x9273; + const GLenum COMPRESSED_RGB8_ETC2 = 0x9274; + const GLenum COMPRESSED_SRGB8_ETC2 = 0x9275; + const GLenum COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9276; + const GLenum COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9277; + const GLenum COMPRESSED_RGBA8_ETC2_EAC = 0x9278; + const GLenum COMPRESSED_SRGB8_ALPHA8_ETC2_EAC = 0x9279; +}; diff --git a/interfaces/WEBGL_compressed_texture_etc1.idl b/interfaces/WEBGL_compressed_texture_etc1.idl index bd2c5293ce7a05a..feb38ae0d774de0 100644 --- a/interfaces/WEBGL_compressed_texture_etc1.idl +++ b/interfaces/WEBGL_compressed_texture_etc1.idl @@ -1,10 +1,10 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL WEBGL_compressed_texture_etc1 Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_etc1/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface WEBGL_compressed_texture_etc1 { - /* Compressed Texture Format */ - const GLenum COMPRESSED_RGB_ETC1_WEBGL = 0x8D64; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL WEBGL_compressed_texture_etc1 Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_etc1/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface WEBGL_compressed_texture_etc1 { + /* Compressed Texture Format */ + const GLenum COMPRESSED_RGB_ETC1_WEBGL = 0x8D64; +}; diff --git a/interfaces/WEBGL_compressed_texture_pvrtc.idl b/interfaces/WEBGL_compressed_texture_pvrtc.idl index 7803c2986e43e7f..5af0406fd4f053f 100644 --- a/interfaces/WEBGL_compressed_texture_pvrtc.idl +++ b/interfaces/WEBGL_compressed_texture_pvrtc.idl @@ -1,13 +1,13 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL WEBGL_compressed_texture_pvrtc Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_pvrtc/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface WEBGL_compressed_texture_pvrtc { - /* Compressed Texture Formats */ - const GLenum COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00; - const GLenum COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8C01; - const GLenum COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02; - const GLenum COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL WEBGL_compressed_texture_pvrtc Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_pvrtc/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface WEBGL_compressed_texture_pvrtc { + /* Compressed Texture Formats */ + const GLenum COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00; + const GLenum COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8C01; + const GLenum COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02; + const GLenum COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03; +}; diff --git a/interfaces/WEBGL_compressed_texture_s3tc.idl b/interfaces/WEBGL_compressed_texture_s3tc.idl index 5aa9b42fb4b8a47..ddd07aaf2018a90 100644 --- a/interfaces/WEBGL_compressed_texture_s3tc.idl +++ b/interfaces/WEBGL_compressed_texture_s3tc.idl @@ -1,13 +1,13 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL WEBGL_compressed_texture_s3tc Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3tc/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface WEBGL_compressed_texture_s3tc { - /* Compressed Texture Formats */ - const GLenum COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; - const GLenum COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; - const GLenum COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; - const GLenum COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL WEBGL_compressed_texture_s3tc Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3tc/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface WEBGL_compressed_texture_s3tc { + /* Compressed Texture Formats */ + const GLenum COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; + const GLenum COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; + const GLenum COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; + const GLenum COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; +}; diff --git a/interfaces/WEBGL_compressed_texture_s3tc_srgb.idl b/interfaces/WEBGL_compressed_texture_s3tc_srgb.idl index a6fcd24c717db6c..6f405cd6d89b1fd 100644 --- a/interfaces/WEBGL_compressed_texture_s3tc_srgb.idl +++ b/interfaces/WEBGL_compressed_texture_s3tc_srgb.idl @@ -1,13 +1,13 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL WEBGL_compressed_texture_s3tc_srgb Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3tc_srgb/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface WEBGL_compressed_texture_s3tc_srgb { - /* Compressed Texture Formats */ - const GLenum COMPRESSED_SRGB_S3TC_DXT1_EXT = 0x8C4C; - const GLenum COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT = 0x8C4D; - const GLenum COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT = 0x8C4E; - const GLenum COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT = 0x8C4F; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL WEBGL_compressed_texture_s3tc_srgb Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3tc_srgb/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface WEBGL_compressed_texture_s3tc_srgb { + /* Compressed Texture Formats */ + const GLenum COMPRESSED_SRGB_S3TC_DXT1_EXT = 0x8C4C; + const GLenum COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT = 0x8C4D; + const GLenum COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT = 0x8C4E; + const GLenum COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT = 0x8C4F; +}; diff --git a/interfaces/WEBGL_debug_renderer_info.idl b/interfaces/WEBGL_debug_renderer_info.idl index 5fd1a127ac63d52..fc33bf50d389a28 100644 --- a/interfaces/WEBGL_debug_renderer_info.idl +++ b/interfaces/WEBGL_debug_renderer_info.idl @@ -1,12 +1,12 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL WEBGL_debug_renderer_info Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_debug_renderer_info/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface WEBGL_debug_renderer_info { - - const GLenum UNMASKED_VENDOR_WEBGL = 0x9245; - const GLenum UNMASKED_RENDERER_WEBGL = 0x9246; - -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL WEBGL_debug_renderer_info Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_debug_renderer_info/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface WEBGL_debug_renderer_info { + + const GLenum UNMASKED_VENDOR_WEBGL = 0x9245; + const GLenum UNMASKED_RENDERER_WEBGL = 0x9246; + +}; diff --git a/interfaces/WEBGL_debug_shaders.idl b/interfaces/WEBGL_debug_shaders.idl index 1f50c3ec9ab0d99..a4a985f2792124d 100644 --- a/interfaces/WEBGL_debug_shaders.idl +++ b/interfaces/WEBGL_debug_shaders.idl @@ -1,11 +1,11 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL WEBGL_debug_shaders Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_debug_shaders/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface WEBGL_debug_shaders { - - DOMString getTranslatedShaderSource(WebGLShader shader); - -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL WEBGL_debug_shaders Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_debug_shaders/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface WEBGL_debug_shaders { + + DOMString getTranslatedShaderSource(WebGLShader shader); + +}; diff --git a/interfaces/WEBGL_depth_texture.idl b/interfaces/WEBGL_depth_texture.idl index 5502b9d51c2d771..c4319842508e318 100644 --- a/interfaces/WEBGL_depth_texture.idl +++ b/interfaces/WEBGL_depth_texture.idl @@ -1,9 +1,9 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL WEBGL_depth_texture Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface WEBGL_depth_texture { - const GLenum UNSIGNED_INT_24_8_WEBGL = 0x84FA; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL WEBGL_depth_texture Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface WEBGL_depth_texture { + const GLenum UNSIGNED_INT_24_8_WEBGL = 0x84FA; +}; diff --git a/interfaces/WEBGL_draw_buffers.idl b/interfaces/WEBGL_draw_buffers.idl index c9ca092c3c7bf58..734984fb3bd59b2 100644 --- a/interfaces/WEBGL_draw_buffers.idl +++ b/interfaces/WEBGL_draw_buffers.idl @@ -1,46 +1,46 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL WEBGL_draw_buffers Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_draw_buffers/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface WEBGL_draw_buffers { - const GLenum COLOR_ATTACHMENT0_WEBGL = 0x8CE0; - const GLenum COLOR_ATTACHMENT1_WEBGL = 0x8CE1; - const GLenum COLOR_ATTACHMENT2_WEBGL = 0x8CE2; - const GLenum COLOR_ATTACHMENT3_WEBGL = 0x8CE3; - const GLenum COLOR_ATTACHMENT4_WEBGL = 0x8CE4; - const GLenum COLOR_ATTACHMENT5_WEBGL = 0x8CE5; - const GLenum COLOR_ATTACHMENT6_WEBGL = 0x8CE6; - const GLenum COLOR_ATTACHMENT7_WEBGL = 0x8CE7; - const GLenum COLOR_ATTACHMENT8_WEBGL = 0x8CE8; - const GLenum COLOR_ATTACHMENT9_WEBGL = 0x8CE9; - const GLenum COLOR_ATTACHMENT10_WEBGL = 0x8CEA; - const GLenum COLOR_ATTACHMENT11_WEBGL = 0x8CEB; - const GLenum COLOR_ATTACHMENT12_WEBGL = 0x8CEC; - const GLenum COLOR_ATTACHMENT13_WEBGL = 0x8CED; - const GLenum COLOR_ATTACHMENT14_WEBGL = 0x8CEE; - const GLenum COLOR_ATTACHMENT15_WEBGL = 0x8CEF; - - const GLenum DRAW_BUFFER0_WEBGL = 0x8825; - const GLenum DRAW_BUFFER1_WEBGL = 0x8826; - const GLenum DRAW_BUFFER2_WEBGL = 0x8827; - const GLenum DRAW_BUFFER3_WEBGL = 0x8828; - const GLenum DRAW_BUFFER4_WEBGL = 0x8829; - const GLenum DRAW_BUFFER5_WEBGL = 0x882A; - const GLenum DRAW_BUFFER6_WEBGL = 0x882B; - const GLenum DRAW_BUFFER7_WEBGL = 0x882C; - const GLenum DRAW_BUFFER8_WEBGL = 0x882D; - const GLenum DRAW_BUFFER9_WEBGL = 0x882E; - const GLenum DRAW_BUFFER10_WEBGL = 0x882F; - const GLenum DRAW_BUFFER11_WEBGL = 0x8830; - const GLenum DRAW_BUFFER12_WEBGL = 0x8831; - const GLenum DRAW_BUFFER13_WEBGL = 0x8832; - const GLenum DRAW_BUFFER14_WEBGL = 0x8833; - const GLenum DRAW_BUFFER15_WEBGL = 0x8834; - - const GLenum MAX_COLOR_ATTACHMENTS_WEBGL = 0x8CDF; - const GLenum MAX_DRAW_BUFFERS_WEBGL = 0x8824; - - undefined drawBuffersWEBGL(sequence buffers); -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL WEBGL_draw_buffers Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_draw_buffers/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface WEBGL_draw_buffers { + const GLenum COLOR_ATTACHMENT0_WEBGL = 0x8CE0; + const GLenum COLOR_ATTACHMENT1_WEBGL = 0x8CE1; + const GLenum COLOR_ATTACHMENT2_WEBGL = 0x8CE2; + const GLenum COLOR_ATTACHMENT3_WEBGL = 0x8CE3; + const GLenum COLOR_ATTACHMENT4_WEBGL = 0x8CE4; + const GLenum COLOR_ATTACHMENT5_WEBGL = 0x8CE5; + const GLenum COLOR_ATTACHMENT6_WEBGL = 0x8CE6; + const GLenum COLOR_ATTACHMENT7_WEBGL = 0x8CE7; + const GLenum COLOR_ATTACHMENT8_WEBGL = 0x8CE8; + const GLenum COLOR_ATTACHMENT9_WEBGL = 0x8CE9; + const GLenum COLOR_ATTACHMENT10_WEBGL = 0x8CEA; + const GLenum COLOR_ATTACHMENT11_WEBGL = 0x8CEB; + const GLenum COLOR_ATTACHMENT12_WEBGL = 0x8CEC; + const GLenum COLOR_ATTACHMENT13_WEBGL = 0x8CED; + const GLenum COLOR_ATTACHMENT14_WEBGL = 0x8CEE; + const GLenum COLOR_ATTACHMENT15_WEBGL = 0x8CEF; + + const GLenum DRAW_BUFFER0_WEBGL = 0x8825; + const GLenum DRAW_BUFFER1_WEBGL = 0x8826; + const GLenum DRAW_BUFFER2_WEBGL = 0x8827; + const GLenum DRAW_BUFFER3_WEBGL = 0x8828; + const GLenum DRAW_BUFFER4_WEBGL = 0x8829; + const GLenum DRAW_BUFFER5_WEBGL = 0x882A; + const GLenum DRAW_BUFFER6_WEBGL = 0x882B; + const GLenum DRAW_BUFFER7_WEBGL = 0x882C; + const GLenum DRAW_BUFFER8_WEBGL = 0x882D; + const GLenum DRAW_BUFFER9_WEBGL = 0x882E; + const GLenum DRAW_BUFFER10_WEBGL = 0x882F; + const GLenum DRAW_BUFFER11_WEBGL = 0x8830; + const GLenum DRAW_BUFFER12_WEBGL = 0x8831; + const GLenum DRAW_BUFFER13_WEBGL = 0x8832; + const GLenum DRAW_BUFFER14_WEBGL = 0x8833; + const GLenum DRAW_BUFFER15_WEBGL = 0x8834; + + const GLenum MAX_COLOR_ATTACHMENTS_WEBGL = 0x8CDF; + const GLenum MAX_DRAW_BUFFERS_WEBGL = 0x8824; + + undefined drawBuffersWEBGL(sequence buffers); +}; diff --git a/interfaces/WEBGL_draw_instanced_base_vertex_base_instance.idl b/interfaces/WEBGL_draw_instanced_base_vertex_base_instance.idl index 028a32042928eb9..2e296b08e851693 100644 --- a/interfaces/WEBGL_draw_instanced_base_vertex_base_instance.idl +++ b/interfaces/WEBGL_draw_instanced_base_vertex_base_instance.idl @@ -1,14 +1,14 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL WEBGL_draw_instanced_base_vertex_base_instance Extension Draft Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_draw_instanced_base_vertex_base_instance/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface WEBGL_draw_instanced_base_vertex_base_instance { - undefined drawArraysInstancedBaseInstanceWEBGL( - GLenum mode, GLint first, GLsizei count, - GLsizei instanceCount, GLuint baseInstance); - undefined drawElementsInstancedBaseVertexBaseInstanceWEBGL( - GLenum mode, GLsizei count, GLenum type, GLintptr offset, - GLsizei instanceCount, GLint baseVertex, GLuint baseInstance); -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL WEBGL_draw_instanced_base_vertex_base_instance Extension Draft Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_draw_instanced_base_vertex_base_instance/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface WEBGL_draw_instanced_base_vertex_base_instance { + undefined drawArraysInstancedBaseInstanceWEBGL( + GLenum mode, GLint first, GLsizei count, + GLsizei instanceCount, GLuint baseInstance); + undefined drawElementsInstancedBaseVertexBaseInstanceWEBGL( + GLenum mode, GLsizei count, GLenum type, GLintptr offset, + GLsizei instanceCount, GLint baseVertex, GLuint baseInstance); +}; diff --git a/interfaces/WEBGL_lose_context.idl b/interfaces/WEBGL_lose_context.idl index b4ced345a0677f0..e77083da60d8303 100644 --- a/interfaces/WEBGL_lose_context.idl +++ b/interfaces/WEBGL_lose_context.idl @@ -1,10 +1,10 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL WEBGL_lose_context Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface WEBGL_lose_context { - undefined loseContext(); - undefined restoreContext(); -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL WEBGL_lose_context Khronos Ratified Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface WEBGL_lose_context { + undefined loseContext(); + undefined restoreContext(); +}; diff --git a/interfaces/WEBGL_multi_draw.idl b/interfaces/WEBGL_multi_draw.idl index d5ab6cf4f460666..008dca3540f236b 100644 --- a/interfaces/WEBGL_multi_draw.idl +++ b/interfaces/WEBGL_multi_draw.idl @@ -1,32 +1,32 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL WEBGL_multi_draw Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_multi_draw/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface WEBGL_multi_draw { - undefined multiDrawArraysWEBGL( - GLenum mode, - ([AllowShared] Int32Array or sequence) firstsList, GLuint firstsOffset, - ([AllowShared] Int32Array or sequence) countsList, GLuint countsOffset, - GLsizei drawcount); - undefined multiDrawElementsWEBGL( - GLenum mode, - ([AllowShared] Int32Array or sequence) countsList, GLuint countsOffset, - GLenum type, - ([AllowShared] Int32Array or sequence) offsetsList, GLuint offsetsOffset, - GLsizei drawcount); - undefined multiDrawArraysInstancedWEBGL( - GLenum mode, - ([AllowShared] Int32Array or sequence) firstsList, GLuint firstsOffset, - ([AllowShared] Int32Array or sequence) countsList, GLuint countsOffset, - ([AllowShared] Int32Array or sequence) instanceCountsList, GLuint instanceCountsOffset, - GLsizei drawcount); - undefined multiDrawElementsInstancedWEBGL( - GLenum mode, - ([AllowShared] Int32Array or sequence) countsList, GLuint countsOffset, - GLenum type, - ([AllowShared] Int32Array or sequence) offsetsList, GLuint offsetsOffset, - ([AllowShared] Int32Array or sequence) instanceCountsList, GLuint instanceCountsOffset, - GLsizei drawcount); -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL WEBGL_multi_draw Extension Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_multi_draw/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface WEBGL_multi_draw { + undefined multiDrawArraysWEBGL( + GLenum mode, + ([AllowShared] Int32Array or sequence) firstsList, GLuint firstsOffset, + ([AllowShared] Int32Array or sequence) countsList, GLuint countsOffset, + GLsizei drawcount); + undefined multiDrawElementsWEBGL( + GLenum mode, + ([AllowShared] Int32Array or sequence) countsList, GLuint countsOffset, + GLenum type, + ([AllowShared] Int32Array or sequence) offsetsList, GLuint offsetsOffset, + GLsizei drawcount); + undefined multiDrawArraysInstancedWEBGL( + GLenum mode, + ([AllowShared] Int32Array or sequence) firstsList, GLuint firstsOffset, + ([AllowShared] Int32Array or sequence) countsList, GLuint countsOffset, + ([AllowShared] Int32Array or sequence) instanceCountsList, GLuint instanceCountsOffset, + GLsizei drawcount); + undefined multiDrawElementsInstancedWEBGL( + GLenum mode, + ([AllowShared] Int32Array or sequence) countsList, GLuint countsOffset, + GLenum type, + ([AllowShared] Int32Array or sequence) offsetsList, GLuint offsetsOffset, + ([AllowShared] Int32Array or sequence) instanceCountsList, GLuint instanceCountsOffset, + GLsizei drawcount); +}; diff --git a/interfaces/WEBGL_multi_draw_instanced_base_vertex_base_instance.idl b/interfaces/WEBGL_multi_draw_instanced_base_vertex_base_instance.idl index 8dd3253a24cffa3..1b78bf221df6b98 100644 --- a/interfaces/WEBGL_multi_draw_instanced_base_vertex_base_instance.idl +++ b/interfaces/WEBGL_multi_draw_instanced_base_vertex_base_instance.idl @@ -1,26 +1,26 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebGL WEBGL_multi_draw_instanced_base_vertex_base_instance Extension Draft Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_multi_draw_instanced_base_vertex_base_instance/) - -[Exposed=(Window,Worker), LegacyNoInterfaceObject] -interface WEBGL_multi_draw_instanced_base_vertex_base_instance { - undefined multiDrawArraysInstancedBaseInstanceWEBGL( - GLenum mode, - ([AllowShared] Int32Array or sequence) firstsList, GLuint firstsOffset, - ([AllowShared] Int32Array or sequence) countsList, GLuint countsOffset, - ([AllowShared] Int32Array or sequence) instanceCountsList, GLuint instanceCountsOffset, - ([AllowShared] Uint32Array or sequence) baseInstancesList, GLuint baseInstancesOffset, - GLsizei drawCount - ); - undefined multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL( - GLenum mode, - ([AllowShared] Int32Array or sequence) countsList, GLuint countsOffset, - GLenum type, - ([AllowShared] Int32Array or sequence) offsetsList, GLuint offsetsOffset, - ([AllowShared] Int32Array or sequence) instanceCountsList, GLuint instanceCountsOffset, - ([AllowShared] Int32Array or sequence) baseVerticesList, GLuint baseVerticesOffset, - ([AllowShared] Uint32Array or sequence) baseInstancesList, GLuint baseInstancesOffset, - GLsizei drawCount - ); -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebGL WEBGL_multi_draw_instanced_base_vertex_base_instance Extension Draft Specification (https://www.khronos.org/registry/webgl/extensions/WEBGL_multi_draw_instanced_base_vertex_base_instance/) + +[Exposed=(Window,Worker), LegacyNoInterfaceObject] +interface WEBGL_multi_draw_instanced_base_vertex_base_instance { + undefined multiDrawArraysInstancedBaseInstanceWEBGL( + GLenum mode, + ([AllowShared] Int32Array or sequence) firstsList, GLuint firstsOffset, + ([AllowShared] Int32Array or sequence) countsList, GLuint countsOffset, + ([AllowShared] Int32Array or sequence) instanceCountsList, GLuint instanceCountsOffset, + ([AllowShared] Uint32Array or sequence) baseInstancesList, GLuint baseInstancesOffset, + GLsizei drawCount + ); + undefined multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL( + GLenum mode, + ([AllowShared] Int32Array or sequence) countsList, GLuint countsOffset, + GLenum type, + ([AllowShared] Int32Array or sequence) offsetsList, GLuint offsetsOffset, + ([AllowShared] Int32Array or sequence) instanceCountsList, GLuint instanceCountsOffset, + ([AllowShared] Int32Array or sequence) baseVerticesList, GLuint baseVerticesOffset, + ([AllowShared] Uint32Array or sequence) baseInstancesList, GLuint baseInstancesOffset, + GLsizei drawCount + ); +}; diff --git a/interfaces/WebCryptoAPI.idl b/interfaces/WebCryptoAPI.idl index d7fce62d5b0003a..bcb665d8750763d 100644 --- a/interfaces/WebCryptoAPI.idl +++ b/interfaces/WebCryptoAPI.idl @@ -1,236 +1,236 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: Web Cryptography API (https://w3c.github.io/webcrypto/) - -partial interface mixin WindowOrWorkerGlobalScope { - [SameObject] readonly attribute Crypto crypto; -}; - -[Exposed=(Window,Worker)] -interface Crypto { - [SecureContext] readonly attribute SubtleCrypto subtle; - ArrayBufferView getRandomValues(ArrayBufferView array); -}; - -typedef (object or DOMString) AlgorithmIdentifier; - -typedef AlgorithmIdentifier HashAlgorithmIdentifier; - -dictionary Algorithm { - required DOMString name; -}; - -dictionary KeyAlgorithm { - required DOMString name; -}; - -enum KeyType { "public", "private", "secret" }; - -enum KeyUsage { "encrypt", "decrypt", "sign", "verify", "deriveKey", "deriveBits", "wrapKey", "unwrapKey" }; - -[SecureContext,Exposed=(Window,Worker)] -interface CryptoKey { - readonly attribute KeyType type; - readonly attribute boolean extractable; - readonly attribute object algorithm; - readonly attribute object usages; -}; - -enum KeyFormat { "raw", "spki", "pkcs8", "jwk" }; - -[SecureContext,Exposed=(Window,Worker)] -interface SubtleCrypto { - Promise encrypt(AlgorithmIdentifier algorithm, - CryptoKey key, - BufferSource data); - Promise decrypt(AlgorithmIdentifier algorithm, - CryptoKey key, - BufferSource data); - Promise sign(AlgorithmIdentifier algorithm, - CryptoKey key, - BufferSource data); - Promise verify(AlgorithmIdentifier algorithm, - CryptoKey key, - BufferSource signature, - BufferSource data); - Promise digest(AlgorithmIdentifier algorithm, - BufferSource data); - - Promise generateKey(AlgorithmIdentifier algorithm, - boolean extractable, - sequence keyUsages ); - Promise deriveKey(AlgorithmIdentifier algorithm, - CryptoKey baseKey, - AlgorithmIdentifier derivedKeyType, - boolean extractable, - sequence keyUsages ); - Promise deriveBits(AlgorithmIdentifier algorithm, - CryptoKey baseKey, - unsigned long length); - - Promise importKey(KeyFormat format, - (BufferSource or JsonWebKey) keyData, - AlgorithmIdentifier algorithm, - boolean extractable, - sequence keyUsages ); - Promise exportKey(KeyFormat format, CryptoKey key); - - Promise wrapKey(KeyFormat format, - CryptoKey key, - CryptoKey wrappingKey, - AlgorithmIdentifier wrapAlgorithm); - Promise unwrapKey(KeyFormat format, - BufferSource wrappedKey, - CryptoKey unwrappingKey, - AlgorithmIdentifier unwrapAlgorithm, - AlgorithmIdentifier unwrappedKeyAlgorithm, - boolean extractable, - sequence keyUsages ); -}; - -dictionary RsaOtherPrimesInfo { - // The following fields are defined in Section 6.3.2.7 of JSON Web Algorithms - DOMString r; - DOMString d; - DOMString t; -}; - -dictionary JsonWebKey { - // The following fields are defined in Section 3.1 of JSON Web Key - DOMString kty; - DOMString use; - sequence key_ops; - DOMString alg; - - // The following fields are defined in JSON Web Key Parameters Registration - boolean ext; - - // The following fields are defined in Section 6 of JSON Web Algorithms - DOMString crv; - DOMString x; - DOMString y; - DOMString d; - DOMString n; - DOMString e; - DOMString p; - DOMString q; - DOMString dp; - DOMString dq; - DOMString qi; - sequence oth; - DOMString k; -}; - -typedef Uint8Array BigInteger; - -dictionary CryptoKeyPair { - CryptoKey publicKey; - CryptoKey privateKey; -}; - -dictionary RsaKeyGenParams : Algorithm { - required [EnforceRange] unsigned long modulusLength; - required BigInteger publicExponent; -}; - -dictionary RsaHashedKeyGenParams : RsaKeyGenParams { - required HashAlgorithmIdentifier hash; -}; - -dictionary RsaKeyAlgorithm : KeyAlgorithm { - required unsigned long modulusLength; - required BigInteger publicExponent; -}; - -dictionary RsaHashedKeyAlgorithm : RsaKeyAlgorithm { - required KeyAlgorithm hash; -}; - -dictionary RsaHashedImportParams : Algorithm { - required HashAlgorithmIdentifier hash; -}; - -dictionary RsaPssParams : Algorithm { - required [EnforceRange] unsigned long saltLength; -}; - -dictionary RsaOaepParams : Algorithm { - BufferSource label; -}; - -dictionary EcdsaParams : Algorithm { - required HashAlgorithmIdentifier hash; -}; - -typedef DOMString NamedCurve; - -dictionary EcKeyGenParams : Algorithm { - required NamedCurve namedCurve; -}; - -dictionary EcKeyAlgorithm : KeyAlgorithm { - required NamedCurve namedCurve; -}; - -dictionary EcKeyImportParams : Algorithm { - required NamedCurve namedCurve; -}; - -dictionary EcdhKeyDeriveParams : Algorithm { - required CryptoKey public; -}; - -dictionary AesCtrParams : Algorithm { - required BufferSource counter; - required [EnforceRange] octet length; -}; - -dictionary AesKeyAlgorithm : KeyAlgorithm { - required unsigned short length; -}; - -dictionary AesKeyGenParams : Algorithm { - required [EnforceRange] unsigned short length; -}; - -dictionary AesDerivedKeyParams : Algorithm { - required [EnforceRange] unsigned short length; -}; - -dictionary AesCbcParams : Algorithm { - required BufferSource iv; -}; - -dictionary AesGcmParams : Algorithm { - required BufferSource iv; - BufferSource additionalData; - [EnforceRange] octet tagLength; -}; - -dictionary HmacImportParams : Algorithm { - required HashAlgorithmIdentifier hash; - [EnforceRange] unsigned long length; -}; - -dictionary HmacKeyAlgorithm : KeyAlgorithm { - required KeyAlgorithm hash; - required unsigned long length; -}; - -dictionary HmacKeyGenParams : Algorithm { - required HashAlgorithmIdentifier hash; - [EnforceRange] unsigned long length; -}; - -dictionary HkdfParams : Algorithm { - required HashAlgorithmIdentifier hash; - required BufferSource salt; - required BufferSource info; -}; - -dictionary Pbkdf2Params : Algorithm { - required BufferSource salt; - required [EnforceRange] unsigned long iterations; - required HashAlgorithmIdentifier hash; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Web Cryptography API (https://w3c.github.io/webcrypto/) + +partial interface mixin WindowOrWorkerGlobalScope { + [SameObject] readonly attribute Crypto crypto; +}; + +[Exposed=(Window,Worker)] +interface Crypto { + [SecureContext] readonly attribute SubtleCrypto subtle; + ArrayBufferView getRandomValues(ArrayBufferView array); +}; + +typedef (object or DOMString) AlgorithmIdentifier; + +typedef AlgorithmIdentifier HashAlgorithmIdentifier; + +dictionary Algorithm { + required DOMString name; +}; + +dictionary KeyAlgorithm { + required DOMString name; +}; + +enum KeyType { "public", "private", "secret" }; + +enum KeyUsage { "encrypt", "decrypt", "sign", "verify", "deriveKey", "deriveBits", "wrapKey", "unwrapKey" }; + +[SecureContext,Exposed=(Window,Worker)] +interface CryptoKey { + readonly attribute KeyType type; + readonly attribute boolean extractable; + readonly attribute object algorithm; + readonly attribute object usages; +}; + +enum KeyFormat { "raw", "spki", "pkcs8", "jwk" }; + +[SecureContext,Exposed=(Window,Worker)] +interface SubtleCrypto { + Promise encrypt(AlgorithmIdentifier algorithm, + CryptoKey key, + BufferSource data); + Promise decrypt(AlgorithmIdentifier algorithm, + CryptoKey key, + BufferSource data); + Promise sign(AlgorithmIdentifier algorithm, + CryptoKey key, + BufferSource data); + Promise verify(AlgorithmIdentifier algorithm, + CryptoKey key, + BufferSource signature, + BufferSource data); + Promise digest(AlgorithmIdentifier algorithm, + BufferSource data); + + Promise generateKey(AlgorithmIdentifier algorithm, + boolean extractable, + sequence keyUsages ); + Promise deriveKey(AlgorithmIdentifier algorithm, + CryptoKey baseKey, + AlgorithmIdentifier derivedKeyType, + boolean extractable, + sequence keyUsages ); + Promise deriveBits(AlgorithmIdentifier algorithm, + CryptoKey baseKey, + unsigned long length); + + Promise importKey(KeyFormat format, + (BufferSource or JsonWebKey) keyData, + AlgorithmIdentifier algorithm, + boolean extractable, + sequence keyUsages ); + Promise exportKey(KeyFormat format, CryptoKey key); + + Promise wrapKey(KeyFormat format, + CryptoKey key, + CryptoKey wrappingKey, + AlgorithmIdentifier wrapAlgorithm); + Promise unwrapKey(KeyFormat format, + BufferSource wrappedKey, + CryptoKey unwrappingKey, + AlgorithmIdentifier unwrapAlgorithm, + AlgorithmIdentifier unwrappedKeyAlgorithm, + boolean extractable, + sequence keyUsages ); +}; + +dictionary RsaOtherPrimesInfo { + // The following fields are defined in Section 6.3.2.7 of JSON Web Algorithms + DOMString r; + DOMString d; + DOMString t; +}; + +dictionary JsonWebKey { + // The following fields are defined in Section 3.1 of JSON Web Key + DOMString kty; + DOMString use; + sequence key_ops; + DOMString alg; + + // The following fields are defined in JSON Web Key Parameters Registration + boolean ext; + + // The following fields are defined in Section 6 of JSON Web Algorithms + DOMString crv; + DOMString x; + DOMString y; + DOMString d; + DOMString n; + DOMString e; + DOMString p; + DOMString q; + DOMString dp; + DOMString dq; + DOMString qi; + sequence oth; + DOMString k; +}; + +typedef Uint8Array BigInteger; + +dictionary CryptoKeyPair { + CryptoKey publicKey; + CryptoKey privateKey; +}; + +dictionary RsaKeyGenParams : Algorithm { + required [EnforceRange] unsigned long modulusLength; + required BigInteger publicExponent; +}; + +dictionary RsaHashedKeyGenParams : RsaKeyGenParams { + required HashAlgorithmIdentifier hash; +}; + +dictionary RsaKeyAlgorithm : KeyAlgorithm { + required unsigned long modulusLength; + required BigInteger publicExponent; +}; + +dictionary RsaHashedKeyAlgorithm : RsaKeyAlgorithm { + required KeyAlgorithm hash; +}; + +dictionary RsaHashedImportParams : Algorithm { + required HashAlgorithmIdentifier hash; +}; + +dictionary RsaPssParams : Algorithm { + required [EnforceRange] unsigned long saltLength; +}; + +dictionary RsaOaepParams : Algorithm { + BufferSource label; +}; + +dictionary EcdsaParams : Algorithm { + required HashAlgorithmIdentifier hash; +}; + +typedef DOMString NamedCurve; + +dictionary EcKeyGenParams : Algorithm { + required NamedCurve namedCurve; +}; + +dictionary EcKeyAlgorithm : KeyAlgorithm { + required NamedCurve namedCurve; +}; + +dictionary EcKeyImportParams : Algorithm { + required NamedCurve namedCurve; +}; + +dictionary EcdhKeyDeriveParams : Algorithm { + required CryptoKey public; +}; + +dictionary AesCtrParams : Algorithm { + required BufferSource counter; + required [EnforceRange] octet length; +}; + +dictionary AesKeyAlgorithm : KeyAlgorithm { + required unsigned short length; +}; + +dictionary AesKeyGenParams : Algorithm { + required [EnforceRange] unsigned short length; +}; + +dictionary AesDerivedKeyParams : Algorithm { + required [EnforceRange] unsigned short length; +}; + +dictionary AesCbcParams : Algorithm { + required BufferSource iv; +}; + +dictionary AesGcmParams : Algorithm { + required BufferSource iv; + BufferSource additionalData; + [EnforceRange] octet tagLength; +}; + +dictionary HmacImportParams : Algorithm { + required HashAlgorithmIdentifier hash; + [EnforceRange] unsigned long length; +}; + +dictionary HmacKeyAlgorithm : KeyAlgorithm { + required KeyAlgorithm hash; + required unsigned long length; +}; + +dictionary HmacKeyGenParams : Algorithm { + required HashAlgorithmIdentifier hash; + [EnforceRange] unsigned long length; +}; + +dictionary HkdfParams : Algorithm { + required HashAlgorithmIdentifier hash; + required BufferSource salt; + required BufferSource info; +}; + +dictionary Pbkdf2Params : Algorithm { + required BufferSource salt; + required [EnforceRange] unsigned long iterations; + required HashAlgorithmIdentifier hash; +}; diff --git a/interfaces/WebIDL.idl b/interfaces/WebIDL.idl index 5179d167038524b..4f8f840e20fc3a1 100644 --- a/interfaces/WebIDL.idl +++ b/interfaces/WebIDL.idl @@ -1,48 +1,48 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: Web IDL (https://heycam.github.io/webidl/) - -typedef (Int8Array or Int16Array or Int32Array or - Uint8Array or Uint16Array or Uint32Array or Uint8ClampedArray or - Float32Array or Float64Array or DataView) ArrayBufferView; - -typedef (ArrayBufferView or ArrayBuffer) BufferSource; -[Exposed=(Window,Worker), - Serializable] -interface DOMException { // but see below note about ECMAScript binding - constructor(optional DOMString message = "", optional DOMString name = "Error"); - readonly attribute DOMString name; - readonly attribute DOMString message; - readonly attribute unsigned short code; - - const unsigned short INDEX_SIZE_ERR = 1; - const unsigned short DOMSTRING_SIZE_ERR = 2; - const unsigned short HIERARCHY_REQUEST_ERR = 3; - const unsigned short WRONG_DOCUMENT_ERR = 4; - const unsigned short INVALID_CHARACTER_ERR = 5; - const unsigned short NO_DATA_ALLOWED_ERR = 6; - const unsigned short NO_MODIFICATION_ALLOWED_ERR = 7; - const unsigned short NOT_FOUND_ERR = 8; - const unsigned short NOT_SUPPORTED_ERR = 9; - const unsigned short INUSE_ATTRIBUTE_ERR = 10; - const unsigned short INVALID_STATE_ERR = 11; - const unsigned short SYNTAX_ERR = 12; - const unsigned short INVALID_MODIFICATION_ERR = 13; - const unsigned short NAMESPACE_ERR = 14; - const unsigned short INVALID_ACCESS_ERR = 15; - const unsigned short VALIDATION_ERR = 16; - const unsigned short TYPE_MISMATCH_ERR = 17; - const unsigned short SECURITY_ERR = 18; - const unsigned short NETWORK_ERR = 19; - const unsigned short ABORT_ERR = 20; - const unsigned short URL_MISMATCH_ERR = 21; - const unsigned short QUOTA_EXCEEDED_ERR = 22; - const unsigned short TIMEOUT_ERR = 23; - const unsigned short INVALID_NODE_TYPE_ERR = 24; - const unsigned short DATA_CLONE_ERR = 25; -}; - -typedef unsigned long long DOMTimeStamp; -callback Function = any (any... arguments); -callback VoidFunction = undefined (); +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Web IDL (https://heycam.github.io/webidl/) + +typedef (Int8Array or Int16Array or Int32Array or + Uint8Array or Uint16Array or Uint32Array or Uint8ClampedArray or + Float32Array or Float64Array or DataView) ArrayBufferView; + +typedef (ArrayBufferView or ArrayBuffer) BufferSource; +[Exposed=(Window,Worker), + Serializable] +interface DOMException { // but see below note about ECMAScript binding + constructor(optional DOMString message = "", optional DOMString name = "Error"); + readonly attribute DOMString name; + readonly attribute DOMString message; + readonly attribute unsigned short code; + + const unsigned short INDEX_SIZE_ERR = 1; + const unsigned short DOMSTRING_SIZE_ERR = 2; + const unsigned short HIERARCHY_REQUEST_ERR = 3; + const unsigned short WRONG_DOCUMENT_ERR = 4; + const unsigned short INVALID_CHARACTER_ERR = 5; + const unsigned short NO_DATA_ALLOWED_ERR = 6; + const unsigned short NO_MODIFICATION_ALLOWED_ERR = 7; + const unsigned short NOT_FOUND_ERR = 8; + const unsigned short NOT_SUPPORTED_ERR = 9; + const unsigned short INUSE_ATTRIBUTE_ERR = 10; + const unsigned short INVALID_STATE_ERR = 11; + const unsigned short SYNTAX_ERR = 12; + const unsigned short INVALID_MODIFICATION_ERR = 13; + const unsigned short NAMESPACE_ERR = 14; + const unsigned short INVALID_ACCESS_ERR = 15; + const unsigned short VALIDATION_ERR = 16; + const unsigned short TYPE_MISMATCH_ERR = 17; + const unsigned short SECURITY_ERR = 18; + const unsigned short NETWORK_ERR = 19; + const unsigned short ABORT_ERR = 20; + const unsigned short URL_MISMATCH_ERR = 21; + const unsigned short QUOTA_EXCEEDED_ERR = 22; + const unsigned short TIMEOUT_ERR = 23; + const unsigned short INVALID_NODE_TYPE_ERR = 24; + const unsigned short DATA_CLONE_ERR = 25; +}; + +typedef unsigned long long DOMTimeStamp; +callback Function = any (any... arguments); +callback VoidFunction = undefined (); diff --git a/interfaces/accelerometer.idl b/interfaces/accelerometer.idl index fc8fc07ff775ddc..121a8bd22fc37c9 100644 --- a/interfaces/accelerometer.idl +++ b/interfaces/accelerometer.idl @@ -1,40 +1,40 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: Accelerometer (https://w3c.github.io/accelerometer/) - -[SecureContext, Exposed=Window] -interface Accelerometer : Sensor { - constructor(optional AccelerometerSensorOptions options = {}); - readonly attribute double? x; - readonly attribute double? y; - readonly attribute double? z; -}; - -enum AccelerometerLocalCoordinateSystem { "device", "screen" }; - -dictionary AccelerometerSensorOptions : SensorOptions { - AccelerometerLocalCoordinateSystem referenceFrame = "device"; -}; - -[SecureContext, Exposed=Window] -interface LinearAccelerationSensor : Accelerometer { - constructor(optional AccelerometerSensorOptions options = {}); -}; - -[SecureContext, Exposed=Window] -interface GravitySensor : Accelerometer { - constructor(optional AccelerometerSensorOptions options = {}); -}; - -dictionary AccelerometerReadingValues { - required double? x; - required double? y; - required double? z; -}; - -dictionary LinearAccelerationReadingValues : AccelerometerReadingValues { -}; - -dictionary GravityReadingValues : AccelerometerReadingValues { -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Accelerometer (https://w3c.github.io/accelerometer/) + +[SecureContext, Exposed=Window] +interface Accelerometer : Sensor { + constructor(optional AccelerometerSensorOptions options = {}); + readonly attribute double? x; + readonly attribute double? y; + readonly attribute double? z; +}; + +enum AccelerometerLocalCoordinateSystem { "device", "screen" }; + +dictionary AccelerometerSensorOptions : SensorOptions { + AccelerometerLocalCoordinateSystem referenceFrame = "device"; +}; + +[SecureContext, Exposed=Window] +interface LinearAccelerationSensor : Accelerometer { + constructor(optional AccelerometerSensorOptions options = {}); +}; + +[SecureContext, Exposed=Window] +interface GravitySensor : Accelerometer { + constructor(optional AccelerometerSensorOptions options = {}); +}; + +dictionary AccelerometerReadingValues { + required double? x; + required double? y; + required double? z; +}; + +dictionary LinearAccelerationReadingValues : AccelerometerReadingValues { +}; + +dictionary GravityReadingValues : AccelerometerReadingValues { +}; diff --git a/interfaces/ambient-light.idl b/interfaces/ambient-light.idl index 6d9c8e03eaa8182..221a92ffc3199c1 100644 --- a/interfaces/ambient-light.idl +++ b/interfaces/ambient-light.idl @@ -1,14 +1,14 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: Ambient Light Sensor (https://w3c.github.io/ambient-light/) - -[SecureContext, Exposed=Window] -interface AmbientLightSensor : Sensor { - constructor(optional SensorOptions sensorOptions = {}); - readonly attribute double? illuminance; -}; - -dictionary AmbientLightReadingValues { - required double? illuminance; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Ambient Light Sensor (https://w3c.github.io/ambient-light/) + +[SecureContext, Exposed=Window] +interface AmbientLightSensor : Sensor { + constructor(optional SensorOptions sensorOptions = {}); + readonly attribute double? illuminance; +}; + +dictionary AmbientLightReadingValues { + required double? illuminance; +}; diff --git a/interfaces/anchors.idl b/interfaces/anchors.idl index e92e7d10cdd146f..94bce4a341a52e0 100644 --- a/interfaces/anchors.idl +++ b/interfaces/anchors.idl @@ -1,28 +1,28 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: WebXR Anchors Module (https://immersive-web.github.io/anchors/) - -[SecureContext, Exposed=Window] -interface XRAnchor { - readonly attribute XRSpace anchorSpace; - - undefined delete(); -}; - -partial interface XRFrame { - Promise createAnchor(XRRigidTransform pose, XRSpace space); -}; - -partial interface XRHitTestResult { - Promise createAnchor(); -}; - -[Exposed=Window] -interface XRAnchorSet { - readonly setlike; -}; - -partial interface XRFrame { - [SameObject] readonly attribute XRAnchorSet trackedAnchors; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: WebXR Anchors Module (https://immersive-web.github.io/anchors/) + +[SecureContext, Exposed=Window] +interface XRAnchor { + readonly attribute XRSpace anchorSpace; + + undefined delete(); +}; + +partial interface XRFrame { + Promise createAnchor(XRRigidTransform pose, XRSpace space); +}; + +partial interface XRHitTestResult { + Promise createAnchor(); +}; + +[Exposed=Window] +interface XRAnchorSet { + readonly setlike; +}; + +partial interface XRFrame { + [SameObject] readonly attribute XRAnchorSet trackedAnchors; +}; diff --git a/interfaces/audio-output.idl b/interfaces/audio-output.idl index 80ceb225308a057..b89d1201a8b0f91 100644 --- a/interfaces/audio-output.idl +++ b/interfaces/audio-output.idl @@ -1,17 +1,17 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: Audio Output Devices API (https://w3c.github.io/mediacapture-output/) - -partial interface HTMLMediaElement { - [SecureContext] readonly attribute DOMString sinkId; - [SecureContext] Promise setSinkId (DOMString sinkId); -}; - -partial interface MediaDevices { - Promise selectAudioOutput(optional AudioOutputOptions options = {}); -}; - -dictionary AudioOutputOptions { - DOMString deviceId = ""; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Audio Output Devices API (https://w3c.github.io/mediacapture-output/) + +partial interface HTMLMediaElement { + [SecureContext] readonly attribute DOMString sinkId; + [SecureContext] Promise setSinkId (DOMString sinkId); +}; + +partial interface MediaDevices { + Promise selectAudioOutput(optional AudioOutputOptions options = {}); +}; + +dictionary AudioOutputOptions { + DOMString deviceId = ""; +}; diff --git a/interfaces/background-fetch.idl b/interfaces/background-fetch.idl index 993bd8bc2fd8db2..500988ff1aa43a1 100644 --- a/interfaces/background-fetch.idl +++ b/interfaces/background-fetch.idl @@ -1,89 +1,89 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: Background Fetch (https://wicg.github.io/background-fetch/) - -partial interface ServiceWorkerGlobalScope { - attribute EventHandler onbackgroundfetchsuccess; - attribute EventHandler onbackgroundfetchfail; - attribute EventHandler onbackgroundfetchabort; - attribute EventHandler onbackgroundfetchclick; -}; - -partial interface ServiceWorkerRegistration { - readonly attribute BackgroundFetchManager backgroundFetch; -}; - -[Exposed=(Window,Worker)] -interface BackgroundFetchManager { - Promise fetch(DOMString id, (RequestInfo or sequence) requests, optional BackgroundFetchOptions options = {}); - Promise get(DOMString id); - Promise> getIds(); -}; - -dictionary BackgroundFetchUIOptions { - sequence icons; - DOMString title; -}; - -dictionary BackgroundFetchOptions : BackgroundFetchUIOptions { - unsigned long long downloadTotal = 0; -}; - -[Exposed=(Window,Worker)] -interface BackgroundFetchRegistration : EventTarget { - readonly attribute DOMString id; - readonly attribute unsigned long long uploadTotal; - readonly attribute unsigned long long uploaded; - readonly attribute unsigned long long downloadTotal; - readonly attribute unsigned long long downloaded; - readonly attribute BackgroundFetchResult result; - readonly attribute BackgroundFetchFailureReason failureReason; - readonly attribute boolean recordsAvailable; - - attribute EventHandler onprogress; - - Promise abort(); - Promise match(RequestInfo request, optional CacheQueryOptions options = {}); - Promise> matchAll(optional RequestInfo request, optional CacheQueryOptions options = {}); -}; - -enum BackgroundFetchResult { "", "success", "failure" }; - -enum BackgroundFetchFailureReason { - // The background fetch has not completed yet, or was successful. - "", - // The operation was aborted by the user, or abort() was called. - "aborted", - // A response had a not-ok-status. - "bad-status", - // A fetch failed for other reasons, e.g. CORS, MIX, an invalid partial response, - // or a general network failure for a fetch that cannot be retried. - "fetch-error", - // Storage quota was reached during the operation. - "quota-exceeded", - // The provided downloadTotal was exceeded. - "download-total-exceeded" -}; - -[Exposed=(Window,Worker)] -interface BackgroundFetchRecord { - readonly attribute Request request; - readonly attribute Promise responseReady; -}; - -[Exposed=ServiceWorker] -interface BackgroundFetchEvent : ExtendableEvent { - constructor(DOMString type, BackgroundFetchEventInit init); - readonly attribute BackgroundFetchRegistration registration; -}; - -dictionary BackgroundFetchEventInit : ExtendableEventInit { - required BackgroundFetchRegistration registration; -}; - -[Exposed=ServiceWorker] -interface BackgroundFetchUpdateUIEvent : BackgroundFetchEvent { - constructor(DOMString type, BackgroundFetchEventInit init); - Promise updateUI(optional BackgroundFetchUIOptions options = {}); -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Background Fetch (https://wicg.github.io/background-fetch/) + +partial interface ServiceWorkerGlobalScope { + attribute EventHandler onbackgroundfetchsuccess; + attribute EventHandler onbackgroundfetchfail; + attribute EventHandler onbackgroundfetchabort; + attribute EventHandler onbackgroundfetchclick; +}; + +partial interface ServiceWorkerRegistration { + readonly attribute BackgroundFetchManager backgroundFetch; +}; + +[Exposed=(Window,Worker)] +interface BackgroundFetchManager { + Promise fetch(DOMString id, (RequestInfo or sequence) requests, optional BackgroundFetchOptions options = {}); + Promise get(DOMString id); + Promise> getIds(); +}; + +dictionary BackgroundFetchUIOptions { + sequence icons; + DOMString title; +}; + +dictionary BackgroundFetchOptions : BackgroundFetchUIOptions { + unsigned long long downloadTotal = 0; +}; + +[Exposed=(Window,Worker)] +interface BackgroundFetchRegistration : EventTarget { + readonly attribute DOMString id; + readonly attribute unsigned long long uploadTotal; + readonly attribute unsigned long long uploaded; + readonly attribute unsigned long long downloadTotal; + readonly attribute unsigned long long downloaded; + readonly attribute BackgroundFetchResult result; + readonly attribute BackgroundFetchFailureReason failureReason; + readonly attribute boolean recordsAvailable; + + attribute EventHandler onprogress; + + Promise abort(); + Promise match(RequestInfo request, optional CacheQueryOptions options = {}); + Promise> matchAll(optional RequestInfo request, optional CacheQueryOptions options = {}); +}; + +enum BackgroundFetchResult { "", "success", "failure" }; + +enum BackgroundFetchFailureReason { + // The background fetch has not completed yet, or was successful. + "", + // The operation was aborted by the user, or abort() was called. + "aborted", + // A response had a not-ok-status. + "bad-status", + // A fetch failed for other reasons, e.g. CORS, MIX, an invalid partial response, + // or a general network failure for a fetch that cannot be retried. + "fetch-error", + // Storage quota was reached during the operation. + "quota-exceeded", + // The provided downloadTotal was exceeded. + "download-total-exceeded" +}; + +[Exposed=(Window,Worker)] +interface BackgroundFetchRecord { + readonly attribute Request request; + readonly attribute Promise responseReady; +}; + +[Exposed=ServiceWorker] +interface BackgroundFetchEvent : ExtendableEvent { + constructor(DOMString type, BackgroundFetchEventInit init); + readonly attribute BackgroundFetchRegistration registration; +}; + +dictionary BackgroundFetchEventInit : ExtendableEventInit { + required BackgroundFetchRegistration registration; +}; + +[Exposed=ServiceWorker] +interface BackgroundFetchUpdateUIEvent : BackgroundFetchEvent { + constructor(DOMString type, BackgroundFetchEventInit init); + Promise updateUI(optional BackgroundFetchUIOptions options = {}); +}; diff --git a/interfaces/background-sync.idl b/interfaces/background-sync.idl index 79a13a617af8aea..fb4710e377f8061 100644 --- a/interfaces/background-sync.idl +++ b/interfaces/background-sync.idl @@ -1,30 +1,30 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: Web Background Synchronization (https://wicg.github.io/background-sync/spec/) - -partial interface ServiceWorkerRegistration { - readonly attribute SyncManager sync; -}; - -[Exposed=(Window,Worker)] -interface SyncManager { - Promise register(DOMString tag); - Promise> getTags(); -}; - -partial interface ServiceWorkerGlobalScope { - attribute EventHandler onsync; -}; - -[Exposed=ServiceWorker] -interface SyncEvent : ExtendableEvent { - constructor(DOMString type, SyncEventInit init); - readonly attribute DOMString tag; - readonly attribute boolean lastChance; -}; - -dictionary SyncEventInit : ExtendableEventInit { - required DOMString tag; - boolean lastChance = false; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Web Background Synchronization (https://wicg.github.io/background-sync/spec/) + +partial interface ServiceWorkerRegistration { + readonly attribute SyncManager sync; +}; + +[Exposed=(Window,Worker)] +interface SyncManager { + Promise register(DOMString tag); + Promise> getTags(); +}; + +partial interface ServiceWorkerGlobalScope { + attribute EventHandler onsync; +}; + +[Exposed=ServiceWorker] +interface SyncEvent : ExtendableEvent { + constructor(DOMString type, SyncEventInit init); + readonly attribute DOMString tag; + readonly attribute boolean lastChance; +}; + +dictionary SyncEventInit : ExtendableEventInit { + required DOMString tag; + boolean lastChance = false; +}; diff --git a/interfaces/badging.idl b/interfaces/badging.idl index 28578621c9a4b15..c7dae02c3fab730 100644 --- a/interfaces/badging.idl +++ b/interfaces/badging.idl @@ -1,21 +1,21 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: Badging API (https://w3c.github.io/badging/) - -// Methods only exposed on documents. -[SecureContext] -partial interface Navigator { - Promise setClientBadge(optional [EnforceRange] unsigned long long contents); - Promise clearClientBadge(); -}; - -// Methods exposed on both documents and service workers. -[SecureContext] -interface mixin NavigatorBadge { - Promise setAppBadge(optional [EnforceRange] unsigned long long contents); - Promise clearAppBadge(); -}; - -Navigator includes NavigatorBadge; -WorkerNavigator includes NavigatorBadge; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Badging API (https://w3c.github.io/badging/) + +// Methods only exposed on documents. +[SecureContext] +partial interface Navigator { + Promise setClientBadge(optional [EnforceRange] unsigned long long contents); + Promise clearClientBadge(); +}; + +// Methods exposed on both documents and service workers. +[SecureContext] +interface mixin NavigatorBadge { + Promise setAppBadge(optional [EnforceRange] unsigned long long contents); + Promise clearAppBadge(); +}; + +Navigator includes NavigatorBadge; +WorkerNavigator includes NavigatorBadge; diff --git a/interfaces/battery-status.idl b/interfaces/battery-status.idl index dc85bff19e82e39..36a03518de42613 100644 --- a/interfaces/battery-status.idl +++ b/interfaces/battery-status.idl @@ -1,20 +1,20 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: Battery Status API (https://w3c.github.io/battery/) - -partial interface Navigator { - Promise getBattery(); -}; - -[Exposed=Window] -interface BatteryManager : EventTarget { - readonly attribute boolean charging; - readonly attribute unrestricted double chargingTime; - readonly attribute unrestricted double dischargingTime; - readonly attribute double level; - attribute EventHandler onchargingchange; - attribute EventHandler onchargingtimechange; - attribute EventHandler ondischargingtimechange; - attribute EventHandler onlevelchange; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Battery Status API (https://w3c.github.io/battery/) + +partial interface Navigator { + Promise getBattery(); +}; + +[Exposed=Window] +interface BatteryManager : EventTarget { + readonly attribute boolean charging; + readonly attribute unrestricted double chargingTime; + readonly attribute unrestricted double dischargingTime; + readonly attribute double level; + attribute EventHandler onchargingchange; + attribute EventHandler onchargingtimechange; + attribute EventHandler ondischargingtimechange; + attribute EventHandler onlevelchange; +}; diff --git a/interfaces/beacon.idl b/interfaces/beacon.idl index 103a999fd432707..3f0dbbbc5da313c 100644 --- a/interfaces/beacon.idl +++ b/interfaces/beacon.idl @@ -1,8 +1,8 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: Beacon (https://w3c.github.io/beacon/) - -partial interface Navigator { - boolean sendBeacon(USVString url, optional BodyInit? data = null); -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Beacon (https://w3c.github.io/beacon/) + +partial interface Navigator { + boolean sendBeacon(USVString url, optional BodyInit? data = null); +}; diff --git a/interfaces/clipboard-apis.idl b/interfaces/clipboard-apis.idl index 81926bdd6a15ed7..8181f715af15004 100644 --- a/interfaces/clipboard-apis.idl +++ b/interfaces/clipboard-apis.idl @@ -1,58 +1,58 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: Clipboard API and events (https://w3c.github.io/clipboard-apis/) - -dictionary ClipboardEventInit : EventInit { - DataTransfer? clipboardData = null; -}; - -[Exposed=Window] -interface ClipboardEvent : Event { - constructor(DOMString type, optional ClipboardEventInit eventInitDict = {}); - readonly attribute DataTransfer? clipboardData; -}; - -partial interface Navigator { - [SecureContext, SameObject] readonly attribute Clipboard clipboard; -}; - -typedef sequence ClipboardItems; - -[SecureContext, Exposed=Window] interface Clipboard : EventTarget { - Promise read(); - Promise readText(); - Promise write(ClipboardItems data); - Promise writeText(DOMString data); -}; - -typedef (DOMString or Blob) ClipboardItemDataType; -typedef Promise ClipboardItemData; - -callback ClipboardItemDelayedCallback = ClipboardItemData (); - -[Exposed=Window] interface ClipboardItem { - constructor(record items, - optional ClipboardItemOptions options = {}); - static ClipboardItem createDelayed( - record items, - optional ClipboardItemOptions options = {}); - - readonly attribute PresentationStyle presentationStyle; - readonly attribute long long lastModified; - readonly attribute boolean delayed; - - readonly attribute FrozenArray types; - - Promise getType(DOMString type); -}; - -enum PresentationStyle { "unspecified", "inline", "attachment" }; - -dictionary ClipboardItemOptions { - PresentationStyle presentationStyle = "unspecified"; -}; - -dictionary ClipboardPermissionDescriptor : PermissionDescriptor { - boolean allowWithoutGesture = false; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Clipboard API and events (https://w3c.github.io/clipboard-apis/) + +dictionary ClipboardEventInit : EventInit { + DataTransfer? clipboardData = null; +}; + +[Exposed=Window] +interface ClipboardEvent : Event { + constructor(DOMString type, optional ClipboardEventInit eventInitDict = {}); + readonly attribute DataTransfer? clipboardData; +}; + +partial interface Navigator { + [SecureContext, SameObject] readonly attribute Clipboard clipboard; +}; + +typedef sequence ClipboardItems; + +[SecureContext, Exposed=Window] interface Clipboard : EventTarget { + Promise read(); + Promise readText(); + Promise write(ClipboardItems data); + Promise writeText(DOMString data); +}; + +typedef (DOMString or Blob) ClipboardItemDataType; +typedef Promise ClipboardItemData; + +callback ClipboardItemDelayedCallback = ClipboardItemData (); + +[Exposed=Window] interface ClipboardItem { + constructor(record items, + optional ClipboardItemOptions options = {}); + static ClipboardItem createDelayed( + record items, + optional ClipboardItemOptions options = {}); + + readonly attribute PresentationStyle presentationStyle; + readonly attribute long long lastModified; + readonly attribute boolean delayed; + + readonly attribute FrozenArray types; + + Promise getType(DOMString type); +}; + +enum PresentationStyle { "unspecified", "inline", "attachment" }; + +dictionary ClipboardItemOptions { + PresentationStyle presentationStyle = "unspecified"; +}; + +dictionary ClipboardPermissionDescriptor : PermissionDescriptor { + boolean allowWithoutGesture = false; +}; diff --git a/interfaces/compat.idl b/interfaces/compat.idl index 8106c2d4e0599cb..7f0baaf8c4e4423 100644 --- a/interfaces/compat.idl +++ b/interfaces/compat.idl @@ -1,13 +1,13 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: Compatibility Standard (https://compat.spec.whatwg.org/) - -partial interface Window { - readonly attribute short orientation; - attribute EventHandler onorientationchange; -}; - -partial interface HTMLBodyElement { - attribute EventHandler onorientationchange; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Compatibility Standard (https://compat.spec.whatwg.org/) + +partial interface Window { + readonly attribute short orientation; + attribute EventHandler onorientationchange; +}; + +partial interface HTMLBodyElement { + attribute EventHandler onorientationchange; +}; diff --git a/interfaces/compression.idl b/interfaces/compression.idl index d7236bf2a7f5392..5fd442589a0bdef 100644 --- a/interfaces/compression.idl +++ b/interfaces/compression.idl @@ -1,16 +1,16 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: Compression Streams (https://wicg.github.io/compression/) - -[Exposed=(Window,Worker)] -interface CompressionStream { - constructor(DOMString format); -}; -CompressionStream includes GenericTransformStream; - -[Exposed=(Window,Worker)] -interface DecompressionStream { - constructor(DOMString format); -}; -DecompressionStream includes GenericTransformStream; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Compression Streams (https://wicg.github.io/compression/) + +[Exposed=(Window,Worker)] +interface CompressionStream { + constructor(DOMString format); +}; +CompressionStream includes GenericTransformStream; + +[Exposed=(Window,Worker)] +interface DecompressionStream { + constructor(DOMString format); +}; +DecompressionStream includes GenericTransformStream; diff --git a/interfaces/console.idl b/interfaces/console.idl index 7cd73a61764fc17..ca5910cbf649168 100644 --- a/interfaces/console.idl +++ b/interfaces/console.idl @@ -1,34 +1,34 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: Console Standard (https://console.spec.whatwg.org/) - -[Exposed=(Window,Worker,Worklet)] -namespace console { // but see namespace object requirements below - // Logging - undefined assert(optional boolean condition = false, any... data); - undefined clear(); - undefined debug(any... data); - undefined error(any... data); - undefined info(any... data); - undefined log(any... data); - undefined table(optional any tabularData, optional sequence properties); - undefined trace(any... data); - undefined warn(any... data); - undefined dir(optional any item, optional object? options); - undefined dirxml(any... data); - - // Counting - undefined count(optional DOMString label = "default"); - undefined countReset(optional DOMString label = "default"); - - // Grouping - undefined group(any... data); - undefined groupCollapsed(any... data); - undefined groupEnd(); - - // Timing - undefined time(optional DOMString label = "default"); - undefined timeLog(optional DOMString label = "default", any... data); - undefined timeEnd(optional DOMString label = "default"); -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Console Standard (https://console.spec.whatwg.org/) + +[Exposed=(Window,Worker,Worklet)] +namespace console { // but see namespace object requirements below + // Logging + undefined assert(optional boolean condition = false, any... data); + undefined clear(); + undefined debug(any... data); + undefined error(any... data); + undefined info(any... data); + undefined log(any... data); + undefined table(optional any tabularData, optional sequence properties); + undefined trace(any... data); + undefined warn(any... data); + undefined dir(optional any item, optional object? options); + undefined dirxml(any... data); + + // Counting + undefined count(optional DOMString label = "default"); + undefined countReset(optional DOMString label = "default"); + + // Grouping + undefined group(any... data); + undefined groupCollapsed(any... data); + undefined groupEnd(); + + // Timing + undefined time(optional DOMString label = "default"); + undefined timeLog(optional DOMString label = "default", any... data); + undefined timeEnd(optional DOMString label = "default"); +}; diff --git a/interfaces/construct-stylesheets.idl b/interfaces/construct-stylesheets.idl index 249af039302648d..3d9c60100ff52e2 100644 --- a/interfaces/construct-stylesheets.idl +++ b/interfaces/construct-stylesheets.idl @@ -1,21 +1,8 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: Constructable Stylesheet Objects (https://wicg.github.io/construct-stylesheets/) - -partial interface CSSStyleSheet { - constructor(optional CSSStyleSheetInit options = {}); - Promise replace(USVString text); - undefined replaceSync(USVString text); -}; - -dictionary CSSStyleSheetInit { - (MediaList or DOMString) media = ""; - DOMString title = ""; - boolean alternate = false; - boolean disabled = false; -}; - -partial interface mixin DocumentOrShadowRoot { - attribute FrozenArray adoptedStyleSheets; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Constructable Stylesheet Objects (https://wicg.github.io/construct-stylesheets/) + +partial interface mixin DocumentOrShadowRoot { + attribute FrozenArray adoptedStyleSheets; +}; diff --git a/interfaces/contact-api.idl b/interfaces/contact-api.idl index 88142a77fb5cd0e..aa3a1d2bbbe8d99 100644 --- a/interfaces/contact-api.idl +++ b/interfaces/contact-api.idl @@ -1,32 +1,32 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: Contact Picker API (https://wicg.github.io/contact-api/spec/) - -[Exposed=Window] -partial interface Navigator { - [SecureContext, SameObject] readonly attribute ContactsManager contacts; -}; - -enum ContactProperty { "address", "email", "icon", "name", "tel" }; - -[Exposed=Window] -interface ContactAddress : PaymentAddress {}; - -dictionary ContactInfo { - sequence address; - sequence email; - sequence icon; - sequence name; - sequence tel; -}; - -dictionary ContactsSelectOptions { - boolean multiple = false; -}; - -[Exposed=(Window,SecureContext)] -interface ContactsManager { - Promise> getProperties(); - Promise> select(sequence properties, optional ContactsSelectOptions options = {}); -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Contact Picker API (https://wicg.github.io/contact-api/spec/) + +[Exposed=Window] +partial interface Navigator { + [SecureContext, SameObject] readonly attribute ContactsManager contacts; +}; + +enum ContactProperty { "address", "email", "icon", "name", "tel" }; + +[Exposed=Window] +interface ContactAddress : PaymentAddress {}; + +dictionary ContactInfo { + sequence address; + sequence email; + sequence icon; + sequence name; + sequence tel; +}; + +dictionary ContactsSelectOptions { + boolean multiple = false; +}; + +[Exposed=(Window,SecureContext)] +interface ContactsManager { + Promise> getProperties(); + Promise> select(sequence properties, optional ContactsSelectOptions options = {}); +}; diff --git a/interfaces/content-index.idl b/interfaces/content-index.idl index 177c5b9f11d4e1d..d383a93d318d392 100644 --- a/interfaces/content-index.idl +++ b/interfaces/content-index.idl @@ -1,46 +1,46 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: Content Index (https://wicg.github.io/content-index/spec/) - -partial interface ServiceWorkerGlobalScope { - attribute EventHandler oncontentdelete; -}; - -partial interface ServiceWorkerRegistration { - [SameObject] readonly attribute ContentIndex index; -}; - -enum ContentCategory { - "", - "homepage", - "article", - "video", - "audio", -}; - -dictionary ContentDescription { - required DOMString id; - required DOMString title; - required DOMString description; - ContentCategory category = ""; - sequence icons = []; - required USVString url; -}; - -[Exposed=(Window,Worker)] -interface ContentIndex { - Promise add(ContentDescription description); - Promise delete(DOMString id); - Promise> getAll(); -}; - -dictionary ContentIndexEventInit : ExtendableEventInit { - required DOMString id; -}; - -[Exposed=ServiceWorker] -interface ContentIndexEvent : ExtendableEvent { - constructor(DOMString type, ContentIndexEventInit init); - readonly attribute DOMString id; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Content Index (https://wicg.github.io/content-index/spec/) + +partial interface ServiceWorkerGlobalScope { + attribute EventHandler oncontentdelete; +}; + +partial interface ServiceWorkerRegistration { + [SameObject] readonly attribute ContentIndex index; +}; + +enum ContentCategory { + "", + "homepage", + "article", + "video", + "audio", +}; + +dictionary ContentDescription { + required DOMString id; + required DOMString title; + required DOMString description; + ContentCategory category = ""; + sequence icons = []; + required USVString url; +}; + +[Exposed=(Window,Worker)] +interface ContentIndex { + Promise add(ContentDescription description); + Promise delete(DOMString id); + Promise> getAll(); +}; + +dictionary ContentIndexEventInit : ExtendableEventInit { + required DOMString id; +}; + +[Exposed=ServiceWorker] +interface ContentIndexEvent : ExtendableEvent { + constructor(DOMString type, ContentIndexEventInit init); + readonly attribute DOMString id; +}; diff --git a/interfaces/cookie-store.idl b/interfaces/cookie-store.idl index 993b327fe70aa3e..fce3fe458dad4d7 100644 --- a/interfaces/cookie-store.idl +++ b/interfaces/cookie-store.idl @@ -1,110 +1,110 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: Cookie Store API (https://wicg.github.io/cookie-store/) - -[Exposed=(ServiceWorker,Window), - SecureContext] -interface CookieStore : EventTarget { - Promise get(USVString name); - Promise get(optional CookieStoreGetOptions options = {}); - - Promise getAll(USVString name); - Promise getAll(optional CookieStoreGetOptions options = {}); - - Promise set(USVString name, USVString value); - Promise set(CookieInit options); - - Promise delete(USVString name); - Promise delete(CookieStoreDeleteOptions options); - - [Exposed=Window] - attribute EventHandler onchange; -}; - -dictionary CookieStoreGetOptions { - USVString name; - USVString url; -}; - -enum CookieSameSite { - "strict", - "lax", - "none" -}; - -dictionary CookieInit { - required USVString name; - required USVString value; - DOMTimeStamp? expires = null; - USVString? domain = null; - USVString path = "/"; - CookieSameSite sameSite = "strict"; -}; - -dictionary CookieStoreDeleteOptions { - required USVString name; - USVString? domain = null; - USVString path = "/"; -}; - -dictionary CookieListItem { - USVString name; - USVString value; - USVString? domain; - USVString path; - DOMTimeStamp? expires; - boolean secure; - CookieSameSite sameSite; -}; - -typedef sequence CookieList; - -[Exposed=(ServiceWorker,Window), - SecureContext] -interface CookieStoreManager { - Promise subscribe(sequence subscriptions); - Promise> getSubscriptions(); - Promise unsubscribe(sequence subscriptions); -}; - -[Exposed=(ServiceWorker,Window)] -partial interface ServiceWorkerRegistration { - [SameObject] readonly attribute CookieStoreManager cookies; -}; - -[Exposed=Window, - SecureContext] -interface CookieChangeEvent : Event { - constructor(DOMString type, optional CookieChangeEventInit eventInitDict = {}); - [SameObject] readonly attribute FrozenArray changed; - [SameObject] readonly attribute FrozenArray deleted; -}; - -dictionary CookieChangeEventInit : EventInit { - CookieList changed; - CookieList deleted; -}; - -[Exposed=ServiceWorker] -interface ExtendableCookieChangeEvent : ExtendableEvent { - constructor(DOMString type, optional ExtendableCookieChangeEventInit eventInitDict = {}); - [SameObject] readonly attribute FrozenArray changed; - [SameObject] readonly attribute FrozenArray deleted; -}; - -dictionary ExtendableCookieChangeEventInit : ExtendableEventInit { - CookieList changed; - CookieList deleted; -}; - -[SecureContext] -partial interface Window { - [SameObject] readonly attribute CookieStore cookieStore; -}; - -partial interface ServiceWorkerGlobalScope { - [SameObject] readonly attribute CookieStore cookieStore; - - attribute EventHandler oncookiechange; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Cookie Store API (https://wicg.github.io/cookie-store/) + +[Exposed=(ServiceWorker,Window), + SecureContext] +interface CookieStore : EventTarget { + Promise get(USVString name); + Promise get(optional CookieStoreGetOptions options = {}); + + Promise getAll(USVString name); + Promise getAll(optional CookieStoreGetOptions options = {}); + + Promise set(USVString name, USVString value); + Promise set(CookieInit options); + + Promise delete(USVString name); + Promise delete(CookieStoreDeleteOptions options); + + [Exposed=Window] + attribute EventHandler onchange; +}; + +dictionary CookieStoreGetOptions { + USVString name; + USVString url; +}; + +enum CookieSameSite { + "strict", + "lax", + "none" +}; + +dictionary CookieInit { + required USVString name; + required USVString value; + DOMTimeStamp? expires = null; + USVString? domain = null; + USVString path = "/"; + CookieSameSite sameSite = "strict"; +}; + +dictionary CookieStoreDeleteOptions { + required USVString name; + USVString? domain = null; + USVString path = "/"; +}; + +dictionary CookieListItem { + USVString name; + USVString value; + USVString? domain; + USVString path; + DOMTimeStamp? expires; + boolean secure; + CookieSameSite sameSite; +}; + +typedef sequence CookieList; + +[Exposed=(ServiceWorker,Window), + SecureContext] +interface CookieStoreManager { + Promise subscribe(sequence subscriptions); + Promise> getSubscriptions(); + Promise unsubscribe(sequence subscriptions); +}; + +[Exposed=(ServiceWorker,Window)] +partial interface ServiceWorkerRegistration { + [SameObject] readonly attribute CookieStoreManager cookies; +}; + +[Exposed=Window, + SecureContext] +interface CookieChangeEvent : Event { + constructor(DOMString type, optional CookieChangeEventInit eventInitDict = {}); + [SameObject] readonly attribute FrozenArray changed; + [SameObject] readonly attribute FrozenArray deleted; +}; + +dictionary CookieChangeEventInit : EventInit { + CookieList changed; + CookieList deleted; +}; + +[Exposed=ServiceWorker] +interface ExtendableCookieChangeEvent : ExtendableEvent { + constructor(DOMString type, optional ExtendableCookieChangeEventInit eventInitDict = {}); + [SameObject] readonly attribute FrozenArray changed; + [SameObject] readonly attribute FrozenArray deleted; +}; + +dictionary ExtendableCookieChangeEventInit : ExtendableEventInit { + CookieList changed; + CookieList deleted; +}; + +[SecureContext] +partial interface Window { + [SameObject] readonly attribute CookieStore cookieStore; +}; + +partial interface ServiceWorkerGlobalScope { + [SameObject] readonly attribute CookieStore cookieStore; + + attribute EventHandler oncookiechange; +}; diff --git a/interfaces/crash-reporting.idl b/interfaces/crash-reporting.idl index 7c8a0ff71f2ab02..5cf1241757e6784 100644 --- a/interfaces/crash-reporting.idl +++ b/interfaces/crash-reporting.idl @@ -1,10 +1,10 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: Crash Reporting (https://wicg.github.io/crash-reporting/) - -[Exposed=(Window,Worker)] -interface CrashReportBody : ReportBody { - [Default] object toJSON(); - readonly attribute DOMString? reason; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Crash Reporting (https://wicg.github.io/crash-reporting/) + +[Exposed=(Window,Worker)] +interface CrashReportBody : ReportBody { + [Default] object toJSON(); + readonly attribute DOMString? reason; +}; diff --git a/interfaces/credential-management.idl b/interfaces/credential-management.idl index a07aa0b4447cd31..fc46726556efb07 100644 --- a/interfaces/credential-management.idl +++ b/interfaces/credential-management.idl @@ -1,103 +1,103 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: Credential Management Level 1 (https://w3c.github.io/webappsec-credential-management/) - -[Exposed=Window, SecureContext] -interface Credential { - readonly attribute USVString id; - readonly attribute DOMString type; -}; - -[SecureContext] -interface mixin CredentialUserData { - readonly attribute USVString name; - readonly attribute USVString iconURL; -}; - -partial interface Navigator { - [SecureContext, SameObject] readonly attribute CredentialsContainer credentials; -}; - -[Exposed=Window, SecureContext] -interface CredentialsContainer { - Promise get(optional CredentialRequestOptions options = {}); - Promise store(Credential credential); - Promise create(optional CredentialCreationOptions options = {}); - Promise preventSilentAccess(); -}; - -dictionary CredentialData { - required USVString id; -}; - -dictionary CredentialRequestOptions { - CredentialMediationRequirement mediation = "optional"; - AbortSignal signal; -}; - -enum CredentialMediationRequirement { - "silent", - "optional", - "required" -}; - -dictionary CredentialCreationOptions { - AbortSignal signal; -}; - -[Exposed=Window, - SecureContext] -interface PasswordCredential : Credential { - constructor(HTMLFormElement form); - constructor(PasswordCredentialData data); - readonly attribute USVString password; -}; -PasswordCredential includes CredentialUserData; - -partial dictionary CredentialRequestOptions { - boolean password = false; -}; - -dictionary PasswordCredentialData : CredentialData { - USVString name; - USVString iconURL; - required USVString origin; - required USVString password; -}; - -typedef (PasswordCredentialData or HTMLFormElement) PasswordCredentialInit; - -partial dictionary CredentialCreationOptions { - PasswordCredentialInit password; -}; - -[Exposed=Window, - SecureContext] -interface FederatedCredential : Credential { - constructor(FederatedCredentialInit data); - readonly attribute USVString provider; - readonly attribute DOMString? protocol; -}; -FederatedCredential includes CredentialUserData; - -dictionary FederatedCredentialRequestOptions { - sequence providers; - sequence protocols; -}; - -partial dictionary CredentialRequestOptions { - FederatedCredentialRequestOptions federated; -}; - -dictionary FederatedCredentialInit : CredentialData { - USVString name; - USVString iconURL; - required USVString origin; - required USVString provider; - DOMString protocol; -}; - -partial dictionary CredentialCreationOptions { - FederatedCredentialInit federated; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Credential Management Level 1 (https://w3c.github.io/webappsec-credential-management/) + +[Exposed=Window, SecureContext] +interface Credential { + readonly attribute USVString id; + readonly attribute DOMString type; +}; + +[SecureContext] +interface mixin CredentialUserData { + readonly attribute USVString name; + readonly attribute USVString iconURL; +}; + +partial interface Navigator { + [SecureContext, SameObject] readonly attribute CredentialsContainer credentials; +}; + +[Exposed=Window, SecureContext] +interface CredentialsContainer { + Promise get(optional CredentialRequestOptions options = {}); + Promise store(Credential credential); + Promise create(optional CredentialCreationOptions options = {}); + Promise preventSilentAccess(); +}; + +dictionary CredentialData { + required USVString id; +}; + +dictionary CredentialRequestOptions { + CredentialMediationRequirement mediation = "optional"; + AbortSignal signal; +}; + +enum CredentialMediationRequirement { + "silent", + "optional", + "required" +}; + +dictionary CredentialCreationOptions { + AbortSignal signal; +}; + +[Exposed=Window, + SecureContext] +interface PasswordCredential : Credential { + constructor(HTMLFormElement form); + constructor(PasswordCredentialData data); + readonly attribute USVString password; +}; +PasswordCredential includes CredentialUserData; + +partial dictionary CredentialRequestOptions { + boolean password = false; +}; + +dictionary PasswordCredentialData : CredentialData { + USVString name; + USVString iconURL; + required USVString origin; + required USVString password; +}; + +typedef (PasswordCredentialData or HTMLFormElement) PasswordCredentialInit; + +partial dictionary CredentialCreationOptions { + PasswordCredentialInit password; +}; + +[Exposed=Window, + SecureContext] +interface FederatedCredential : Credential { + constructor(FederatedCredentialInit data); + readonly attribute USVString provider; + readonly attribute DOMString? protocol; +}; +FederatedCredential includes CredentialUserData; + +dictionary FederatedCredentialRequestOptions { + sequence providers; + sequence protocols; +}; + +partial dictionary CredentialRequestOptions { + FederatedCredentialRequestOptions federated; +}; + +dictionary FederatedCredentialInit : CredentialData { + USVString name; + USVString iconURL; + required USVString origin; + required USVString provider; + DOMString protocol; +}; + +partial dictionary CredentialCreationOptions { + FederatedCredentialInit federated; +}; diff --git a/interfaces/csp-embedded-enforcement.idl b/interfaces/csp-embedded-enforcement.idl index a980630bc18c3dc..31662a2930851ec 100644 --- a/interfaces/csp-embedded-enforcement.idl +++ b/interfaces/csp-embedded-enforcement.idl @@ -1,8 +1,8 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: Content Security Policy: Embedded Enforcement (https://w3c.github.io/webappsec-cspee/) - -partial interface HTMLIFrameElement { - [CEReactions] attribute DOMString csp; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: Content Security Policy: Embedded Enforcement (https://w3c.github.io/webappsec-cspee/) + +partial interface HTMLIFrameElement { + [CEReactions] attribute DOMString csp; +}; diff --git a/interfaces/css-animation-worklet.idl b/interfaces/css-animation-worklet.idl index 82d34a3ea2a2daf..db5f17ba7e431cc 100644 --- a/interfaces/css-animation-worklet.idl +++ b/interfaces/css-animation-worklet.idl @@ -1,37 +1,37 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: CSS Animation Worklet API (https://drafts.css-houdini.org/css-animationworklet-1/) - -[Exposed=Window] -partial namespace CSS { - [SameObject] readonly attribute Worklet animationWorklet; -}; - -[ Global=(Worklet,AnimationWorklet), Exposed=AnimationWorklet ] -interface AnimationWorkletGlobalScope : WorkletGlobalScope { - undefined registerAnimator(DOMString name, AnimatorInstanceConstructor animatorCtor); -}; - -callback AnimatorInstanceConstructor = any (any options, optional any state); - -[ Exposed=AnimationWorklet ] -interface WorkletAnimationEffect { - EffectTiming getTiming(); - ComputedEffectTiming getComputedTiming(); - attribute double? localTime; -}; - -[Exposed=Window] -interface WorkletAnimation : Animation { - constructor(DOMString animatorName, - optional (AnimationEffect or sequence)? effects = null, - optional AnimationTimeline? timeline, - optional any options); - readonly attribute DOMString animatorName; -}; - -[Exposed=AnimationWorklet] -interface WorkletGroupEffect { - sequence getChildren(); -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: CSS Animation Worklet API (https://drafts.css-houdini.org/css-animationworklet-1/) + +[Exposed=Window] +partial namespace CSS { + [SameObject] readonly attribute Worklet animationWorklet; +}; + +[ Global=(Worklet,AnimationWorklet), Exposed=AnimationWorklet ] +interface AnimationWorkletGlobalScope : WorkletGlobalScope { + undefined registerAnimator(DOMString name, AnimatorInstanceConstructor animatorCtor); +}; + +callback AnimatorInstanceConstructor = any (any options, optional any state); + +[ Exposed=AnimationWorklet ] +interface WorkletAnimationEffect { + EffectTiming getTiming(); + ComputedEffectTiming getComputedTiming(); + attribute double? localTime; +}; + +[Exposed=Window] +interface WorkletAnimation : Animation { + constructor(DOMString animatorName, + optional (AnimationEffect or sequence)? effects = null, + optional AnimationTimeline? timeline, + optional any options); + readonly attribute DOMString animatorName; +}; + +[Exposed=AnimationWorklet] +interface WorkletGroupEffect { + sequence getChildren(); +}; diff --git a/interfaces/css-animations-2.idl b/interfaces/css-animations-2.idl index 84f138e8abbfdd4..3f0fb788e0c78d4 100644 --- a/interfaces/css-animations-2.idl +++ b/interfaces/css-animations-2.idl @@ -1,9 +1,9 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: CSS Animations Level 2 (https://drafts.csswg.org/css-animations-2/) - -[Exposed=Window] -interface CSSAnimation : Animation { - readonly attribute CSSOMString animationName; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: CSS Animations Level 2 (https://drafts.csswg.org/css-animations-2/) + +[Exposed=Window] +interface CSSAnimation : Animation { + readonly attribute CSSOMString animationName; +}; diff --git a/interfaces/css-animations.idl b/interfaces/css-animations.idl index 8185170943281bd..51d6d2d2da1847d 100644 --- a/interfaces/css-animations.idl +++ b/interfaces/css-animations.idl @@ -1,45 +1,45 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: CSS Animations Level 1 (https://drafts.csswg.org/css-animations/) - -[Exposed=Window] -interface AnimationEvent : Event { - constructor(CSSOMString type, optional AnimationEventInit animationEventInitDict = {}); - readonly attribute CSSOMString animationName; - readonly attribute double elapsedTime; - readonly attribute CSSOMString pseudoElement; -}; -dictionary AnimationEventInit : EventInit { - CSSOMString animationName = ""; - double elapsedTime = 0.0; - CSSOMString pseudoElement = ""; -}; - -partial interface CSSRule { - const unsigned short KEYFRAMES_RULE = 7; - const unsigned short KEYFRAME_RULE = 8; -}; - -[Exposed=Window] -interface CSSKeyframeRule : CSSRule { - attribute CSSOMString keyText; - [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style; -}; - -[Exposed=Window] -interface CSSKeyframesRule : CSSRule { - attribute CSSOMString name; - readonly attribute CSSRuleList cssRules; - - undefined appendRule(CSSOMString rule); - undefined deleteRule(CSSOMString select); - CSSKeyframeRule? findRule(CSSOMString select); -}; - -partial interface mixin GlobalEventHandlers { - attribute EventHandler onanimationstart; - attribute EventHandler onanimationiteration; - attribute EventHandler onanimationend; - attribute EventHandler onanimationcancel; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: CSS Animations Level 1 (https://drafts.csswg.org/css-animations/) + +[Exposed=Window] +interface AnimationEvent : Event { + constructor(CSSOMString type, optional AnimationEventInit animationEventInitDict = {}); + readonly attribute CSSOMString animationName; + readonly attribute double elapsedTime; + readonly attribute CSSOMString pseudoElement; +}; +dictionary AnimationEventInit : EventInit { + CSSOMString animationName = ""; + double elapsedTime = 0.0; + CSSOMString pseudoElement = ""; +}; + +partial interface CSSRule { + const unsigned short KEYFRAMES_RULE = 7; + const unsigned short KEYFRAME_RULE = 8; +}; + +[Exposed=Window] +interface CSSKeyframeRule : CSSRule { + attribute CSSOMString keyText; + [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style; +}; + +[Exposed=Window] +interface CSSKeyframesRule : CSSRule { + attribute CSSOMString name; + readonly attribute CSSRuleList cssRules; + + undefined appendRule(CSSOMString rule); + undefined deleteRule(CSSOMString select); + CSSKeyframeRule? findRule(CSSOMString select); +}; + +partial interface mixin GlobalEventHandlers { + attribute EventHandler onanimationstart; + attribute EventHandler onanimationiteration; + attribute EventHandler onanimationend; + attribute EventHandler onanimationcancel; +}; diff --git a/interfaces/css-conditional.idl b/interfaces/css-conditional.idl index 16f25583be97cfc..b5e05a0917f8d3d 100644 --- a/interfaces/css-conditional.idl +++ b/interfaces/css-conditional.idl @@ -1,27 +1,27 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: CSS Conditional Rules Module Level 3 (https://drafts.csswg.org/css-conditional-3/) - -partial interface CSSRule { - const unsigned short SUPPORTS_RULE = 12; -}; - -[Exposed=Window] -interface CSSConditionRule : CSSGroupingRule { - attribute CSSOMString conditionText; -}; - -[Exposed=Window] -interface CSSMediaRule : CSSConditionRule { - [SameObject, PutForwards=mediaText] readonly attribute MediaList media; -}; - -[Exposed=Window] -interface CSSSupportsRule : CSSConditionRule { -}; - -partial namespace CSS { - boolean supports(CSSOMString property, CSSOMString value); - boolean supports(CSSOMString conditionText); -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: CSS Conditional Rules Module Level 3 (https://drafts.csswg.org/css-conditional-3/) + +partial interface CSSRule { + const unsigned short SUPPORTS_RULE = 12; +}; + +[Exposed=Window] +interface CSSConditionRule : CSSGroupingRule { + attribute CSSOMString conditionText; +}; + +[Exposed=Window] +interface CSSMediaRule : CSSConditionRule { + [SameObject, PutForwards=mediaText] readonly attribute MediaList media; +}; + +[Exposed=Window] +interface CSSSupportsRule : CSSConditionRule { +}; + +partial namespace CSS { + boolean supports(CSSOMString property, CSSOMString value); + boolean supports(CSSOMString conditionText); +}; diff --git a/interfaces/css-counter-styles.idl b/interfaces/css-counter-styles.idl index 86c89e1eb2f8429..4d46f52f1ea7e80 100644 --- a/interfaces/css-counter-styles.idl +++ b/interfaces/css-counter-styles.idl @@ -1,23 +1,23 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: CSS Counter Styles Level 3 (https://drafts.csswg.org/css-counter-styles/) - -partial interface CSSRule { - const unsigned short COUNTER_STYLE_RULE = 11; -}; - -[Exposed=Window] -interface CSSCounterStyleRule : CSSRule { - attribute CSSOMString name; - attribute CSSOMString system; - attribute CSSOMString symbols; - attribute CSSOMString additiveSymbols; - attribute CSSOMString negative; - attribute CSSOMString prefix; - attribute CSSOMString suffix; - attribute CSSOMString range; - attribute CSSOMString pad; - attribute CSSOMString speakAs; - attribute CSSOMString fallback; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: CSS Counter Styles Level 3 (https://drafts.csswg.org/css-counter-styles/) + +partial interface CSSRule { + const unsigned short COUNTER_STYLE_RULE = 11; +}; + +[Exposed=Window] +interface CSSCounterStyleRule : CSSRule { + attribute CSSOMString name; + attribute CSSOMString system; + attribute CSSOMString symbols; + attribute CSSOMString additiveSymbols; + attribute CSSOMString negative; + attribute CSSOMString prefix; + attribute CSSOMString suffix; + attribute CSSOMString range; + attribute CSSOMString pad; + attribute CSSOMString speakAs; + attribute CSSOMString fallback; +}; diff --git a/interfaces/css-device-adapt.idl b/interfaces/css-device-adapt.idl index bfd4a6d247d4228..e9d400585554b9b 100644 --- a/interfaces/css-device-adapt.idl +++ b/interfaces/css-device-adapt.idl @@ -1,13 +1,13 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: CSS Device Adaptation Module Level 1 (https://drafts.csswg.org/css-device-adapt/) - -partial interface CSSRule { - const unsigned short VIEWPORT_RULE = 15; -}; - -[Exposed=Window] -interface CSSViewportRule : CSSRule { - readonly attribute CSSStyleDeclaration style; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: CSS Device Adaptation Module Level 1 (https://drafts.csswg.org/css-device-adapt/) + +partial interface CSSRule { + const unsigned short VIEWPORT_RULE = 15; +}; + +[Exposed=Window] +interface CSSViewportRule : CSSRule { + readonly attribute CSSStyleDeclaration style; +}; diff --git a/interfaces/css-font-loading.idl b/interfaces/css-font-loading.idl index 94e800030fe3be4..88d537e874d3c2a 100644 --- a/interfaces/css-font-loading.idl +++ b/interfaces/css-font-loading.idl @@ -1,94 +1,94 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: CSS Font Loading Module Level 3 (https://drafts.csswg.org/css-font-loading/) - -typedef (ArrayBuffer or ArrayBufferView) BinaryData; - -dictionary FontFaceDescriptors { - CSSOMString style = "normal"; - CSSOMString weight = "normal"; - CSSOMString stretch = "normal"; - CSSOMString unicodeRange = "U+0-10FFFF"; - CSSOMString variant = "normal"; - CSSOMString featureSettings = "normal"; - CSSOMString variationSettings = "normal"; - CSSOMString display = "auto"; - CSSOMString ascentOverride = "normal"; - CSSOMString descentOverride = "normal"; - CSSOMString lineGapOverride = "normal"; -}; - -enum FontFaceLoadStatus { "unloaded", "loading", "loaded", "error" }; - -[Exposed=(Window,Worker)] -interface FontFace { - constructor(CSSOMString family, (CSSOMString or BinaryData) source, - optional FontFaceDescriptors descriptors = {}); - attribute CSSOMString family; - attribute CSSOMString style; - attribute CSSOMString weight; - attribute CSSOMString stretch; - attribute CSSOMString unicodeRange; - attribute CSSOMString variant; - attribute CSSOMString featureSettings; - attribute CSSOMString variationSettings; - attribute CSSOMString display; - attribute CSSOMString ascentOverride; - attribute CSSOMString descentOverride; - attribute CSSOMString lineGapOverride; - - readonly attribute FontFaceLoadStatus status; - - Promise load(); - readonly attribute Promise loaded; -}; - -dictionary FontFaceSetLoadEventInit : EventInit { - sequence fontfaces = []; -}; - -[Exposed=(Window,Worker)] -interface FontFaceSetLoadEvent : Event { - constructor(CSSOMString type, optional FontFaceSetLoadEventInit eventInitDict = {}); - [SameObject] readonly attribute FrozenArray fontfaces; -}; - -enum FontFaceSetLoadStatus { "loading", "loaded" }; - -[Exposed=(Window,Worker)] -interface FontFaceSet : EventTarget { - constructor(sequence initialFaces); - - // FontFaceSet is Set-like! - setlike; - FontFaceSet add(FontFace font); - boolean delete(FontFace font); - undefined clear(); - - // events for when loading state changes - attribute EventHandler onloading; - attribute EventHandler onloadingdone; - attribute EventHandler onloadingerror; - - // check and start loads if appropriate - // and fulfill promise when all loads complete - Promise> load(CSSOMString font, optional CSSOMString text = " "); - - // return whether all fonts in the fontlist are loaded - // (does not initiate load if not available) - boolean check(CSSOMString font, optional CSSOMString text = " "); - - // async notification that font loading and layout operations are done - readonly attribute Promise ready; - - // loading state, "loading" while one or more fonts loading, "loaded" otherwise - readonly attribute FontFaceSetLoadStatus status; -}; - -interface mixin FontFaceSource { - readonly attribute FontFaceSet fonts; -}; - -Document includes FontFaceSource; -WorkerGlobalScope includes FontFaceSource; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: CSS Font Loading Module Level 3 (https://drafts.csswg.org/css-font-loading/) + +typedef (ArrayBuffer or ArrayBufferView) BinaryData; + +dictionary FontFaceDescriptors { + CSSOMString style = "normal"; + CSSOMString weight = "normal"; + CSSOMString stretch = "normal"; + CSSOMString unicodeRange = "U+0-10FFFF"; + CSSOMString variant = "normal"; + CSSOMString featureSettings = "normal"; + CSSOMString variationSettings = "normal"; + CSSOMString display = "auto"; + CSSOMString ascentOverride = "normal"; + CSSOMString descentOverride = "normal"; + CSSOMString lineGapOverride = "normal"; +}; + +enum FontFaceLoadStatus { "unloaded", "loading", "loaded", "error" }; + +[Exposed=(Window,Worker)] +interface FontFace { + constructor(CSSOMString family, (CSSOMString or BinaryData) source, + optional FontFaceDescriptors descriptors = {}); + attribute CSSOMString family; + attribute CSSOMString style; + attribute CSSOMString weight; + attribute CSSOMString stretch; + attribute CSSOMString unicodeRange; + attribute CSSOMString variant; + attribute CSSOMString featureSettings; + attribute CSSOMString variationSettings; + attribute CSSOMString display; + attribute CSSOMString ascentOverride; + attribute CSSOMString descentOverride; + attribute CSSOMString lineGapOverride; + + readonly attribute FontFaceLoadStatus status; + + Promise load(); + readonly attribute Promise loaded; +}; + +dictionary FontFaceSetLoadEventInit : EventInit { + sequence fontfaces = []; +}; + +[Exposed=(Window,Worker)] +interface FontFaceSetLoadEvent : Event { + constructor(CSSOMString type, optional FontFaceSetLoadEventInit eventInitDict = {}); + [SameObject] readonly attribute FrozenArray fontfaces; +}; + +enum FontFaceSetLoadStatus { "loading", "loaded" }; + +[Exposed=(Window,Worker)] +interface FontFaceSet : EventTarget { + constructor(sequence initialFaces); + + // FontFaceSet is Set-like! + setlike; + FontFaceSet add(FontFace font); + boolean delete(FontFace font); + undefined clear(); + + // events for when loading state changes + attribute EventHandler onloading; + attribute EventHandler onloadingdone; + attribute EventHandler onloadingerror; + + // check and start loads if appropriate + // and fulfill promise when all loads complete + Promise> load(CSSOMString font, optional CSSOMString text = " "); + + // return whether all fonts in the fontlist are loaded + // (does not initiate load if not available) + boolean check(CSSOMString font, optional CSSOMString text = " "); + + // async notification that font loading and layout operations are done + readonly attribute Promise ready; + + // loading state, "loading" while one or more fonts loading, "loaded" otherwise + readonly attribute FontFaceSetLoadStatus status; +}; + +interface mixin FontFaceSource { + readonly attribute FontFaceSet fonts; +}; + +Document includes FontFaceSource; +WorkerGlobalScope includes FontFaceSource; diff --git a/interfaces/css-fonts.idl b/interfaces/css-fonts.idl index 7282bffee8b3e01..b105fc5d563f160 100644 --- a/interfaces/css-fonts.idl +++ b/interfaces/css-fonts.idl @@ -1,39 +1,39 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: CSS Fonts Module Level 4 (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; -}; -[Exposed=Window] -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; -}; - -[Exposed=Window] -interface CSSFontFeatureValuesMap { - maplike>; - undefined set(CSSOMString featureValueName, - (unsigned long or sequence) values); -}; - -partial interface CSSRule { const unsigned short FONT_PALETTE_VALUES_RULE = 15; -}; - -[Exposed=Window] -interface CSSFontPaletteValuesRule : CSSRule { - maplike; - attribute CSSOMString fontFamily; - attribute CSSOMString basePalette; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: CSS Fonts Module Level 4 (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; +}; +[Exposed=Window] +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; +}; + +[Exposed=Window] +interface CSSFontFeatureValuesMap { + maplike>; + undefined set(CSSOMString featureValueName, + (unsigned long or sequence) values); +}; + +partial interface CSSRule { const unsigned short FONT_PALETTE_VALUES_RULE = 15; +}; + +[Exposed=Window] +interface CSSFontPaletteValuesRule : CSSRule { + maplike; + attribute CSSOMString fontFamily; + attribute CSSOMString basePalette; +}; diff --git a/interfaces/css-highlight-api.idl b/interfaces/css-highlight-api.idl index 56db8c35ac099bb..829effae894f8e7 100644 --- a/interfaces/css-highlight-api.idl +++ b/interfaces/css-highlight-api.idl @@ -1,20 +1,20 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: CSS Custom Highlight API Module Level 1 (https://drafts.csswg.org/css-highlight-api-1/) - -[Exposed=Window] -interface Highlight { - constructor(AbstractRange... initialRanges); - setlike; - attribute long priority; -}; - -partial namespace CSS { - readonly attribute HighlightRegistry highlights; -}; - -[Exposed=Window] -interface HighlightRegistry { - maplike; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: CSS Custom Highlight API Module Level 1 (https://drafts.csswg.org/css-highlight-api-1/) + +[Exposed=Window] +interface Highlight { + constructor(AbstractRange... initialRanges); + setlike; + attribute long priority; +}; + +partial namespace CSS { + readonly attribute HighlightRegistry highlights; +}; + +[Exposed=Window] +interface HighlightRegistry { + maplike; +}; diff --git a/interfaces/css-images-4.idl b/interfaces/css-images-4.idl index 8866b008ccbf7db..34b224755609cb0 100644 --- a/interfaces/css-images-4.idl +++ b/interfaces/css-images-4.idl @@ -1,8 +1,8 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: CSS Images Module Level 4 (https://drafts.csswg.org/css-images-4/) - -partial namespace CSS { - [SameObject] readonly attribute any elementSources; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: CSS Images Module Level 4 (https://drafts.csswg.org/css-images-4/) + +partial namespace CSS { + [SameObject] readonly attribute any elementSources; +}; diff --git a/interfaces/css-layout-api.idl b/interfaces/css-layout-api.idl index 2b772d5b84a4f23..0d634d34275d927 100644 --- a/interfaces/css-layout-api.idl +++ b/interfaces/css-layout-api.idl @@ -1,144 +1,144 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: CSS Layout API Level 1 (https://drafts.css-houdini.org/css-layout-api-1/) - -partial namespace CSS { - [SameObject] readonly attribute Worklet layoutWorklet; -}; - -[Global=(Worklet,LayoutWorklet),Exposed=LayoutWorklet] -interface LayoutWorkletGlobalScope : WorkletGlobalScope { - undefined registerLayout(DOMString name, VoidFunction layoutCtor); -}; - -dictionary LayoutOptions { - ChildDisplayType childDisplay = "block"; - LayoutSizingMode sizing = "block-like"; -}; - -enum ChildDisplayType { - "block", // default - "blockifies" the child boxes. - "normal", -}; - -enum LayoutSizingMode { - "block-like", // default - Sizing behaves like block containers. - "manual", // Sizing is specified by the web developer. -}; - -[Exposed=LayoutWorklet] -interface LayoutChild { - readonly attribute StylePropertyMapReadOnly styleMap; - - Promise intrinsicSizes(); - Promise layoutNextFragment(LayoutConstraintsOptions constraints, ChildBreakToken breakToken); -}; - -[Exposed=LayoutWorklet] -interface LayoutFragment { - readonly attribute double inlineSize; - readonly attribute double blockSize; - - attribute double inlineOffset; - attribute double blockOffset; - - readonly attribute any data; - - readonly attribute ChildBreakToken? breakToken; -}; - -[Exposed=LayoutWorklet] -interface IntrinsicSizes { - readonly attribute double minContentSize; - readonly attribute double maxContentSize; -}; - -[Exposed=LayoutWorklet] -interface LayoutConstraints { - readonly attribute double availableInlineSize; - readonly attribute double availableBlockSize; - - readonly attribute double? fixedInlineSize; - readonly attribute double? fixedBlockSize; - - readonly attribute double percentageInlineSize; - readonly attribute double percentageBlockSize; - - readonly attribute double? blockFragmentationOffset; - readonly attribute BlockFragmentationType blockFragmentationType; - - readonly attribute any data; -}; - -enum BlockFragmentationType { "none", "page", "column", "region" }; - -dictionary LayoutConstraintsOptions { - double availableInlineSize; - double availableBlockSize; - - double fixedInlineSize; - double fixedBlockSize; - - double percentageInlineSize; - double percentageBlockSize; - - double blockFragmentationOffset; - BlockFragmentationType blockFragmentationType = "none"; - - any data; -}; - -[Exposed=LayoutWorklet] -interface ChildBreakToken { - readonly attribute BreakType breakType; - readonly attribute LayoutChild child; -}; - -[Exposed=LayoutWorklet] -interface BreakToken { - readonly attribute FrozenArray childBreakTokens; - readonly attribute any data; -}; - -dictionary BreakTokenOptions { - sequence childBreakTokens; - any data = null; -}; - -enum BreakType { "none", "line", "column", "page", "region" }; - -[Exposed=LayoutWorklet] -interface LayoutEdges { - readonly attribute double inlineStart; - readonly attribute double inlineEnd; - - readonly attribute double blockStart; - readonly attribute double blockEnd; - - // Convenience attributes for the sum in one direction. - readonly attribute double inline; - readonly attribute double block; -}; - -// This is the final return value from the author defined layout() method. -dictionary FragmentResultOptions { - double inlineSize = 0; - double blockSize = 0; - double autoBlockSize = 0; - sequence childFragments = []; - any data = null; - BreakTokenOptions breakToken = null; -}; - -[Exposed=LayoutWorklet] -interface FragmentResult { - constructor(optional FragmentResultOptions options = {}); - readonly attribute double inlineSize; - readonly attribute double blockSize; -}; - -dictionary IntrinsicSizesResultOptions { - double maxContentSize; - double minContentSize; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: CSS Layout API Level 1 (https://drafts.css-houdini.org/css-layout-api-1/) + +partial namespace CSS { + [SameObject] readonly attribute Worklet layoutWorklet; +}; + +[Global=(Worklet,LayoutWorklet),Exposed=LayoutWorklet] +interface LayoutWorkletGlobalScope : WorkletGlobalScope { + undefined registerLayout(DOMString name, VoidFunction layoutCtor); +}; + +dictionary LayoutOptions { + ChildDisplayType childDisplay = "block"; + LayoutSizingMode sizing = "block-like"; +}; + +enum ChildDisplayType { + "block", // default - "blockifies" the child boxes. + "normal", +}; + +enum LayoutSizingMode { + "block-like", // default - Sizing behaves like block containers. + "manual", // Sizing is specified by the web developer. +}; + +[Exposed=LayoutWorklet] +interface LayoutChild { + readonly attribute StylePropertyMapReadOnly styleMap; + + Promise intrinsicSizes(); + Promise layoutNextFragment(LayoutConstraintsOptions constraints, ChildBreakToken breakToken); +}; + +[Exposed=LayoutWorklet] +interface LayoutFragment { + readonly attribute double inlineSize; + readonly attribute double blockSize; + + attribute double inlineOffset; + attribute double blockOffset; + + readonly attribute any data; + + readonly attribute ChildBreakToken? breakToken; +}; + +[Exposed=LayoutWorklet] +interface IntrinsicSizes { + readonly attribute double minContentSize; + readonly attribute double maxContentSize; +}; + +[Exposed=LayoutWorklet] +interface LayoutConstraints { + readonly attribute double availableInlineSize; + readonly attribute double availableBlockSize; + + readonly attribute double? fixedInlineSize; + readonly attribute double? fixedBlockSize; + + readonly attribute double percentageInlineSize; + readonly attribute double percentageBlockSize; + + readonly attribute double? blockFragmentationOffset; + readonly attribute BlockFragmentationType blockFragmentationType; + + readonly attribute any data; +}; + +enum BlockFragmentationType { "none", "page", "column", "region" }; + +dictionary LayoutConstraintsOptions { + double availableInlineSize; + double availableBlockSize; + + double fixedInlineSize; + double fixedBlockSize; + + double percentageInlineSize; + double percentageBlockSize; + + double blockFragmentationOffset; + BlockFragmentationType blockFragmentationType = "none"; + + any data; +}; + +[Exposed=LayoutWorklet] +interface ChildBreakToken { + readonly attribute BreakType breakType; + readonly attribute LayoutChild child; +}; + +[Exposed=LayoutWorklet] +interface BreakToken { + readonly attribute FrozenArray childBreakTokens; + readonly attribute any data; +}; + +dictionary BreakTokenOptions { + sequence childBreakTokens; + any data = null; +}; + +enum BreakType { "none", "line", "column", "page", "region" }; + +[Exposed=LayoutWorklet] +interface LayoutEdges { + readonly attribute double inlineStart; + readonly attribute double inlineEnd; + + readonly attribute double blockStart; + readonly attribute double blockEnd; + + // Convenience attributes for the sum in one direction. + readonly attribute double inline; + readonly attribute double block; +}; + +// This is the final return value from the author defined layout() method. +dictionary FragmentResultOptions { + double inlineSize = 0; + double blockSize = 0; + double autoBlockSize = 0; + sequence childFragments = []; + any data = null; + BreakTokenOptions breakToken = null; +}; + +[Exposed=LayoutWorklet] +interface FragmentResult { + constructor(optional FragmentResultOptions options = {}); + readonly attribute double inlineSize; + readonly attribute double blockSize; +}; + +dictionary IntrinsicSizesResultOptions { + double maxContentSize; + double minContentSize; +}; diff --git a/interfaces/css-masking.idl b/interfaces/css-masking.idl index 72fbd9aa1ffb576..1ee122ec78c646f 100644 --- a/interfaces/css-masking.idl +++ b/interfaces/css-masking.idl @@ -1,20 +1,20 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: CSS Masking Module Level 1 (https://drafts.fxtf.org/css-masking-1/) - -[Exposed=Window] -interface SVGClipPathElement : SVGElement { - readonly attribute SVGAnimatedEnumeration clipPathUnits; - readonly attribute SVGAnimatedTransformList transform; -}; - -[Exposed=Window] -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; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: CSS Masking Module Level 1 (https://drafts.fxtf.org/css-masking-1/) + +[Exposed=Window] +interface SVGClipPathElement : SVGElement { + readonly attribute SVGAnimatedEnumeration clipPathUnits; + readonly attribute SVGAnimatedTransformList transform; +}; + +[Exposed=Window] +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; +}; diff --git a/interfaces/css-nav.idl b/interfaces/css-nav.idl index 03f039e4cb54f5f..2a08bcd60e9bb47 100644 --- a/interfaces/css-nav.idl +++ b/interfaces/css-nav.idl @@ -1,48 +1,48 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: CSS Spatial Navigation Level 1 (https://drafts.csswg.org/css-nav-1/) - -enum SpatialNavigationDirection { - "up", - "down", - "left", - "right", -}; - -partial interface Window { - undefined navigate(SpatialNavigationDirection dir); -}; - -enum FocusableAreaSearchMode { - "visible", - "all" -}; - -dictionary FocusableAreasOption { - FocusableAreaSearchMode mode; -}; - -dictionary SpatialNavigationSearchOptions { - sequence? candidates; - Node? container; -}; - -partial interface Element { - Node getSpatialNavigationContainer(); - sequence focusableAreas(optional FocusableAreasOption option = {}); - Node? spatialNavigationSearch(SpatialNavigationDirection dir, optional SpatialNavigationSearchOptions options = {}); -}; - -[Exposed=Window] -interface NavigationEvent : UIEvent { - constructor(DOMString type, - optional NavigationEventInit eventInitDict = {}); - readonly attribute SpatialNavigationDirection dir; - readonly attribute EventTarget? relatedTarget; -}; - -dictionary NavigationEventInit : UIEventInit { - SpatialNavigationDirection dir; - EventTarget? relatedTarget = null; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: CSS Spatial Navigation Level 1 (https://drafts.csswg.org/css-nav-1/) + +enum SpatialNavigationDirection { + "up", + "down", + "left", + "right", +}; + +partial interface Window { + undefined navigate(SpatialNavigationDirection dir); +}; + +enum FocusableAreaSearchMode { + "visible", + "all" +}; + +dictionary FocusableAreasOption { + FocusableAreaSearchMode mode; +}; + +dictionary SpatialNavigationSearchOptions { + sequence? candidates; + Node? container; +}; + +partial interface Element { + Node getSpatialNavigationContainer(); + sequence focusableAreas(optional FocusableAreasOption option = {}); + Node? spatialNavigationSearch(SpatialNavigationDirection dir, optional SpatialNavigationSearchOptions options = {}); +}; + +[Exposed=Window] +interface NavigationEvent : UIEvent { + constructor(DOMString type, + optional NavigationEventInit eventInitDict = {}); + readonly attribute SpatialNavigationDirection dir; + readonly attribute EventTarget? relatedTarget; +}; + +dictionary NavigationEventInit : UIEventInit { + SpatialNavigationDirection dir; + EventTarget? relatedTarget = null; +}; diff --git a/interfaces/css-nesting.idl b/interfaces/css-nesting.idl index 25afacbcc36f45f..8cfce23f110df69 100644 --- a/interfaces/css-nesting.idl +++ b/interfaces/css-nesting.idl @@ -1,19 +1,19 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: CSS Nesting Module (https://drafts.csswg.org/css-nesting-1/) - -partial interface CSSStyleRule { - [SameObject] readonly attribute CSSRuleList cssRules; - unsigned long insertRule(CSSOMString rule, optional unsigned long index = 0); - undefined deleteRule(unsigned long index); -}; - -[Exposed=Window] -interface CSSNestingRule : CSSRule { - attribute CSSOMString selectorText; - [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style; - [SameObject] readonly attribute CSSRuleList cssRules; - unsigned long insertRule(CSSOMString rule, optional unsigned long index = 0); - undefined deleteRule(unsigned long index); -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: CSS Nesting Module (https://drafts.csswg.org/css-nesting-1/) + +partial interface CSSStyleRule { + [SameObject] readonly attribute CSSRuleList cssRules; + unsigned long insertRule(CSSOMString rule, optional unsigned long index = 0); + undefined deleteRule(unsigned long index); +}; + +[Exposed=Window] +interface CSSNestingRule : CSSRule { + attribute CSSOMString selectorText; + [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style; + [SameObject] readonly attribute CSSRuleList cssRules; + unsigned long insertRule(CSSOMString rule, optional unsigned long index = 0); + undefined deleteRule(unsigned long index); +}; diff --git a/interfaces/css-paint-api.idl b/interfaces/css-paint-api.idl index 0924c535566779e..9c52854191399c9 100644 --- a/interfaces/css-paint-api.idl +++ b/interfaces/css-paint-api.idl @@ -1,39 +1,39 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: CSS Painting API Level 1 (https://drafts.css-houdini.org/css-paint-api-1/) - -partial namespace CSS { - [SameObject] readonly attribute Worklet paintWorklet; -}; - -[Global=(Worklet,PaintWorklet),Exposed=PaintWorklet] -interface PaintWorkletGlobalScope : WorkletGlobalScope { - undefined registerPaint(DOMString name, VoidFunction paintCtor); - readonly attribute unrestricted double devicePixelRatio; -}; - -dictionary PaintRenderingContext2DSettings { - boolean alpha = true; -}; - -[Exposed=PaintWorklet] -interface PaintRenderingContext2D { -}; -PaintRenderingContext2D includes CanvasState; -PaintRenderingContext2D includes CanvasTransform; -PaintRenderingContext2D includes CanvasCompositing; -PaintRenderingContext2D includes CanvasImageSmoothing; -PaintRenderingContext2D includes CanvasFillStrokeStyles; -PaintRenderingContext2D includes CanvasShadowStyles; -PaintRenderingContext2D includes CanvasRect; -PaintRenderingContext2D includes CanvasDrawPath; -PaintRenderingContext2D includes CanvasDrawImage; -PaintRenderingContext2D includes CanvasPathDrawingStyles; -PaintRenderingContext2D includes CanvasPath; - -[Exposed=PaintWorklet] -interface PaintSize { - readonly attribute double width; - readonly attribute double height; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: CSS Painting API Level 1 (https://drafts.css-houdini.org/css-paint-api-1/) + +partial namespace CSS { + [SameObject] readonly attribute Worklet paintWorklet; +}; + +[Global=(Worklet,PaintWorklet),Exposed=PaintWorklet] +interface PaintWorkletGlobalScope : WorkletGlobalScope { + undefined registerPaint(DOMString name, VoidFunction paintCtor); + readonly attribute unrestricted double devicePixelRatio; +}; + +dictionary PaintRenderingContext2DSettings { + boolean alpha = true; +}; + +[Exposed=PaintWorklet] +interface PaintRenderingContext2D { +}; +PaintRenderingContext2D includes CanvasState; +PaintRenderingContext2D includes CanvasTransform; +PaintRenderingContext2D includes CanvasCompositing; +PaintRenderingContext2D includes CanvasImageSmoothing; +PaintRenderingContext2D includes CanvasFillStrokeStyles; +PaintRenderingContext2D includes CanvasShadowStyles; +PaintRenderingContext2D includes CanvasRect; +PaintRenderingContext2D includes CanvasDrawPath; +PaintRenderingContext2D includes CanvasDrawImage; +PaintRenderingContext2D includes CanvasPathDrawingStyles; +PaintRenderingContext2D includes CanvasPath; + +[Exposed=PaintWorklet] +interface PaintSize { + readonly attribute double width; + readonly attribute double height; +}; diff --git a/interfaces/css-parser-api.idl b/interfaces/css-parser-api.idl index 4e34a3f25d7022b..2d39e25abb219b1 100644 --- a/interfaces/css-parser-api.idl +++ b/interfaces/css-parser-api.idl @@ -1,76 +1,76 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: CSS Parser API (https://wicg.github.io/css-parser-api/) - -typedef (DOMString or ReadableStream) CSSStringSource; -typedef (DOMString or CSSStyleValue or CSSParserValue) CSSToken; - -partial namespace CSS { - Promise> parseStylesheet(CSSStringSource css, optional CSSParserOptions options = {}); - Promise> parseRuleList(CSSStringSource css, optional CSSParserOptions options = {}); - Promise parseRule(CSSStringSource css, optional CSSParserOptions options = {}); - Promise> parseDeclarationList(CSSStringSource css, optional CSSParserOptions options = {}); - CSSParserDeclaration parseDeclaration(DOMString css, optional CSSParserOptions options = {}); - CSSToken parseValue(DOMString css); - sequence parseValueList(DOMString css); - sequence> parseCommaValueList(DOMString css); -}; - -dictionary CSSParserOptions { - object atRules; - /* dict of at-rule name => at-rule type - (contains decls or contains qualified rules) */ -}; - -[Exposed=Window] -interface CSSParserRule { - /* Just a superclass. */ -}; - -[Exposed=Window] -interface CSSParserAtRule : CSSParserRule { - constructor(DOMString name, sequence prelude, optional sequence? body); - readonly attribute DOMString name; - readonly attribute FrozenArray prelude; - readonly attribute FrozenArray? body; - /* nullable to handle at-statements */ - stringifier; -}; - -[Exposed=Window] -interface CSSParserQualifiedRule : CSSParserRule { - constructor(sequence prelude, optional sequence? body); - readonly attribute FrozenArray prelude; - readonly attribute FrozenArray body; - stringifier; -}; - -[Exposed=Window] -interface CSSParserDeclaration : CSSParserRule { - constructor(DOMString name, optional sequence body); - readonly attribute DOMString name; - readonly attribute FrozenArray body; - stringifier; -}; - -[Exposed=Window] -interface CSSParserValue { - /* Just a superclass. */ -}; - -[Exposed=Window] -interface CSSParserBlock : CSSParserValue { - constructor(DOMString name, sequence body); - readonly attribute DOMString name; /* "[]", "{}", or "()" */ - readonly attribute FrozenArray body; - stringifier; -}; - -[Exposed=Window] -interface CSSParserFunction : CSSParserValue { - constructor(DOMString name, sequence> args); - readonly attribute DOMString name; - readonly attribute FrozenArray> args; - stringifier; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: CSS Parser API (https://wicg.github.io/css-parser-api/) + +typedef (DOMString or ReadableStream) CSSStringSource; +typedef (DOMString or CSSStyleValue or CSSParserValue) CSSToken; + +partial namespace CSS { + Promise> parseStylesheet(CSSStringSource css, optional CSSParserOptions options = {}); + Promise> parseRuleList(CSSStringSource css, optional CSSParserOptions options = {}); + Promise parseRule(CSSStringSource css, optional CSSParserOptions options = {}); + Promise> parseDeclarationList(CSSStringSource css, optional CSSParserOptions options = {}); + CSSParserDeclaration parseDeclaration(DOMString css, optional CSSParserOptions options = {}); + CSSToken parseValue(DOMString css); + sequence parseValueList(DOMString css); + sequence> parseCommaValueList(DOMString css); +}; + +dictionary CSSParserOptions { + object atRules; + /* dict of at-rule name => at-rule type + (contains decls or contains qualified rules) */ +}; + +[Exposed=Window] +interface CSSParserRule { + /* Just a superclass. */ +}; + +[Exposed=Window] +interface CSSParserAtRule : CSSParserRule { + constructor(DOMString name, sequence prelude, optional sequence? body); + readonly attribute DOMString name; + readonly attribute FrozenArray prelude; + readonly attribute FrozenArray? body; + /* nullable to handle at-statements */ + stringifier; +}; + +[Exposed=Window] +interface CSSParserQualifiedRule : CSSParserRule { + constructor(sequence prelude, optional sequence? body); + readonly attribute FrozenArray prelude; + readonly attribute FrozenArray body; + stringifier; +}; + +[Exposed=Window] +interface CSSParserDeclaration : CSSParserRule { + constructor(DOMString name, optional sequence body); + readonly attribute DOMString name; + readonly attribute FrozenArray body; + stringifier; +}; + +[Exposed=Window] +interface CSSParserValue { + /* Just a superclass. */ +}; + +[Exposed=Window] +interface CSSParserBlock : CSSParserValue { + constructor(DOMString name, sequence body); + readonly attribute DOMString name; /* "[]", "{}", or "()" */ + readonly attribute FrozenArray body; + stringifier; +}; + +[Exposed=Window] +interface CSSParserFunction : CSSParserValue { + constructor(DOMString name, sequence> args); + readonly attribute DOMString name; + readonly attribute FrozenArray> args; + stringifier; +}; diff --git a/interfaces/css-properties-values-api.idl b/interfaces/css-properties-values-api.idl index eb7d7b027e72d93..55e4f6a5859792d 100644 --- a/interfaces/css-properties-values-api.idl +++ b/interfaces/css-properties-values-api.idl @@ -1,23 +1,23 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: CSS Properties and Values API Level 1 (https://drafts.css-houdini.org/css-properties-values-api-1/) - -dictionary PropertyDefinition { - required DOMString name; - DOMString syntax = "*"; - required boolean inherits; - DOMString initialValue; -}; - -partial namespace CSS { - undefined registerProperty(PropertyDefinition definition); -}; - -[Exposed=Window] -interface CSSPropertyRule : CSSRule { - readonly attribute CSSOMString name; - readonly attribute CSSOMString syntax; - readonly attribute boolean inherits; - readonly attribute CSSOMString? initialValue; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: CSS Properties and Values API Level 1 (https://drafts.css-houdini.org/css-properties-values-api-1/) + +dictionary PropertyDefinition { + required DOMString name; + DOMString syntax = "*"; + required boolean inherits; + DOMString initialValue; +}; + +partial namespace CSS { + undefined registerProperty(PropertyDefinition definition); +}; + +[Exposed=Window] +interface CSSPropertyRule : CSSRule { + readonly attribute CSSOMString name; + readonly attribute CSSOMString syntax; + readonly attribute boolean inherits; + readonly attribute CSSOMString? initialValue; +}; diff --git a/interfaces/css-pseudo.idl b/interfaces/css-pseudo.idl index 2c90ff2b3174eea..19521c1c61745d3 100644 --- a/interfaces/css-pseudo.idl +++ b/interfaces/css-pseudo.idl @@ -1,14 +1,14 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: CSS Pseudo-Elements Module Level 4 (https://drafts.csswg.org/css-pseudo-4/) - -[Exposed=Window] -interface CSSPseudoElement : EventTarget { - readonly attribute CSSOMString type; - readonly attribute Element element; -}; - -partial interface Element { - CSSPseudoElement? pseudo(CSSOMString type); -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: CSS Pseudo-Elements Module Level 4 (https://drafts.csswg.org/css-pseudo-4/) + +[Exposed=Window] +interface CSSPseudoElement : EventTarget { + readonly attribute CSSOMString type; + readonly attribute Element element; +}; + +partial interface Element { + CSSPseudoElement? pseudo(CSSOMString type); +}; diff --git a/interfaces/css-regions.idl b/interfaces/css-regions.idl index 7d615fcead2c601..86d1c9d549157cd 100644 --- a/interfaces/css-regions.idl +++ b/interfaces/css-regions.idl @@ -1,29 +1,29 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: CSS Regions Module Level 1 (https://drafts.csswg.org/css-regions/) - -partial interface Document { - readonly attribute NamedFlowMap namedFlows; -}; - -[Exposed=Window] interface NamedFlowMap { - maplike; -}; - -[Exposed=Window] -interface NamedFlow : EventTarget { - readonly attribute CSSOMString name; - readonly attribute boolean overset; - sequence getRegions(); - readonly attribute short firstEmptyRegionIndex; - sequence getContent(); - sequence getRegionsByContent(Node node); -}; - -interface mixin Region { - readonly attribute CSSOMString regionOverset; - sequence? getRegionFlowRanges(); -}; - -Element includes Region; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: CSS Regions Module Level 1 (https://drafts.csswg.org/css-regions/) + +partial interface Document { + readonly attribute NamedFlowMap namedFlows; +}; + +[Exposed=Window] interface NamedFlowMap { + maplike; +}; + +[Exposed=Window] +interface NamedFlow : EventTarget { + readonly attribute CSSOMString name; + readonly attribute boolean overset; + sequence getRegions(); + readonly attribute short firstEmptyRegionIndex; + sequence getContent(); + sequence getRegionsByContent(Node node); +}; + +interface mixin Region { + readonly attribute CSSOMString regionOverset; + sequence? getRegionFlowRanges(); +}; + +Element includes Region; diff --git a/interfaces/css-shadow-parts.idl b/interfaces/css-shadow-parts.idl index b7ad99671ad9031..317d009a68fbab1 100644 --- a/interfaces/css-shadow-parts.idl +++ b/interfaces/css-shadow-parts.idl @@ -1,8 +1,8 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: CSS Shadow Parts (https://drafts.csswg.org/css-shadow-parts/) - -partial interface Element { - [SameObject, PutForwards=value] readonly attribute DOMTokenList part; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: CSS Shadow Parts (https://drafts.csswg.org/css-shadow-parts/) + +partial interface Element { + [SameObject, PutForwards=value] readonly attribute DOMTokenList part; +}; diff --git a/interfaces/css-transitions-2.idl b/interfaces/css-transitions-2.idl index 9d06f3cf260ae5c..f8b6a4c91430181 100644 --- a/interfaces/css-transitions-2.idl +++ b/interfaces/css-transitions-2.idl @@ -1,9 +1,9 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: CSS Transitions Level 2 (https://drafts.csswg.org/css-transitions-2/) - -[Exposed=Window] -interface CSSTransition : Animation { - readonly attribute CSSOMString transitionProperty; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: CSS Transitions Level 2 (https://drafts.csswg.org/css-transitions-2/) + +[Exposed=Window] +interface CSSTransition : Animation { + readonly attribute CSSOMString transitionProperty; +}; diff --git a/interfaces/css-transitions.idl b/interfaces/css-transitions.idl index 174bf209f131ec9..c53784df784a1c3 100644 --- a/interfaces/css-transitions.idl +++ b/interfaces/css-transitions.idl @@ -1,25 +1,25 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: CSS Transitions (https://drafts.csswg.org/css-transitions/) - -[Exposed=Window] -interface TransitionEvent : Event { - constructor(CSSOMString type, optional TransitionEventInit transitionEventInitDict = {}); - readonly attribute CSSOMString propertyName; - readonly attribute double elapsedTime; - readonly attribute CSSOMString pseudoElement; -}; - -dictionary TransitionEventInit : EventInit { - CSSOMString propertyName = ""; - double elapsedTime = 0.0; - CSSOMString pseudoElement = ""; -}; - -partial interface mixin GlobalEventHandlers { - attribute EventHandler ontransitionrun; - attribute EventHandler ontransitionstart; - attribute EventHandler ontransitionend; - attribute EventHandler ontransitioncancel; -}; +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into webref +// (https://github.com/w3c/webref) +// Source: CSS Transitions (https://drafts.csswg.org/css-transitions/) + +[Exposed=Window] +interface TransitionEvent : Event { + constructor(CSSOMString type, optional TransitionEventInit transitionEventInitDict = {}); + readonly attribute CSSOMString propertyName; + readonly attribute double elapsedTime; + readonly attribute CSSOMString pseudoElement; +}; + +dictionary TransitionEventInit : EventInit { + CSSOMString propertyName = ""; + double elapsedTime = 0.0; + CSSOMString pseudoElement = ""; +}; + +partial interface mixin GlobalEventHandlers { + attribute EventHandler ontransitionrun; + attribute EventHandler ontransitionstart; + attribute EventHandler ontransitionend; + attribute EventHandler ontransitioncancel; +}; diff --git a/interfaces/css-typed-om.idl b/interfaces/css-typed-om.idl index 262d2884e8379aa..bac2bebd936a19f 100644 --- a/interfaces/css-typed-om.idl +++ b/interfaces/css-typed-om.idl @@ -1,387 +1,387 @@ -// GENERATED CONTENT - DO NOT EDIT -// Content was automatically extracted by Reffy into webref -// (https://github.com/w3c/webref) -// Source: CSS Typed OM Level 1 (https://drafts.css-houdini.org/css-typed-om-1/) - -[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] -interface CSSStyleValue { - stringifier; - [Exposed=Window] static CSSStyleValue parse(USVString property, USVString cssText); - [Exposed=Window] static sequence parseAll(USVString property, USVString cssText); -}; - -[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] -interface StylePropertyMapReadOnly { - iterable>; - any get(USVString property); - /* 'any' means (undefined or CSSStyleValue) here, - see https://github.com/heycam/webidl/issues/60 */ - sequence getAll(USVString property); - boolean has(USVString property); - readonly attribute unsigned long size; -}; - -[Exposed=Window] -interface StylePropertyMap : StylePropertyMapReadOnly { - undefined set(USVString property, (CSSStyleValue or USVString)... values); - undefined append(USVString property, (CSSStyleValue or USVString)... values); - undefined delete(USVString property); - undefined clear(); -}; - -partial interface Element { - [SameObject] StylePropertyMapReadOnly computedStyleMap(); -}; - -partial interface CSSStyleRule { - [SameObject] readonly attribute StylePropertyMap styleMap; -}; - -partial interface mixin ElementCSSInlineStyle { - [SameObject] readonly attribute StylePropertyMap attributeStyleMap; -}; - -[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] -interface CSSUnparsedValue : CSSStyleValue { - constructor(sequence members); - iterable; - readonly attribute unsigned long length; - getter CSSUnparsedSegment (unsigned long index); - setter CSSUnparsedSegment (unsigned long index, CSSUnparsedSegment val); -}; - -typedef (USVString or CSSVariableReferenceValue) CSSUnparsedSegment; - -[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] -interface CSSVariableReferenceValue { - constructor(USVString variable, optional CSSUnparsedValue? fallback = null); - attribute USVString variable; - readonly attribute CSSUnparsedValue? fallback; -}; - -[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] -interface CSSKeywordValue : CSSStyleValue { - constructor(USVString value); - attribute USVString value; -}; - -typedef (DOMString or CSSKeywordValue) CSSKeywordish; - -typedef (double or CSSNumericValue) CSSNumberish; - -enum CSSNumericBaseType { - "length", - "angle", - "time", - "frequency", - "resolution", - "flex", - "percent", -}; - -dictionary CSSNumericType { - long length; - long angle; - long time; - long frequency; - long resolution; - long flex; - long percent; - CSSNumericBaseType percentHint; -}; - -[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] -interface CSSNumericValue : CSSStyleValue { - CSSNumericValue add(CSSNumberish... values); - CSSNumericValue sub(CSSNumberish... values); - CSSNumericValue mul(CSSNumberish... values); - CSSNumericValue div(CSSNumberish... values); - CSSNumericValue min(CSSNumberish... values); - CSSNumericValue max(CSSNumberish... values); - - boolean equals(CSSNumberish... value); - - CSSUnitValue to(USVString unit); - CSSMathSum toSum(USVString... units); - CSSNumericType type(); - - [Exposed=Window] static CSSNumericValue parse(USVString cssText); -}; - -[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] -interface CSSUnitValue : CSSNumericValue { - constructor(double value, USVString unit); - attribute double value; - readonly attribute USVString unit; -}; - -[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] -interface CSSMathValue : CSSNumericValue { - readonly attribute CSSMathOperator operator; -}; - -[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] -interface CSSMathSum : CSSMathValue { - constructor(CSSNumberish... args); - readonly attribute CSSNumericArray values; -}; - -[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] -interface CSSMathProduct : CSSMathValue { - constructor(CSSNumberish... args); - readonly attribute CSSNumericArray values; -}; - -[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] -interface CSSMathNegate : CSSMathValue { - constructor(CSSNumberish arg); - readonly attribute CSSNumericValue value; -}; - -[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] -interface CSSMathInvert : CSSMathValue { - constructor(CSSNumberish arg); - readonly attribute CSSNumericValue value; -}; - -[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] -interface CSSMathMin : CSSMathValue { - constructor(CSSNumberish... args); - readonly attribute CSSNumericArray values; -}; - -[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] -interface CSSMathMax : CSSMathValue { - constructor(CSSNumberish... args); - readonly attribute CSSNumericArray values; -}; - -[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] -interface CSSMathClamp : CSSMathValue { - constructor(CSSNumberish min, CSSNumberish val, CSSNumberish max); - readonly attribute CSSNumericValue min; - readonly attribute CSSNumericValue val; - readonly attribute CSSNumericValue max; -}; - -[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] -interface CSSNumericArray { - iterable; - readonly attribute unsigned long length; - getter CSSNumericValue (unsigned long index); -}; - -enum CSSMathOperator { - "sum", - "product", - "negate", - "invert", - "min", - "max", - "clamp", -}; - -partial namespace CSS { - CSSUnitValue number(double value); - CSSUnitValue percent(double value); - - // - CSSUnitValue em(double value); - CSSUnitValue ex(double value); - CSSUnitValue ch(double value); - CSSUnitValue ic(double value); - CSSUnitValue rem(double value); - CSSUnitValue lh(double value); - CSSUnitValue rlh(double value); - CSSUnitValue vw(double value); - CSSUnitValue vh(double value); - CSSUnitValue vi(double value); - CSSUnitValue vb(double value); - CSSUnitValue vmin(double value); - CSSUnitValue vmax(double value); - CSSUnitValue cm(double value); - CSSUnitValue mm(double value); - CSSUnitValue Q(double value); - CSSUnitValue in(double value); - CSSUnitValue pt(double value); - CSSUnitValue pc(double value); - CSSUnitValue px(double value); - - // - CSSUnitValue deg(double value); - CSSUnitValue grad(double value); - CSSUnitValue rad(double value); - CSSUnitValue turn(double value); - - //