@webref/idl 3.67.1 → 3.68.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/SVG.idl CHANGED
@@ -179,7 +179,7 @@ interface SVGAnimatedAngle {
179
179
 
180
180
  [Exposed=Window]
181
181
  interface SVGAnimatedString {
182
- attribute DOMString baseVal;
182
+ attribute (DOMString or TrustedScriptURL) baseVal;
183
183
  readonly attribute DOMString animVal;
184
184
  };
185
185
 
@@ -245,16 +245,16 @@ interface SVGSVGElement : SVGGraphicsElement {
245
245
 
246
246
  undefined deselectAll();
247
247
 
248
- SVGNumber createSVGNumber();
249
- SVGLength createSVGLength();
250
- SVGAngle createSVGAngle();
251
- DOMPoint createSVGPoint();
252
- DOMMatrix createSVGMatrix();
253
- DOMRect createSVGRect();
254
- SVGTransform createSVGTransform();
255
- SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix = {});
248
+ [NewObject] SVGNumber createSVGNumber();
249
+ [NewObject] SVGLength createSVGLength();
250
+ [NewObject] SVGAngle createSVGAngle();
251
+ [NewObject] DOMPoint createSVGPoint();
252
+ [NewObject] DOMMatrix createSVGMatrix();
253
+ [NewObject] DOMRect createSVGRect();
254
+ [NewObject] SVGTransform createSVGTransform();
255
+ [NewObject] SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix = {});
256
256
 
257
- Element getElementById(DOMString elementId);
257
+ Element? getElementById(DOMString elementId);
258
258
 
259
259
  // Deprecated methods that have no effect when called,
260
260
  // but which are kept for compatibility reasons.
@@ -333,6 +333,7 @@ interface SVGStyleElement : SVGElement {
333
333
  attribute DOMString type;
334
334
  attribute DOMString media;
335
335
  attribute DOMString title;
336
+ attribute boolean disabled;
336
337
  };
337
338
 
338
339
  SVGStyleElement includes LinkStyle;
