@webref/idl 2.7.1 → 2.8.2

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.
@@ -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: WebGL OES_draw_buffers_indexed Extension Draft Specification (https://www.khronos.org/registry/webgl/extensions/OES_draw_buffers_indexed/)
4
+ // Source: WebGL OES_draw_buffers_indexed Extension Specification (https://www.khronos.org/registry/webgl/extensions/OES_draw_buffers_indexed/)
5
5
 
6
6
  [Exposed=(Window,Worker), LegacyNoInterfaceObject]
7
7
  interface OES_draw_buffers_indexed {
package/app-history.idl CHANGED
@@ -121,7 +121,7 @@ interface AppHistoryDestination {
121
121
 
122
122
  [Exposed=Window]
123
123
  interface AppHistoryEntry : EventTarget {
124
- readonly attribute USVString url;
124
+ readonly attribute USVString? url;
125
125
  readonly attribute DOMString key;
126
126
  readonly attribute DOMString id;
127
127
  readonly attribute long long index;
@@ -3,11 +3,18 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: CSS Custom Highlight API Module Level 1 (https://drafts.csswg.org/css-highlight-api-1/)
5
5
 
6
+ enum HighlightType {
7
+ "highlight",
8
+ "spelling-error",
9
+ "grammar-error"
10
+ };
11
+
6
12
  [Exposed=Window]
7
13
  interface Highlight {
8
14
  constructor(AbstractRange... initialRanges);
9
15
  setlike<AbstractRange>;
10
16
  attribute long priority;
17
+ attribute HighlightType type;
11
18
  };
12
19
 
13
20
  partial namespace CSS {
package/dom.idl CHANGED
@@ -88,14 +88,15 @@ interface AbortController {
88
88
 
89
89
  [SameObject] readonly attribute AbortSignal signal;
90
90
 
91
- undefined abort();
91
+ undefined abort(optional any reason);
92
92
  };
93
93
 
94
94
  [Exposed=(Window,Worker)]
95
95
  interface AbortSignal : EventTarget {
96
- [NewObject] static AbortSignal abort();
96
+ [NewObject] static AbortSignal abort(optional any reason);
97
97
 
98
98
  readonly attribute boolean aborted;
99
+ readonly attribute any reason;
99
100
 
100
101
  attribute EventHandler onabort;
101
102
  };
package/html.idl CHANGED
@@ -43,6 +43,7 @@ interface DOMStringList {
43
43
  };
44
44
 
45
45
  enum DocumentReadyState { "loading", "interactive", "complete" };
46
+ enum DocumentVisibilityState { "visible", "hidden" };
46
47
  typedef (HTMLScriptElement or SVGScriptElement) HTMLOrSVGScriptElement;
47
48
 
48
49
  [LegacyOverrideBuiltIns]
@@ -87,6 +88,8 @@ partial interface Document {
87
88
  boolean queryCommandState(DOMString commandId);
88
89
  boolean queryCommandSupported(DOMString commandId);
89
90
  DOMString queryCommandValue(DOMString commandId);
91
+ readonly attribute boolean hidden;
92
+ readonly attribute DocumentVisibilityState visibilityState;
90
93
 
91
94
  // special event handler IDL attributes that only apply to Document objects
92
95
  [LegacyLenientThis] attribute EventHandler onreadystatechange;
@@ -1990,9 +1993,9 @@ interface mixin WindowOrWorkerGlobalScope {
1990
1993
 
1991
1994
  // timers
1992
1995
  long setTimeout(TimerHandler handler, optional long timeout = 0, any... arguments);
1993
- undefined clearTimeout(optional long handle = 0);
1996
+ undefined clearTimeout(optional long id = 0);
1994
1997
  long setInterval(TimerHandler handler, optional long timeout = 0, any... arguments);
1995
- undefined clearInterval(optional long handle = 0);
1998
+ undefined clearInterval(optional long id = 0);
1996
1999
 
1997
2000
  // microtask queuing
1998
2001
  undefined queueMicrotask(VoidFunction callback);
@@ -238,3 +238,11 @@ typedef (boolean or ConstrainBooleanParameters) ConstrainBoolean;
238
238
  typedef (DOMString or
239
239
  sequence<DOMString> or
240
240
  ConstrainDOMStringParameters) ConstrainDOMString;
241
+
242
+ dictionary DevicePermissionDescriptor : PermissionDescriptor {
243
+ DOMString deviceId;
244
+ };
245
+
246
+ dictionary CameraDevicePermissionDescriptor : DevicePermissionDescriptor {
247
+ boolean panTiltZoom = false;
248
+ };
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": "2.7.1",
4
+ "version": "2.8.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -12,6 +12,6 @@
12
12
  "license": "MIT",
13
13
  "main": "index.js",
14
14
  "peerDependencies": {
15
- "webidl2": "^24.1.2"
15
+ "webidl2": "^24.2.0"
16
16
  }
17
17
  }
package/permissions.idl CHANGED
@@ -56,19 +56,3 @@ enum PermissionName {
56
56
  "speaker-selection",
57
57
  "xr-spatial-tracking",
58
58
  };
59
-
60
- dictionary PushPermissionDescriptor : PermissionDescriptor {
61
- boolean userVisibleOnly = false;
62
- };
63
-
64
- dictionary MidiPermissionDescriptor : PermissionDescriptor {
65
- boolean sysex = false;
66
- };
67
-
68
- dictionary DevicePermissionDescriptor : PermissionDescriptor {
69
- DOMString deviceId;
70
- };
71
-
72
- dictionary CameraDevicePermissionDescriptor : DevicePermissionDescriptor {
73
- boolean panTiltZoom = false;
74
- };
package/push-api.idl CHANGED
@@ -3,6 +3,10 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: Push API (https://w3c.github.io/push-api/)
5
5
 
6
+ dictionary PushPermissionDescriptor : PermissionDescriptor {
7
+ boolean userVisibleOnly = false;
8
+ };
9
+
6
10
  [SecureContext]
7
11
  partial interface ServiceWorkerRegistration {
8
12
  readonly attribute PushManager pushManager;
@@ -14,7 +18,7 @@ interface PushManager {
14
18
 
15
19
  Promise<PushSubscription> subscribe(optional PushSubscriptionOptionsInit options = {});
16
20
  Promise<PushSubscription?> getSubscription();
17
- Promise<PushPermissionState> permissionState(optional PushSubscriptionOptionsInit options = {});
21
+ Promise<PermissionState> permissionState(optional PushSubscriptionOptionsInit options = {});
18
22
  };
19
23
 
20
24
  [Exposed=(Window,Worker), SecureContext]
@@ -87,9 +91,3 @@ dictionary PushSubscriptionChangeEventInit : ExtendableEventInit {
87
91
  PushSubscription newSubscription = null;
88
92
  PushSubscription oldSubscription = null;
89
93
  };
90
-
91
- enum PushPermissionState {
92
- "denied",
93
- "granted",
94
- "prompt",
95
- };
package/sanitizer-api.idl CHANGED
@@ -16,8 +16,11 @@
16
16
  static SanitizerConfig getDefaultConfiguration();
17
17
  };
18
18
 
19
+ dictionary SetHTMLOptions {
20
+ Sanitizer sanitizer;
21
+ };
19
22
  partial interface Element {
20
- undefined setHTML(DOMString input, Sanitizer sanitizer);
23
+ undefined setHTML(DOMString input, optional SetHTMLOptions options = {});
21
24
  };
22
25
 
23
26
  dictionary SanitizerConfig {
@@ -43,3 +43,9 @@ dictionary PaymentCredentialInstrument {
43
43
  required DOMString displayName;
44
44
  required USVString icon;
45
45
  };
46
+
47
+ enum TransactionAutomationMode {
48
+ "none",
49
+ "autoaccept",
50
+ "autoreject"
51
+ };
@@ -120,7 +120,7 @@ interface Client {
120
120
 
121
121
  [Exposed=ServiceWorker]
122
122
  interface WindowClient : Client {
123
- readonly attribute VisibilityState visibilityState;
123
+ readonly attribute DocumentVisibilityState visibilityState;
124
124
  readonly attribute boolean focused;
125
125
  [SameObject] readonly attribute FrozenArray<USVString> ancestorOrigins;
126
126
  [NewObject] Promise<WindowClient> focus();
package/streams.idl CHANGED
@@ -74,8 +74,8 @@ interface ReadableStreamDefaultReader {
74
74
  ReadableStreamDefaultReader includes ReadableStreamGenericReader;
75
75
 
76
76
  dictionary ReadableStreamDefaultReadResult {
77
- any value;
78
- boolean done;
77
+ any value;
78
+ boolean done;
79
79
  };
80
80
 
81
81
  [Exposed=(Window,Worker,Worklet)]
@@ -88,8 +88,8 @@ interface ReadableStreamBYOBReader {
88
88
  ReadableStreamBYOBReader includes ReadableStreamGenericReader;
89
89
 
90
90
  dictionary ReadableStreamBYOBReadResult {
91
- ArrayBufferView value;
92
- boolean done;
91
+ ArrayBufferView value;
92
+ boolean done;
93
93
  };
94
94
 
95
95
  [Exposed=(Window,Worker,Worklet)]
@@ -159,7 +159,6 @@ interface WritableStreamDefaultWriter {
159
159
 
160
160
  [Exposed=(Window,Worker,Worklet)]
161
161
  interface WritableStreamDefaultController {
162
- readonly attribute any abortReason;
163
162
  readonly attribute AbortSignal signal;
164
163
  undefined error(optional any e);
165
164
  };
package/trusted-types.idl CHANGED
@@ -7,18 +7,21 @@
7
7
  interface TrustedHTML {
8
8
  stringifier;
9
9
  DOMString toJSON();
10
+ static TrustedHTML fromLiteral(object templateStringsArray);
10
11
  };
11
12
 
12
13
  [Exposed=(Window,Worker)]
13
14
  interface TrustedScript {
14
15
  stringifier;
15
16
  DOMString toJSON();
17
+ static TrustedScript fromLiteral(object templateStringsArray);
16
18
  };
17
19
 
18
20
  [Exposed=(Window,Worker)]
19
21
  interface TrustedScriptURL {
20
22
  stringifier;
21
23
  USVString toJSON();
24
+ static TrustedScriptURL fromLiteral(object templateStringsArray);
22
25
  };
23
26
 
24
27
  [Exposed=(Window,Worker)] interface TrustedTypePolicyFactory {
package/wai-aria.idl CHANGED
@@ -6,54 +6,54 @@
6
6
  interface mixin ARIAMixin {
7
7
  attribute DOMString? role;
8
8
 
9
- attribute DOMString ariaAtomic;
10
- attribute DOMString ariaAutoComplete;
11
- attribute DOMString ariaBusy;
12
- attribute DOMString ariaChecked;
13
- attribute DOMString ariaColCount;
14
- attribute DOMString ariaColIndex;
15
- attribute DOMString ariaColIndexText;
16
- attribute DOMString ariaColSpan;
17
-
18
- attribute DOMString ariaCurrent;
19
-
20
- attribute DOMString ariaDescription;
21
-
22
- attribute DOMString ariaDisabled;
23
-
24
- attribute DOMString ariaExpanded;
25
-
26
- attribute DOMString ariaHasPopup;
27
- attribute DOMString ariaHidden;
28
- attribute DOMString ariaInvalid;
29
- attribute DOMString ariaKeyShortcuts;
30
- attribute DOMString ariaLabel;
31
-
32
- attribute DOMString ariaLevel;
33
- attribute DOMString ariaLive;
34
- attribute DOMString ariaModal;
35
- attribute DOMString ariaMultiLine;
36
- attribute DOMString ariaMultiSelectable;
37
- attribute DOMString ariaOrientation;
38
-
39
- attribute DOMString ariaPlaceholder;
40
- attribute DOMString ariaPosInSet;
41
- attribute DOMString ariaPressed;
42
- attribute DOMString ariaReadOnly;
43
-
44
- attribute DOMString ariaRequired;
45
- attribute DOMString ariaRoleDescription;
46
- attribute DOMString ariaRowCount;
47
- attribute DOMString ariaRowIndex;
48
- attribute DOMString ariaRowIndexText;
49
- attribute DOMString ariaRowSpan;
50
- attribute DOMString ariaSelected;
51
- attribute DOMString ariaSetSize;
52
- attribute DOMString ariaSort;
53
- attribute DOMString ariaValueMax;
54
- attribute DOMString ariaValueMin;
55
- attribute DOMString ariaValueNow;
56
- attribute DOMString ariaValueText;
9
+ attribute DOMString? ariaAtomic;
10
+ attribute DOMString? ariaAutoComplete;
11
+ attribute DOMString? ariaBusy;
12
+ attribute DOMString? ariaChecked;
13
+ attribute DOMString? ariaColCount;
14
+ attribute DOMString? ariaColIndex;
15
+ attribute DOMString? ariaColIndexText;
16
+ attribute DOMString? ariaColSpan;
17
+
18
+ attribute DOMString? ariaCurrent;
19
+
20
+ attribute DOMString? ariaDescription;
21
+
22
+ attribute DOMString? ariaDisabled;
23
+
24
+ attribute DOMString? ariaExpanded;
25
+
26
+ attribute DOMString? ariaHasPopup;
27
+ attribute DOMString? ariaHidden;
28
+ attribute DOMString? ariaInvalid;
29
+ attribute DOMString? ariaKeyShortcuts;
30
+ attribute DOMString? ariaLabel;
31
+
32
+ attribute DOMString? ariaLevel;
33
+ attribute DOMString? ariaLive;
34
+ attribute DOMString? ariaModal;
35
+ attribute DOMString? ariaMultiLine;
36
+ attribute DOMString? ariaMultiSelectable;
37
+ attribute DOMString? ariaOrientation;
38
+
39
+ attribute DOMString? ariaPlaceholder;
40
+ attribute DOMString? ariaPosInSet;
41
+ attribute DOMString? ariaPressed;
42
+ attribute DOMString? ariaReadOnly;
43
+
44
+ attribute DOMString? ariaRequired;
45
+ attribute DOMString? ariaRoleDescription;
46
+ attribute DOMString? ariaRowCount;
47
+ attribute DOMString? ariaRowIndex;
48
+ attribute DOMString? ariaRowIndexText;
49
+ attribute DOMString? ariaRowSpan;
50
+ attribute DOMString? ariaSelected;
51
+ attribute DOMString? ariaSetSize;
52
+ attribute DOMString? ariaSort;
53
+ attribute DOMString? ariaValueMax;
54
+ attribute DOMString? ariaValueMin;
55
+ attribute DOMString? ariaValueNow;
56
+ attribute DOMString? ariaValueText;
57
57
  };
58
58
 
59
59
  Element includes ARIAMixin;
package/wasm-js-api.idl CHANGED
@@ -92,6 +92,7 @@ enum ValueType {
92
92
  "i64",
93
93
  "f32",
94
94
  "f64",
95
+ "v128",
95
96
  "externref",
96
97
  "anyfunc",
97
98
  };
@@ -83,6 +83,7 @@ enum FillMode { "none", "forwards", "backwards", "both", "auto" };
83
83
  enum PlaybackDirection { "normal", "reverse", "alternate", "alternate-reverse" };
84
84
 
85
85
  dictionary ComputedEffectTiming : EffectTiming {
86
+ double? progress;
86
87
  unrestricted double? currentIteration;
87
88
  };
88
89
 
package/web-locks.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: Web Locks API (https://wicg.github.io/web-locks/)
4
+ // Source: Web Locks API (https://w3c.github.io/web-locks/)
5
5
 
6
6
  [SecureContext]
7
7
  interface mixin NavigatorLocks {
package/webcodecs.idl CHANGED
@@ -91,7 +91,7 @@ interface VideoEncoder {
91
91
  undefined reset();
92
92
  undefined close();
93
93
 
94
- static Promise<boolean> isConfigSupported(VideoEncoderConfig config);
94
+ static Promise<VideoEncoderSupport> isConfigSupported(VideoEncoderConfig config);
95
95
  };
96
96
 
97
97
  dictionary VideoEncoderInit {
package/webgpu.idl CHANGED
@@ -11,7 +11,7 @@ dictionary GPUObjectDescriptorBase {
11
11
  USVString label;
12
12
  };
13
13
 
14
- [Exposed=(Window, DedicatedWorker)]
14
+ [Exposed=(Window, DedicatedWorker), SecureContext]
15
15
  interface GPUSupportedLimits {
16
16
  readonly attribute unsigned long maxTextureDimension1D;
17
17
  readonly attribute unsigned long maxTextureDimension2D;
@@ -41,7 +41,7 @@ interface GPUSupportedLimits {
41
41
  readonly attribute unsigned long maxComputeWorkgroupsPerDimension;
42
42
  };
43
43
 
44
- [Exposed=(Window, DedicatedWorker)]
44
+ [Exposed=(Window, DedicatedWorker), SecureContext]
45
45
  interface GPUSupportedFeatures {
46
46
  readonly setlike<DOMString>;
47
47
  };
@@ -68,7 +68,7 @@ dictionary GPURequestAdapterOptions {
68
68
 
69
69
  enum GPUPowerPreference {
70
70
  "low-power",
71
- "high-performance"
71
+ "high-performance",
72
72
  };
73
73
 
74
74
  [Exposed=(Window, DedicatedWorker), SecureContext]
@@ -87,14 +87,14 @@ dictionary GPUDeviceDescriptor : GPUObjectDescriptorBase {
87
87
  };
88
88
 
89
89
  enum GPUFeatureName {
90
- "depth-clamping",
90
+ "depth-clip-control",
91
91
  "depth24unorm-stencil8",
92
92
  "depth32float-stencil8",
93
- "pipeline-statistics-query",
94
93
  "texture-compression-bc",
95
94
  "texture-compression-etc2",
96
95
  "texture-compression-astc",
97
96
  "timestamp-query",
97
+ "indirect-first-instance",
98
98
  };
99
99
 
100
100
  [Exposed=(Window, DedicatedWorker), SecureContext]
@@ -220,13 +220,13 @@ enum GPUTextureViewDimension {
220
220
  "2d-array",
221
221
  "cube",
222
222
  "cube-array",
223
- "3d"
223
+ "3d",
224
224
  };
225
225
 
226
226
  enum GPUTextureAspect {
227
227
  "all",
228
228
  "stencil-only",
229
- "depth-only"
229
+ "depth-only",
230
230
  };
231
231
 
232
232
  enum GPUTextureFormat {
@@ -277,13 +277,19 @@ enum GPUTextureFormat {
277
277
  "rgba32sint",
278
278
  "rgba32float",
279
279
 
280
- // Depth and stencil formats
280
+ // Depth/stencil formats
281
281
  "stencil8",
282
282
  "depth16unorm",
283
283
  "depth24plus",
284
284
  "depth24plus-stencil8",
285
285
  "depth32float",
286
286
 
287
+ // "depth24unorm-stencil8" feature
288
+ "depth24unorm-stencil8",
289
+
290
+ // "depth32float-stencil8" feature
291
+ "depth32float-stencil8",
292
+
287
293
  // BC compressed formats usable if "texture-compression-bc" is both
288
294
  // supported by the device/user agent and enabled in requestDevice.
289
295
  "bc1-rgba-unorm",
@@ -344,12 +350,6 @@ enum GPUTextureFormat {
344
350
  "astc-12x10-unorm-srgb",
345
351
  "astc-12x12-unorm",
346
352
  "astc-12x12-unorm-srgb",
347
-
348
- // "depth24unorm-stencil8" feature
349
- "depth24unorm-stencil8",
350
-
351
- // "depth32float-stencil8" feature
352
- "depth32float-stencil8",
353
353
  };
354
354
 
355
355
  [Exposed=(Window, DedicatedWorker), SecureContext]
@@ -383,12 +383,12 @@ dictionary GPUSamplerDescriptor : GPUObjectDescriptorBase {
383
383
  enum GPUAddressMode {
384
384
  "clamp-to-edge",
385
385
  "repeat",
386
- "mirror-repeat"
386
+ "mirror-repeat",
387
387
  };
388
388
 
389
389
  enum GPUFilterMode {
390
390
  "nearest",
391
- "linear"
391
+ "linear",
392
392
  };
393
393
 
394
394
  enum GPUCompareFunction {
@@ -399,7 +399,7 @@ enum GPUCompareFunction {
399
399
  "greater",
400
400
  "not-equal",
401
401
  "greater-equal",
402
- "always"
402
+ "always",
403
403
  };
404
404
 
405
405
  [Exposed=(Window, DedicatedWorker), SecureContext]
@@ -453,11 +453,11 @@ dictionary GPUSamplerBindingLayout {
453
453
  };
454
454
 
455
455
  enum GPUTextureSampleType {
456
- "float",
457
- "unfilterable-float",
458
- "depth",
459
- "sint",
460
- "uint",
456
+ "float",
457
+ "unfilterable-float",
458
+ "depth",
459
+ "sint",
460
+ "uint",
461
461
  };
462
462
 
463
463
  dictionary GPUTextureBindingLayout {
@@ -525,7 +525,7 @@ dictionary GPUShaderModuleDescriptor : GPUObjectDescriptorBase {
525
525
  enum GPUCompilationMessageType {
526
526
  "error",
527
527
  "warning",
528
- "info"
528
+ "info",
529
529
  };
530
530
 
531
531
  [Exposed=(Window, DedicatedWorker), Serializable, SecureContext]
@@ -588,7 +588,7 @@ enum GPUPrimitiveTopology {
588
588
  "line-list",
589
589
  "line-strip",
590
590
  "triangle-list",
591
- "triangle-strip"
591
+ "triangle-strip",
592
592
  };
593
593
 
594
594
  dictionary GPUPrimitiveState {
@@ -597,19 +597,19 @@ dictionary GPUPrimitiveState {
597
597
  GPUFrontFace frontFace = "ccw";
598
598
  GPUCullMode cullMode = "none";
599
599
 
600
- // Enable depth clamping (requires "depth-clamping" feature)
601
- boolean clampDepth = false;
600
+ // Requires "depth-clip-control" feature.
601
+ boolean unclippedDepth = false;
602
602
  };
603
603
 
604
604
  enum GPUFrontFace {
605
605
  "ccw",
606
- "cw"
606
+ "cw",
607
607
  };
608
608
 
609
609
  enum GPUCullMode {
610
610
  "none",
611
611
  "front",
612
- "back"
612
+ "back",
613
613
  };
614
614
 
615
615
  dictionary GPUMultisampleState {
@@ -618,7 +618,7 @@ dictionary GPUMultisampleState {
618
618
  boolean alphaToCoverageEnabled = false;
619
619
  };
620
620
 
621
- dictionary GPUFragmentState: GPUProgrammableStage {
621
+ dictionary GPUFragmentState : GPUProgrammableStage {
622
622
  required sequence<GPUColorTargetState> targets;
623
623
  };
624
624
 
@@ -663,7 +663,7 @@ enum GPUBlendFactor {
663
663
  "one-minus-dst-alpha",
664
664
  "src-alpha-saturated",
665
665
  "constant",
666
- "one-minus-constant"
666
+ "one-minus-constant",
667
667
  };
668
668
 
669
669
  enum GPUBlendOperation {
@@ -671,7 +671,7 @@ enum GPUBlendOperation {
671
671
  "subtract",
672
672
  "reverse-subtract",
673
673
  "min",
674
- "max"
674
+ "max",
675
675
  };
676
676
 
677
677
  dictionary GPUDepthStencilState {
@@ -706,12 +706,12 @@ enum GPUStencilOperation {
706
706
  "increment-clamp",
707
707
  "decrement-clamp",
708
708
  "increment-wrap",
709
- "decrement-wrap"
709
+ "decrement-wrap",
710
710
  };
711
711
 
712
712
  enum GPUIndexFormat {
713
713
  "uint16",
714
- "uint32"
714
+ "uint32",
715
715
  };
716
716
 
717
717
  enum GPUVertexFormat {
@@ -749,10 +749,10 @@ enum GPUVertexFormat {
749
749
 
750
750
  enum GPUVertexStepMode {
751
751
  "vertex",
752
- "instance"
752
+ "instance",
753
753
  };
754
754
 
755
- dictionary GPUVertexState: GPUProgrammableStage {
755
+ dictionary GPUVertexState : GPUProgrammableStage {
756
756
  sequence<GPUVertexBufferLayout?> buffers = [];
757
757
  };
758
758
 
@@ -771,7 +771,6 @@ dictionary GPUVertexAttribute {
771
771
 
772
772
  [Exposed=(Window, DedicatedWorker), SecureContext]
773
773
  interface GPUCommandBuffer {
774
- readonly attribute Promise<double> executionTime;
775
774
  };
776
775
  GPUCommandBuffer includes GPUObjectBase;
777
776
 
@@ -805,6 +804,11 @@ interface GPUCommandEncoder {
805
804
  GPUImageCopyTexture destination,
806
805
  GPUExtent3D copySize);
807
806
 
807
+ undefined clearBuffer(
808
+ GPUBuffer buffer,
809
+ optional GPUSize64 offset = 0,
810
+ optional GPUSize64 size);
811
+
808
812
  undefined pushDebugGroup(USVString groupLabel);
809
813
  undefined popDebugGroup();
810
814
  undefined insertDebugMarker(USVString markerLabel);
@@ -823,7 +827,6 @@ interface GPUCommandEncoder {
823
827
  GPUCommandEncoder includes GPUObjectBase;
824
828
 
825
829
  dictionary GPUCommandEncoderDescriptor : GPUObjectDescriptorBase {
826
- boolean measureExecutionTime = false;
827
830
  };
828
831
 
829
832
  dictionary GPUImageDataLayout {
@@ -873,17 +876,26 @@ interface GPUComputePassEncoder {
873
876
  undefined dispatch(GPUSize32 x, optional GPUSize32 y = 1, optional GPUSize32 z = 1);
874
877
  undefined dispatchIndirect(GPUBuffer indirectBuffer, GPUSize64 indirectOffset);
875
878
 
876
- undefined beginPipelineStatisticsQuery(GPUQuerySet querySet, GPUSize32 queryIndex);
877
- undefined endPipelineStatisticsQuery();
878
-
879
- undefined writeTimestamp(GPUQuerySet querySet, GPUSize32 queryIndex);
880
-
881
879
  undefined endPass();
882
880
  };
883
881
  GPUComputePassEncoder includes GPUObjectBase;
884
882
  GPUComputePassEncoder includes GPUProgrammablePassEncoder;
885
883
 
884
+ enum GPUComputePassTimestampLocation {
885
+ "beginning",
886
+ "end",
887
+ };
888
+
889
+ dictionary GPUComputePassTimestampWrite {
890
+ required GPUQuerySet querySet;
891
+ required GPUSize32 queryIndex;
892
+ required GPUComputePassTimestampLocation location;
893
+ };
894
+
895
+ typedef sequence<GPUComputePassTimestampWrite> GPUComputePassTimestampWrites;
896
+
886
897
  dictionary GPUComputePassDescriptor : GPUObjectDescriptorBase {
898
+ GPUComputePassTimestampWrites timestampWrites = [];
887
899
  };
888
900
 
889
901
  interface mixin GPURenderEncoderBase {
@@ -918,11 +930,6 @@ interface GPURenderPassEncoder {
918
930
  undefined beginOcclusionQuery(GPUSize32 queryIndex);
919
931
  undefined endOcclusionQuery();
920
932
 
921
- undefined beginPipelineStatisticsQuery(GPUQuerySet querySet, GPUSize32 queryIndex);
922
- undefined endPipelineStatisticsQuery();
923
-
924
- undefined writeTimestamp(GPUQuerySet querySet, GPUSize32 queryIndex);
925
-
926
933
  undefined executeBundles(sequence<GPURenderBundle> bundles);
927
934
  undefined endPass();
928
935
  };
@@ -930,10 +937,24 @@ GPURenderPassEncoder includes GPUObjectBase;
930
937
  GPURenderPassEncoder includes GPUProgrammablePassEncoder;
931
938
  GPURenderPassEncoder includes GPURenderEncoderBase;
932
939
 
940
+ enum GPURenderPassTimestampLocation {
941
+ "beginning",
942
+ "end",
943
+ };
944
+
945
+ dictionary GPURenderPassTimestampWrite {
946
+ required GPUQuerySet querySet;
947
+ required GPUSize32 queryIndex;
948
+ required GPURenderPassTimestampLocation location;
949
+ };
950
+
951
+ typedef sequence<GPURenderPassTimestampWrite> GPURenderPassTimestampWrites;
952
+
933
953
  dictionary GPURenderPassDescriptor : GPUObjectDescriptorBase {
934
954
  required sequence<GPURenderPassColorAttachment> colorAttachments;
935
955
  GPURenderPassDepthStencilAttachment depthStencilAttachment;
936
956
  GPUQuerySet occlusionQuerySet;
957
+ GPURenderPassTimestampWrites timestampWrites = [];
937
958
  };
938
959
 
939
960
  dictionary GPURenderPassColorAttachment {
@@ -957,12 +978,12 @@ dictionary GPURenderPassDepthStencilAttachment {
957
978
  };
958
979
 
959
980
  enum GPULoadOp {
960
- "load"
981
+ "load",
961
982
  };
962
983
 
963
984
  enum GPUStoreOp {
964
985
  "store",
965
- "discard"
986
+ "discard",
966
987
  };
967
988
 
968
989
  dictionary GPURenderPassLayout: GPUObjectDescriptorBase {
@@ -1006,10 +1027,10 @@ interface GPUQueue {
1006
1027
  optional GPUSize64 size);
1007
1028
 
1008
1029
  undefined writeTexture(
1009
- GPUImageCopyTexture destination,
1010
- [AllowShared] BufferSource data,
1011
- GPUImageDataLayout dataLayout,
1012
- GPUExtent3D size);
1030
+ GPUImageCopyTexture destination,
1031
+ [AllowShared] BufferSource data,
1032
+ GPUImageDataLayout dataLayout,
1033
+ GPUExtent3D size);
1013
1034
 
1014
1035
  undefined copyExternalImageToTexture(
1015
1036
  GPUImageCopyExternalImage source,
@@ -1027,21 +1048,11 @@ GPUQuerySet includes GPUObjectBase;
1027
1048
  dictionary GPUQuerySetDescriptor : GPUObjectDescriptorBase {
1028
1049
  required GPUQueryType type;
1029
1050
  required GPUSize32 count;
1030
- sequence<GPUPipelineStatisticName> pipelineStatistics = [];
1031
1051
  };
1032
1052
 
1033
1053
  enum GPUQueryType {
1034
1054
  "occlusion",
1035
- "pipeline-statistics",
1036
- "timestamp"
1037
- };
1038
-
1039
- enum GPUPipelineStatisticName {
1040
- "vertex-shader-invocations",
1041
- "clipper-invocations",
1042
- "clipper-primitives-out",
1043
- "fragment-shader-invocations",
1044
- "compute-shader-invocations"
1055
+ "timestamp",
1045
1056
  };
1046
1057
 
1047
1058
  [Exposed=(Window, DedicatedWorker), SecureContext]
@@ -1073,7 +1084,7 @@ enum GPUDeviceLostReason {
1073
1084
  "destroyed",
1074
1085
  };
1075
1086
 
1076
- [Exposed=(Window, DedicatedWorker)]
1087
+ [Exposed=(Window, DedicatedWorker), SecureContext]
1077
1088
  interface GPUDeviceLostInfo {
1078
1089
  readonly attribute (GPUDeviceLostReason or undefined) reason;
1079
1090
  readonly attribute DOMString message;
@@ -1085,15 +1096,15 @@ partial interface GPUDevice {
1085
1096
 
1086
1097
  enum GPUErrorFilter {
1087
1098
  "out-of-memory",
1088
- "validation"
1099
+ "validation",
1089
1100
  };
1090
1101
 
1091
- [Exposed=(Window, DedicatedWorker)]
1102
+ [Exposed=(Window, DedicatedWorker), SecureContext]
1092
1103
  interface GPUOutOfMemoryError {
1093
1104
  constructor();
1094
1105
  };
1095
1106
 
1096
- [Exposed=(Window, DedicatedWorker)]
1107
+ [Exposed=(Window, DedicatedWorker), SecureContext]
1097
1108
  interface GPUValidationError {
1098
1109
  constructor(DOMString message);
1099
1110
  readonly attribute DOMString message;
@@ -1106,9 +1117,7 @@ partial interface GPUDevice {
1106
1117
  Promise<GPUError?> popErrorScope();
1107
1118
  };
1108
1119
 
1109
- [
1110
- Exposed=(Window, DedicatedWorker)
1111
- ]
1120
+ [Exposed=(Window, DedicatedWorker), SecureContext]
1112
1121
  interface GPUUncapturedErrorEvent : Event {
1113
1122
  constructor(
1114
1123
  DOMString type,
package/webmidi.idl CHANGED
@@ -3,6 +3,10 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: Web MIDI API (https://webaudio.github.io/web-midi-api/)
5
5
 
6
+ dictionary MidiPermissionDescriptor : PermissionDescriptor {
7
+ boolean sysex = false;
8
+ };
9
+
6
10
  partial interface Navigator {
7
11
  [SecureContext]
8
12
  Promise <MIDIAccess> requestMIDIAccess(optional MIDIOptions options = {});
package/webnn.idl CHANGED
@@ -133,7 +133,7 @@ partial interface MLGraphBuilder {
133
133
  MLOperand concat(sequence<MLOperand> inputs, long axis);
134
134
  };
135
135
 
136
- enum MLFilterOperandLayout {
136
+ enum MLConv2dFilterOperandLayout {
137
137
  "oihw",
138
138
  "hwio",
139
139
  "ohwi",
@@ -147,22 +147,44 @@ enum MLAutoPad {
147
147
  };
148
148
 
149
149
  dictionary MLConv2dOptions {
150
+ sequence<long> padding;
151
+ sequence<long> strides;
152
+ sequence<long> dilations;
153
+ MLAutoPad autoPad = "explicit";
154
+ long groups = 1;
155
+ MLInputOperandLayout inputLayout = "nchw";
156
+ MLConv2dFilterOperandLayout filterLayout = "oihw";
157
+ MLOperand bias;
158
+ MLOperator activation;
159
+ };
160
+
161
+ partial interface MLGraphBuilder {
162
+ MLOperand conv2d(MLOperand input, MLOperand filter, optional MLConv2dOptions options = {});
163
+ };
164
+
165
+ enum MLConvTranspose2dFilterOperandLayout {
166
+ "iohw",
167
+ "hwoi",
168
+ "ohwi"
169
+ };
170
+
171
+ dictionary MLConvTranspose2dOptions {
150
172
  sequence<long> padding;
151
173
  sequence<long> strides;
152
174
  sequence<long> dilations;
153
175
  sequence<long> outputPadding;
154
176
  sequence<long> outputSizes;
155
177
  MLAutoPad autoPad = "explicit";
156
- boolean transpose = false;
157
178
  long groups = 1;
158
179
  MLInputOperandLayout inputLayout = "nchw";
159
- MLFilterOperandLayout filterLayout = "oihw";
180
+ MLConvTranspose2dFilterOperandLayout filterLayout = "iohw";
160
181
  MLOperand bias;
161
182
  MLOperator activation;
162
183
  };
163
184
 
164
185
  partial interface MLGraphBuilder {
165
- MLOperand conv2d(MLOperand input, MLOperand filter, optional MLConv2dOptions options = {});
186
+ MLOperand convTranspose2d(MLOperand input, MLOperand filter,
187
+ optional MLConvTranspose2dOptions options = {});
166
188
  };
167
189
 
168
190
  partial interface MLGraphBuilder {
package/webrtc.idl CHANGED
@@ -4,11 +4,11 @@
4
4
  // Source: WebRTC 1.0: Real-Time Communication Between Browsers (https://w3c.github.io/webrtc-pc/)
5
5
 
6
6
  dictionary RTCConfiguration {
7
- sequence<RTCIceServer> iceServers;
8
- RTCIceTransportPolicy iceTransportPolicy;
9
- RTCBundlePolicy bundlePolicy;
10
- RTCRtcpMuxPolicy rtcpMuxPolicy;
11
- sequence<RTCCertificate> certificates;
7
+ sequence<RTCIceServer> iceServers = [];
8
+ RTCIceTransportPolicy iceTransportPolicy = "all";
9
+ RTCBundlePolicy bundlePolicy = "balanced";
10
+ RTCRtcpMuxPolicy rtcpMuxPolicy = "require";
11
+ sequence<RTCCertificate> certificates = [];
12
12
  [EnforceRange] octet iceCandidatePoolSize = 0;
13
13
  };
14
14
 
@@ -247,12 +247,12 @@ partial interface RTCPeerConnection {
247
247
  };
248
248
 
249
249
  dictionary RTCCertificateExpiration {
250
- [EnforceRange] DOMTimeStamp expires;
250
+ [EnforceRange] unsigned long long expires;
251
251
  };
252
252
 
253
253
  [Exposed=Window, Serializable]
254
254
  interface RTCCertificate {
255
- readonly attribute DOMTimeStamp expires;
255
+ readonly attribute EpochTimeStamp expires;
256
256
  sequence<RTCDtlsFingerprint> getFingerprints();
257
257
  };
258
258
 
package/webxrlayers.idl CHANGED
@@ -143,6 +143,7 @@ dictionary XRCubeLayerInit : XRLayerInit {
143
143
  constructor(XRSession session, XRWebGLRenderingContext context);
144
144
 
145
145
  readonly attribute double nativeProjectionScaleFactor;
146
+ readonly attribute boolean usesDepthValues;
146
147
 
147
148
  XRProjectionLayer createProjectionLayer(optional XRProjectionLayerInit init = {});
148
149
  XRQuadLayer createQuadLayer(optional XRQuadLayerInit init = {});
@@ -0,0 +1,28 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Window Controls Overlay (https://wicg.github.io/window-controls-overlay/)
5
+
6
+ [SecureContext, Exposed=(Window)]
7
+ partial interface Navigator {
8
+ [SameObject] readonly attribute WindowControlsOverlay windowControlsOverlay;
9
+ };
10
+
11
+ [Exposed=Window]
12
+ interface WindowControlsOverlay : EventTarget {
13
+ readonly attribute boolean visible;
14
+ DOMRect getBoundingClientRect();
15
+ attribute EventHandler ongeometrychange;
16
+ };
17
+
18
+ [Exposed=Window]
19
+ interface WindowControlsOverlayGeometryChangeEvent : Event {
20
+ constructor(DOMString type, WindowControlsOverlayGeometryChangeEventInit eventInitDict);
21
+ [SameObject] readonly attribute DOMRect boundingRect;
22
+ readonly attribute boolean visible;
23
+ };
24
+
25
+ dictionary WindowControlsOverlayGeometryChangeEventInit : EventInit {
26
+ required DOMRect boundingRect;
27
+ boolean visible = false;
28
+ };
@@ -1,13 +0,0 @@
1
- // GENERATED CONTENT - DO NOT EDIT
2
- // Content was automatically extracted by Reffy into webref
3
- // (https://github.com/w3c/webref)
4
- // Source: Page Visibility Level 2 (https://w3c.github.io/page-visibility/)
5
-
6
- enum VisibilityState {
7
- "hidden", "visible"
8
- };
9
-
10
- partial interface Document {
11
- readonly attribute boolean hidden;
12
- readonly attribute VisibilityState visibilityState;
13
- };