@@ -575,6 +576,7 @@ interface SVGMarkerElement : SVGElement {
575
576
  const unsigned short SVG_MARKER_ORIENT_UNKNOWN = 0;
576
577
  const unsigned short SVG_MARKER_ORIENT_AUTO = 1;
577
578
  const unsigned short SVG_MARKER_ORIENT_ANGLE = 2;
579
+ const unsigned short SVG_MARKER_ORIENT_AUTO_START_REVERSE = 3;
578
580
 
579
581
  [SameObject] readonly attribute SVGAnimatedLength refX;
580
582
  [SameObject] readonly attribute SVGAnimatedLength refY;
@@ -662,8 +664,6 @@ interface SVGAElement : SVGGraphicsElement {
662
664
  attribute DOMString hreflang;
663
665
  attribute DOMString type;
664
666
 
665
- attribute DOMString text;
666
-
667
667
  attribute DOMString referrerPolicy;
668
668
  };
669
669
 
@@ -0,0 +1,107 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: WebXR Body Tracking Module - Level 1 (https://immersive-web.github.io/body-tracking/)
5
+
6
+ partial interface XRFrame {
7
+ [SameObject] readonly attribute XRBody? body;
8
+ };
9
+
10
+ enum XRBodyJoint {
11
+ "hips",
12
+ "spine-lower",
13
+ "spine-middle",
14
+ "spine-upper",
15
+ "chest",
16
+ "neck",
17
+ "head",
18
+ "left-shoulder",
19
+ "left-scapula",
20
+ "left-arm-upper",
21
+ "left-arm-lower",
22
+ "left-hand-wrist-twist",
23
+ "right-shoulder",
24
+ "right-scapula",
25
+ "right-arm-upper",
26
+ "right-arm-lower",
27
+ "right-hand-wrist-twist",
28
+ "left-hand-palm",
29
+ "left-hand-wrist",
30
+ "left-hand-thumb-metacarpal",
31
+ "left-hand-thumb-phalanx-proximal",
32
+ "left-hand-thumb-phalanx-distal",
33
+ "left-hand-thumb-tip",
34
+ "left-hand-index-metacarpal",
35
+ "left-hand-index-phalanx-proximal",
36
+ "left-hand-index-phalanx-intermediate",
37
+ "left-hand-index-phalanx-distal",
38
+ "left-hand-index-tip",
39
+ "left-hand-middle-phalanx-metacarpal",
40
+ "left-hand-middle-phalanx-proximal",
41
+ "left-hand-middle-phalanx-intermediate",
42
+ "left-hand-middle-phalanx-distal",
43
+ "left-hand-middle-tip",
44
+ "left-hand-ring-metacarpal",
45
+ "left-hand-ring-phalanx-proximal",
46
+ "left-hand-ring-phalanx-intermediate",
47
+ "left-hand-ring-phalanx-distal",
48
+ "left-hand-ring-tip",
49
+ "left-hand-little-metacarpal",
50
+ "left-hand-little-phalanx-proximal",
51
+ "left-hand-little-phalanx-intermediate",
52
+ "left-hand-little-phalanx-distal",
53
+ "left-hand-little-tip",
54
+ "right-hand-palm",
55
+ "right-hand-wrist",
56
+ "right-hand-thumb-metacarpal",
57
+ "right-hand-thumb-phalanx-proximal",
58
+ "right-hand-thumb-phalanx-distal",
59
+ "right-hand-thumb-tip",
60
+ "right-hand-index-metacarpal",
61
+ "right-hand-index-phalanx-proximal",
62
+ "right-hand-index-phalanx-intermediate",
63
+ "right-hand-index-phalanx-distal",
64
+ "right-hand-index-tip",
65
+ "right-hand-middle-metacarpal",
66
+ "right-hand-middle-phalanx-proximal",
67
+ "right-hand-middle-phalanx-intermediate",
68
+ "right-hand-middle-phalanx-distal",
69
+ "right-hand-middle-tip",
70
+ "right-hand-ring-metacarpal",
71
+ "right-hand-ring-phalanx-proximal",
72
+ "right-hand-ring-phalanx-intermediate",
73
+ "right-hand-ring-phalanx-distal",
74
+ "right-hand-ring-tip",
75
+ "right-hand-little-metacarpal",
76
+ "right-hand-little-phalanx-proximal",
77
+ "right-hand-little-phalanx-intermediate",
78
+ "right-hand-little-phalanx-distal",
79
+ "right-hand-little-tip",
80
+ "left-upper-leg",
81
+ "left-lower-leg",
82
+ "left-foot-ankle-twist",
83
+ "left-foot-ankle",
84
+ "left-foot-subtalar",
85
+ "left-foot-transverse",
86
+ "left-foot-ball",
87
+ "right-upper-leg",
88
+ "right-lower-leg",
89
+ "right-foot-ankle-twist",
90
+ "right-foot-ankle",
91
+ "right-foot-subtalar",
92
+ "right-foot-transverse",
93
+ "right-foot-ball"
94
+ };
95
+
96
+ [Exposed=Window]
97
+ interface XRBody {
98
+ iterable<XRBodyJoint, XRBodySpace>;
99
+
100
+ readonly attribute unsigned long size;
101
+ XRBodySpace get(XRBodyJoint key);
102
+ };
103
+
104
+ [Exposed=Window]
105
+ interface XRBodySpace: XRSpace {
106
+ readonly attribute XRBodyJoint jointName;
107
+ };
package/css-cascade-6.idl CHANGED
@@ -1,7 +1,7 @@
1
1
  // GENERATED CONTENT - DO NOT EDIT
2
2
  // Content was automatically extracted by Reffy into webref
3
3
  // (https://github.com/w3c/webref)
4
- // Source: CSS Cascading and Inheritance Level 6 (https://drafts.csswg.org/css-cascade-6/)
4
+ // Source: CSS Cascading and Inheritance Module Level 6 (https://drafts.csswg.org/css-cascade-6/)
5
5
 
6
6
  [Exposed=Window]
7
7
  interface CSSScopeRule : CSSGroupingRule {
package/css-cascade.idl CHANGED
@@ -1,7 +1,7 @@
1
1
  // GENERATED CONTENT - DO NOT EDIT
2
2
  // Content was automatically extracted by Reffy into webref
3
3
  // (https://github.com/w3c/webref)
4
- // Source: CSS Cascading and Inheritance Level 5 (https://drafts.csswg.org/css-cascade-5/)
4
+ // Source: CSS Cascading and Inheritance Module Level 5 (https://drafts.csswg.org/css-cascade-5/)
5
5
 
6
6
  [Exposed=Window]
7
7
  interface CSSLayerBlockRule : CSSGroupingRule {
@@ -23,6 +23,13 @@ dictionary StartViewTransitionOptions {
23
23
  sequence<DOMString>? types = null;
24
24
  };
25
25
 
26
+ partial interface Element {
27
+ ViewTransition startViewTransition(
28
+ optional (ViewTransitionUpdateCallback or StartViewTransitionOptions) callbackOptions = {}
29
+ );
30
+ readonly attribute ViewTransition? activeViewTransition;
31
+ };
32
+
26
33
  [Exposed=Window]
27
34
  interface ViewTransition {
28
35
  readonly attribute Promise<undefined> updateCallbackDone;
@@ -30,6 +37,7 @@ interface ViewTransition {
30
37
  readonly attribute Promise<undefined> finished;
31
38
  undefined skipTransition();
32
39
  attribute ViewTransitionTypeSet types;
40
+ readonly attribute Element transitionRoot;
33
41
  };
34
42
 
35
43
  [Exposed=Window]
package/fetch.idl CHANGED
@@ -127,5 +127,5 @@ interface FetchLaterResult {
127
127
  };
128
128
 
129
129
  partial interface Window {
130
- [NewObject] FetchLaterResult fetchLater(RequestInfo input, optional DeferredRequestInit init = {});
130
+ [NewObject, SecureContext] FetchLaterResult fetchLater(RequestInfo input, optional DeferredRequestInit init = {});
131
131
  };
package/html.idl CHANGED
@@ -137,6 +137,9 @@ interface HTMLElement : Element {
137
137
  undefined hidePopover();
138
138
  boolean togglePopover(optional (TogglePopoverOptions or boolean) options = {});
139
139
  [CEReactions] attribute DOMString? popover;
140
+
141
+ [CEReactions, Reflect, ReflectRange=(0, 8)] attribute unsigned long headingOffset;
142
+ [CEReactions, Reflect] attribute boolean headingReset;
140
143
  };
141
144
 
142
145
  dictionary ShowPopoverOptions {
@@ -1312,8 +1315,6 @@ typedef (HTMLOrSVGImageElement or
1312
1315
  OffscreenCanvas or
1313
1316
  VideoFrame) CanvasImageSource;
1314
1317
 
1315
- enum PredefinedColorSpace { "srgb", "display-p3" };
1316
-
1317
1318
  enum CanvasColorType { "unorm8", "float16" };
1318
1319
 
1319
1320
  enum CanvasFillRule { "nonzero", "evenodd" };
@@ -1612,6 +1613,8 @@ OffscreenCanvasRenderingContext2D includes CanvasPathDrawingStyles;
1612
1613
  OffscreenCanvasRenderingContext2D includes CanvasTextDrawingStyles;
1613
1614
  OffscreenCanvasRenderingContext2D includes CanvasPath;
1614
1615
 
1616
+ enum PredefinedColorSpace { "srgb", "display-p3" };
1617
+
1615
1618
  [Exposed=Window]
1616
1619
  interface CustomElementRegistry {
1617
1620
  constructor();
@@ -1706,6 +1709,7 @@ interface ToggleEvent : Event {
1706
1709
  dictionary ToggleEventInit : EventInit {
1707
1710
  DOMString oldState = "";
1708
1711
  DOMString newState = "";
1712
+ Element? source = null;
1709
1713
  };
1710
1714
 
1711
1715
  [Exposed=Window]
package/mediasession.idl CHANGED
@@ -34,6 +34,12 @@ enum MediaSessionAction {
34
34
  "voiceactivity"
35
35
  };
36
36
 
37
+ enum MediaSessionEnterPictureInPictureReason {
38
+ "other",
39
+ "useraction",
40
+ "contentoccluded"
41
+ };
42
+
37
43
  callback MediaSessionActionHandler = undefined(MediaSessionActionDetails details);
38
44
 
39
45
  [Exposed=Window]
@@ -102,4 +108,5 @@ dictionary MediaSessionActionDetails {
102
108
  double seekTime;
103
109
  boolean fastSeek;
104
110
  boolean isActivating;
111
+ MediaSessionEnterPictureInPictureReason enterPictureInPictureReason;
105
112
  };
@@ -10,7 +10,8 @@ partial interface MediaStreamTrack {
10
10
  enum RTCDegradationPreference {
11
11
  "maintain-framerate",
12
12
  "maintain-resolution",
13
- "balanced"
13
+ "balanced",
14
+ "maintain-framerate-and-resolution"
14
15
  };
15
16
 
16
17
  partial dictionary RTCRtpSendParameters {
@@ -23,8 +23,7 @@ interface PerformanceNavigationTiming : PerformanceResourceTiming {
23
23
  enum NavigationTimingType {
24
24
  "navigate",
25
25
  "reload",
26
- "back_forward",
27
- "prerender"
26
+ "back_forward"
28
27
  };
29
28
 
30
29
  [Exposed=Window]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webref/idl",
3
3
  "description": "Web IDL definitions of the web platform",
4
- "version": "3.67.1",
4
+ "version": "3.68.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -51,20 +51,11 @@ dictionary AttributionConversionOptions {
51
51
  sequence<USVString> impressionSites = [];
52
52
  sequence<USVString> impressionCallers = [];
53
53
 
54
- AttributionLogic logic = "last-n-touch";
55
- AttributionLogicOptions logicOptions;
54
+ sequence<double> credit;
56
55
  unsigned long value = 1;
57
56
  unsigned long maxValue = 1;
58
57
  };
59
58
 
60
- enum AttributionLogic {
61
- "last-n-touch",
62
- };
63
-
64
- dictionary AttributionLogicOptions {
65
- sequence<double> credit;
66
- };
67
-
68
59
  dictionary AttributionConversionResult {
69
60
  required Uint8Array report;
70
61
  };
package/push-api.idl CHANGED
@@ -8,9 +8,11 @@ dictionary PushPermissionDescriptor : PermissionDescriptor {
8
8
  };
9
9
 
10
10
  [SecureContext]
11
- partial interface ServiceWorkerRegistration {
11
+ interface mixin PushManagerAttribute {
12
12
  readonly attribute PushManager pushManager;
13
13
  };
14
+ Window includes PushManagerAttribute;
15
+ ServiceWorkerRegistration includes PushManagerAttribute;
14
16
 
15
17
  [Exposed=(Window,Worker), SecureContext]
16
18
  interface PushManager {
package/sanitizer-api.idl CHANGED
@@ -19,16 +19,16 @@ interface Sanitizer {
19
19
  SanitizerConfig get();
20
20
 
21
21
  // Modify a Sanitizer’s lists and fields:
22
- undefined allowElement(SanitizerElementWithAttributes element);
23
- undefined removeElement(SanitizerElement element);
24
- undefined replaceElementWithChildren(SanitizerElement element);
25
- undefined allowAttribute(SanitizerAttribute attribute);
26
- undefined removeAttribute(SanitizerAttribute attribute);
27
- undefined setComments(boolean allow);
28
- undefined setDataAttributes(boolean allow);
22
+ boolean allowElement(SanitizerElementWithAttributes element);
23
+ boolean removeElement(SanitizerElement element);
24
+ boolean replaceElementWithChildren(SanitizerElement element);
25
+ boolean allowAttribute(SanitizerAttribute attribute);
26
+ boolean removeAttribute(SanitizerAttribute attribute);
27
+ boolean setComments(boolean allow);
28
+ boolean setDataAttributes(boolean allow);
29
29
 
30
- // Remove markup that executes script. May modify multiple lists:
31
- undefined removeUnsafe();
30
+ // Remove markup that executes script.
31
+ boolean removeUnsafe();
32
32
  };
33
33
 
34
34
  dictionary SanitizerElementNamespace {
@@ -9,7 +9,7 @@ interface TimeEvent : Event {
9
9
  readonly attribute WindowProxy? view;
10
10
  readonly attribute long detail;
11
11
 
12
- undefined initTimeEvent(DOMString typeArg, Window? viewArg, long detailArg);
12
+ undefined initTimeEvent(DOMString typeArg, optional Window? viewArg = null, optional long detailArg = 0);
13
13
  };
14
14
 
15
15
  [Exposed=Window]
@@ -55,10 +55,6 @@ SVGMPathElement includes SVGURIReference;
55
55
  interface SVGAnimateTransformElement : SVGAnimationElement {
56
56
  };
57
57
 
58
- [Exposed=Window]
59
- interface SVGDiscardElement : SVGAnimationElement {
60
- };
61
-
62
58
  partial interface SVGSVGElement {
63
59
  undefined pauseAnimations();
64
60
  undefined unpauseAnimations();
package/wasm-js-api.idl CHANGED
@@ -8,25 +8,40 @@ dictionary WebAssemblyInstantiatedSource {
8
8
  required Instance instance;
9
9
  };
10
10
 
11
+ dictionary WebAssemblyCompileOptions {
12
+ USVString? importedStringConstants;
13
+ sequence<USVString> builtins;
14
+ };
15
+
11
16
  [Exposed=*]
12
17
  namespace WebAssembly {
13
- boolean validate(BufferSource bytes);
14
- Promise<Module> compile(BufferSource bytes);
18
+ boolean validate(BufferSource bytes, optional WebAssemblyCompileOptions options = {});
19
+ Promise<Module> compile(BufferSource bytes, optional WebAssemblyCompileOptions options = {});
15
20
 
16
21
  Promise<WebAssemblyInstantiatedSource> instantiate(
17
- BufferSource bytes, optional object importObject);
22
+ BufferSource bytes, optional object importObject, optional WebAssemblyCompileOptions options = {});
18
23
 
19
24
  Promise<Instance> instantiate(
20
25
  Module moduleObject, optional object importObject);
26
+
27
+ readonly attribute Tag JSTag;
21
28
  };
22
29
 
23
30
  enum ImportExportKind {
24
31
  "function",
25
32
  "table",
26
33
  "memory",
27
- "global"
34
+ "global",
35
+ "tag"
36
+ };
37
+
38
+ enum AddressType {
39
+ "i32",
40
+ "i64",
28
41
  };
29
42
 
43
+ typedef any AddressValue;
44
+
30
45
  dictionary ModuleExportDescriptor {
31
46
  required USVString name;
32
47
  required ImportExportKind kind;
@@ -41,7 +56,7 @@ dictionary ModuleImportDescriptor {
41
56
 
42
57
  [LegacyNamespace=WebAssembly, Exposed=*]
43
58
  interface Module {
44
- constructor(BufferSource bytes);
59
+ constructor(BufferSource bytes, optional WebAssemblyCompileOptions options = {});
45
60
  static sequence<ModuleExportDescriptor> exports(Module moduleObject);
46
61
  static sequence<ModuleImportDescriptor> imports(Module moduleObject);
47
62
  static sequence<ArrayBuffer> customSections(Module moduleObject, DOMString sectionName);
@@ -54,14 +69,15 @@ interface Instance {
54
69
  };
55
70
 
56
71
  dictionary MemoryDescriptor {
57
- required [EnforceRange] unsigned long initial;
58
- [EnforceRange] unsigned long maximum;
72
+ required AddressValue initial;
73
+ AddressValue maximum;
74
+ AddressType address;
59
75
  };
60
76
 
61
77
  [LegacyNamespace=WebAssembly, Exposed=*]
62
78
  interface Memory {
63
79
  constructor(MemoryDescriptor descriptor);
64
- unsigned long grow([EnforceRange] unsigned long delta);
80
+ AddressValue grow(AddressValue delta);
65
81
  ArrayBuffer toFixedLengthBuffer();
66
82
  ArrayBuffer toResizableBuffer();
67
83
  readonly attribute ArrayBuffer buffer;
@@ -76,17 +92,18 @@ enum TableKind {
76
92
 
77
93
  dictionary TableDescriptor {
78
94
  required TableKind element;
79
- required [EnforceRange] unsigned long initial;
80
- [EnforceRange] unsigned long maximum;
95
+ required AddressValue initial;
96
+ AddressValue maximum;
97
+ AddressType address;
81
98
  };
82
99
 
83
100
  [LegacyNamespace=WebAssembly, Exposed=*]
84
101
  interface Table {
85
102
  constructor(TableDescriptor descriptor, optional any value);
86
- unsigned long grow([EnforceRange] unsigned long delta, optional any value);
87
- any get([EnforceRange] unsigned long index);
88
- undefined set([EnforceRange] unsigned long index, optional any value);
89
- readonly attribute unsigned long length;
103
+ AddressValue grow(AddressValue delta, optional any value);
104
+ any get(AddressValue index);
105
+ undefined set(AddressValue index, optional any value);
106
+ readonly attribute AddressValue length;
90
107
  };
91
108
 
92
109
  enum ValueType {
@@ -110,3 +127,24 @@ interface Global {
110
127
  any valueOf();
111
128
  attribute any value;
112
129
  };
130
+
131
+ dictionary TagType {
132
+ required sequence<ValueType> parameters;
133
+ };
134
+
135
+ [LegacyNamespace=WebAssembly, Exposed=(Window,Worker,Worklet)]
136
+ interface Tag {
137
+ constructor(TagType type);
138
+ };
139
+
140
+ dictionary ExceptionOptions {
141
+ boolean traceStack = false;
142
+ };
143
+
144
+ [LegacyNamespace=WebAssembly, Exposed=(Window,Worker,Worklet)]
145
+ interface Exception {
146
+ constructor(Tag exceptionTag, sequence<any> payload, optional ExceptionOptions options = {});
147
+ any getArg([EnforceRange] unsigned long index);
148
+ boolean is(Tag exceptionTag);
149
+ readonly attribute (DOMString or undefined) stack;
150
+ };
package/wasm-web-api.idl CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  [Exposed=(Window,Worker)]
7
7
  partial namespace WebAssembly {
8
- Promise<Module> compileStreaming(Promise<Response> source);
8
+ Promise<Module> compileStreaming(Promise<Response> source, optional WebAssemblyCompileOptions options = {});
9
9
  Promise<WebAssemblyInstantiatedSource> instantiateStreaming(
10
- Promise<Response> source, optional object importObject);
10
+ Promise<Response> source, optional object importObject, optional WebAssemblyCompileOptions options = {});
11
11
  };
package/webnn.idl CHANGED
@@ -54,15 +54,9 @@ interface MLContext {
54
54
  dictionary MLOpSupportLimits {
55
55
  MLInputOperandLayout preferredInputLayout;
56
56
  [EnforceRange] unsigned long long maxTensorByteLength;
57
- MLDataTypeLimits input;
58
- MLDataTypeLimits constant;
59
- MLDataTypeLimits output;
60
- };
61
-
62
- typedef sequence<MLOperandDataType> MLDataTypeList;
63
-
64
- dictionary MLDataTypeLimits {
65
- MLDataTypeList dataTypes;
57
+ MLTensorLimits input;
58
+ MLTensorLimits constant;
59
+ MLTensorLimits output;
66
60
  };
67
61
 
68
62
  dictionary MLRankRange {
@@ -70,6 +64,8 @@ dictionary MLRankRange {
70
64
  unsigned long max;
71
65
  };
72
66
 
67
+ typedef sequence<MLOperandDataType> MLDataTypeList;
68
+
73
69
  dictionary MLTensorLimits {
74
70
  MLDataTypeList dataTypes;
75
71
  MLRankRange rankRange;
@@ -78,12 +74,12 @@ dictionary MLTensorLimits {
78
74
  dictionary MLBinarySupportLimits {
79
75
  MLTensorLimits a;
80
76
  MLTensorLimits b;
81
- MLDataTypeLimits output;
77
+ MLTensorLimits output;
82
78
  };
83
79
 
84
80
  dictionary MLSingleInputSupportLimits {
85
81
  MLTensorLimits input;
86
- MLDataTypeLimits output;
82
+ MLTensorLimits output;
87
83
  };
88
84
 
89
85
  [SecureContext, Exposed=(Window, Worker)]
@@ -155,7 +151,7 @@ interface MLGraphBuilder {
155
151
  AllowSharedBufferSource buffer);
156
152
 
157
153
  // Create a scalar operand from the specified number of the specified type.
158
- MLOperand constant(MLOperandDataType type, MLNumber value);
154
+ MLOperand constant(MLOperandDataType dataType, MLNumber value);
159
155
 
160
156
  // Create an operand from a specified constant tensor.
161
157
  MLOperand constant(MLTensor tensor);
@@ -199,7 +195,7 @@ dictionary MLBatchNormalizationSupportLimits {
199
195
  MLTensorLimits variance;
200
196
  MLTensorLimits scale;
201
197
  MLTensorLimits bias;
202
- MLDataTypeLimits output;
198
+ MLTensorLimits output;
203
199
  };
204
200
 
205
201
  partial dictionary MLOpSupportLimits {
@@ -208,7 +204,7 @@ partial dictionary MLOpSupportLimits {
208
204
 
209
205
  partial interface MLGraphBuilder {
210
206
  MLOperand cast(MLOperand input,
211
- MLOperandDataType type,
207
+ MLOperandDataType dataType,
212
208
  optional MLOperatorOptions options = {});
213
209
  };
214
210
 
@@ -237,7 +233,7 @@ partial interface MLGraphBuilder {
237
233
 
238
234
  dictionary MLConcatSupportLimits {
239
235
  MLTensorLimits inputs;
240
- MLDataTypeLimits output;
236
+ MLTensorLimits output;
241
237
  };
242
238
 
243
239
  partial dictionary MLOpSupportLimits {
@@ -271,7 +267,7 @@ dictionary MLConv2dSupportLimits {
271
267
  MLTensorLimits input;
272
268
  MLTensorLimits filter;
273
269
  MLTensorLimits bias;
274
- MLDataTypeLimits output;
270
+ MLTensorLimits output;
275
271
  };
276
272
 
277
273
  partial dictionary MLOpSupportLimits {
@@ -375,7 +371,7 @@ partial interface MLGraphBuilder {
375
371
 
376
372
  dictionary MLLogicalNotSupportLimits {
377
373
  MLTensorLimits a;
378
- MLDataTypeLimits output;
374
+ MLTensorLimits output;
379
375
  };
380
376
 
381
377
  partial dictionary MLOpSupportLimits {
@@ -440,7 +436,7 @@ dictionary MLQuantizeDequantizeLinearSupportLimits {
440
436
  MLTensorLimits input;
441
437
  MLTensorLimits scale;
442
438
  MLTensorLimits zeroPoint;
443
- MLDataTypeLimits output;
439
+ MLTensorLimits output;
444
440
  };
445
441
 
446
442
  partial dictionary MLOpSupportLimits {
@@ -493,7 +489,7 @@ partial interface MLGraphBuilder {
493
489
  dictionary MLGatherSupportLimits {
494
490
  MLTensorLimits input;
495
491
  MLTensorLimits indices;
496
- MLDataTypeLimits output;
492
+ MLTensorLimits output;
497
493
  };
498
494
 
499
495
  partial dictionary MLOpSupportLimits {
@@ -544,7 +540,7 @@ dictionary MLGemmSupportLimits {
544
540
  MLTensorLimits a;
545
541
  MLTensorLimits b;
546
542
  MLTensorLimits c;
547
- MLDataTypeLimits output;
543
+ MLTensorLimits output;
548
544
  };
549
545
 
550
546
  partial dictionary MLOpSupportLimits {
@@ -595,7 +591,8 @@ dictionary MLGruSupportLimits {
595
591
  MLTensorLimits bias;
596
592
  MLTensorLimits recurrentBias;
597
593
  MLTensorLimits initialHiddenState;
598
- MLDataTypeLimits outputs;
594
+ MLTensorLimits output0;
595
+ MLTensorLimits output1;
599
596
  };
600
597
 
601
598
  partial dictionary MLOpSupportLimits {
@@ -626,7 +623,7 @@ dictionary MLGruCellSupportLimits {
626
623
  MLTensorLimits hiddenState;
627
624
  MLTensorLimits bias;
628
625
  MLTensorLimits recurrentBias;
629
- MLDataTypeLimits output;
626
+ MLTensorLimits output;
630
627
  };
631
628
 
632
629
  partial dictionary MLOpSupportLimits {
@@ -662,15 +659,16 @@ dictionary MLInstanceNormalizationOptions : MLOperatorOptions {
662
659
  };
663
660
 
664
661
  partial interface MLGraphBuilder {
665
- MLOperand instanceNormalization(MLOperand input,
666
- optional MLInstanceNormalizationOptions options = {});
662
+ MLOperand instanceNormalization(
663
+ MLOperand input,
664
+ optional MLInstanceNormalizationOptions options = {});
667
665
  };
668
666
 
669
667
  dictionary MLNormalizationSupportLimits {
670
668
  MLTensorLimits input;
671
669
  MLTensorLimits scale;
672
670
  MLTensorLimits bias;
673
- MLDataTypeLimits output;
671
+ MLTensorLimits output;
674
672
  };
675
673
 
676
674
  partial dictionary MLOpSupportLimits {
@@ -753,7 +751,9 @@ dictionary MLLstmSupportLimits {
753
751
  MLTensorLimits peepholeWeight;
754
752
  MLTensorLimits initialHiddenState;
755
753
  MLTensorLimits initialCellState;
756
- MLDataTypeLimits outputs;
754
+ MLTensorLimits output0;
755
+ MLTensorLimits output1;
756
+ MLTensorLimits output2;
757
757
  };
758
758
 
759
759
  partial dictionary MLOpSupportLimits {
@@ -787,7 +787,8 @@ dictionary MLLstmCellSupportLimits {
787
787
  MLTensorLimits bias;
788
788
  MLTensorLimits recurrentBias;
789
789
  MLTensorLimits peepholeWeight;
790
- MLDataTypeLimits outputs;
790
+ MLTensorLimits output0;
791
+ MLTensorLimits output1;
791
792
  };
792
793
 
793
794
  partial dictionary MLOpSupportLimits {
@@ -835,7 +836,7 @@ dictionary MLPool2dOptions : MLOperatorOptions {
835
836
  sequence<[EnforceRange] unsigned long> strides;
836
837
  sequence<[EnforceRange] unsigned long> dilations;
837
838
  MLInputOperandLayout layout = "nchw";
838
- MLRoundingType roundingType = "floor";
839
+ MLRoundingType outputShapeRounding = "floor";
839
840
  sequence<[EnforceRange] unsigned long> outputSizes;
840
841
  };
841
842
 
@@ -860,7 +861,7 @@ partial interface MLGraphBuilder {
860
861
  dictionary MLPreluSupportLimits {
861
862
  MLTensorLimits input;
862
863
  MLTensorLimits slope;
863
- MLDataTypeLimits output;
864
+ MLTensorLimits output;
864
865
  };
865
866
 
866
867
  partial dictionary MLOpSupportLimits {
@@ -963,7 +964,7 @@ dictionary MLScatterSupportLimits {
963
964
  MLTensorLimits input;
964
965
  MLTensorLimits indices;
965
966
  MLTensorLimits updates;
966
- MLDataTypeLimits output;
967
+ MLTensorLimits output;
967
968
  };
968
969
 
969
970
  partial dictionary MLOpSupportLimits {
@@ -1043,7 +1044,7 @@ partial interface MLGraphBuilder {
1043
1044
 
1044
1045
  dictionary MLSplitSupportLimits {
1045
1046
  MLTensorLimits input;
1046
- MLDataTypeLimits outputs;
1047
+ MLTensorLimits outputs;
1047
1048
  };
1048
1049
 
1049
1050
  partial dictionary MLOpSupportLimits {
@@ -1104,7 +1105,7 @@ dictionary MLWhereSupportLimits {
1104
1105
  MLTensorLimits condition;
1105
1106
  MLTensorLimits trueValue;
1106
1107
  MLTensorLimits falseValue;
1107
- MLDataTypeLimits output;
1108
+ MLTensorLimits output;
1108
1109
  };
1109
1110
 
1110
1111
  partial dictionary MLOpSupportLimits {
@@ -156,7 +156,3 @@ interface KeyFrameRequestEvent : Event {
156
156
  constructor(DOMString type, optional DOMString rid);
157
157
  readonly attribute DOMString? rid;
158
158
  };
159
-
160
- partial interface RTCRtpSender {
161
- Promise<undefined> generateKeyFrame(optional sequence <DOMString> rids);
162
- };
package/webxr.idl CHANGED
@@ -131,6 +131,7 @@ enum XREye {
131
131
 
132
132
  [SecureContext, Exposed=Window] interface XRView {
133
133
  readonly attribute XREye eye;
134
+ readonly attribute unsigned long index;
134
135
  readonly attribute double? recommendedViewportScale;
135
136
 
136
137
  undefined requestViewportScale(double? scale);
@@ -289,6 +290,24 @@ dictionary XRReferenceSpaceEventInit : EventInit {
289
290
  XRRigidTransform? transform = null;
290
291
  };
291
292
 
293
+ [SecureContext, Exposed=Window]
294
+ interface XRVisibilityMaskChangeEvent : Event {
295
+ constructor(DOMString type, XRVisibilityMaskChangeEventInit eventInitDict);
296
+ [SameObject] readonly attribute XRSession session;
297
+ readonly attribute XREye eye;
298
+ readonly attribute unsigned long index;
299
+ [SameObject] readonly attribute Float32Array vertices;
300
+ [SameObject] readonly attribute Uint32Array indices;
301
+ };
302
+
303
+ dictionary XRVisibilityMaskChangeEventInit : EventInit {
304
+ required XRSession session;
305
+ required XREye eye;
306
+ required unsigned long index;
307
+ required Float32Array vertices;
308
+ required Uint32Array indices;
309
+ };
310
+
292
311
  dictionary XRSessionSupportedPermissionDescriptor: PermissionDescriptor {
293
312
  XRSessionMode mode;
294
313
  };