@webref/idl 2.7.2 → 2.9.0

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;
@@ -7,6 +7,7 @@
7
7
  interface Credential {
8
8
  readonly attribute USVString id;
9
9
  readonly attribute DOMString type;
10
+ static boolean isConditionalMediationAvailable();
10
11
  };
11
12
 
12
13
  [SecureContext]
@@ -39,6 +40,7 @@ dictionary CredentialRequestOptions {
39
40
  enum CredentialMediationRequirement {
40
41
  "silent",
41
42
  "optional",
43
+ "conditional",
42
44
  "required"
43
45
  };
44
46
 
@@ -0,0 +1,18 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: CSS Cascading and Inheritance Level 5 (https://drafts.csswg.org/css-cascade-5/)
5
+
6
+ partial interface CSSImportRule {
7
+ readonly attribute CSSOMString? layerName;
8
+ };
9
+
10
+ [Exposed=Window]
11
+ interface CSSLayerBlockRule : CSSGroupingRule {
12
+ readonly attribute CSSOMString name;
13
+ };
14
+
15
+ [Exposed=Window]
16
+ interface CSSLayerStatementRule : CSSRule {
17
+ readonly attribute FrozenArray<CSSOMString> nameList;
18
+ };
@@ -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
  };
File without changes
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;
@@ -930,6 +933,8 @@ interface HTMLInputElement : HTMLElement {
930
933
  undefined setRangeText(DOMString replacement, unsigned long start, unsigned long end, optional SelectionMode selectionMode = "preserve");
931
934
  undefined setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
932
935
 
936
+ undefined showPicker();
937
+
933
938
  // also has obsolete members
934
939
  };
935
940
 
@@ -1990,9 +1995,9 @@ interface mixin WindowOrWorkerGlobalScope {
1990
1995
 
1991
1996
  // timers
1992
1997
  long setTimeout(TimerHandler handler, optional long timeout = 0, any... arguments);
1993
- undefined clearTimeout(optional long handle = 0);
1998
+ undefined clearTimeout(optional long id = 0);
1994
1999
  long setInterval(TimerHandler handler, optional long timeout = 0, any... arguments);
1995
- undefined clearInterval(optional long handle = 0);
2000
+ undefined clearInterval(optional long id = 0);
1996
2001
 
1997
2002
  // microtask queuing
1998
2003
  undefined queueMicrotask(VoidFunction callback);
@@ -0,0 +1,24 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Manifest Incubations (https://wicg.github.io/manifest-incubations/)
5
+
6
+ [Exposed=Window]
7
+ interface BeforeInstallPromptEvent : Event {
8
+ constructor(DOMString type, optional EventInit eventInitDict = {});
9
+ Promise<PromptResponseObject> prompt();
10
+ };
11
+
12
+ dictionary PromptResponseObject {
13
+ AppBannerPromptOutcome userChoice;
14
+ };
15
+
16
+ enum AppBannerPromptOutcome {
17
+ "accepted",
18
+ "dismissed"
19
+ };
20
+
21
+ partial interface Window {
22
+ attribute EventHandler onappinstalled;
23
+ attribute EventHandler onbeforeinstallprompt;
24
+ };
@@ -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.2",
4
+ "version": "2.9.0",
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,15 +56,3 @@ enum PermissionName {
56
56
  "speaker-selection",
57
57
  "xr-spatial-tracking",
58
58
  };
59
-
60
- dictionary MidiPermissionDescriptor : PermissionDescriptor {
61
- boolean sysex = false;
62
- };
63
-
64
- dictionary DevicePermissionDescriptor : PermissionDescriptor {
65
- DOMString deviceId;
66
- };
67
-
68
- dictionary CameraDevicePermissionDescriptor : DevicePermissionDescriptor {
69
- boolean panTiltZoom = false;
70
- };
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 {
@@ -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: Secure Payment Confirmation (https://w3c.github.io/secure-payment-confirmation)
4
+ // Source: Secure Payment Confirmation (https://w3c.github.io/secure-payment-confirmation/)
5
5
 
6
6
  dictionary SecurePaymentConfirmationRequest {
7
7
  required BufferSource challenge;
@@ -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)]
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
  };
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/web-nfc.idl CHANGED
@@ -51,6 +51,7 @@ interface NDEFReader : EventTarget {
51
51
  Promise<undefined> scan(optional NDEFScanOptions options={});
52
52
  Promise<undefined> write(NDEFMessageSource message,
53
53
  optional NDEFWriteOptions options={});
54
+ Promise<undefined> makeReadOnly(optional NDEFMakeReadOnlyOptions options={});
54
55
  };
55
56
 
56
57
  [SecureContext, Exposed=Window]
@@ -71,6 +72,10 @@ dictionary NDEFWriteOptions {
71
72
  AbortSignal? signal;
72
73
  };
73
74
 
75
+ dictionary NDEFMakeReadOnlyOptions {
76
+ AbortSignal? signal;
77
+ };
78
+
74
79
  dictionary NDEFScanOptions {
75
80
  AbortSignal signal;
76
81
  };
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 {
@@ -517,15 +517,20 @@ interface GPUShaderModule {
517
517
  };
518
518
  GPUShaderModule includes GPUObjectBase;
519
519
 
520
+ dictionary GPUShaderModuleCompilationHint {
521
+ required GPUPipelineLayout layout;
522
+ };
523
+
520
524
  dictionary GPUShaderModuleDescriptor : GPUObjectDescriptorBase {
521
525
  required USVString code;
522
526
  object sourceMap;
527
+ record<USVString, GPUShaderModuleCompilationHint> hints;
523
528
  };
524
529
 
525
530
  enum GPUCompilationMessageType {
526
531
  "error",
527
532
  "warning",
528
- "info"
533
+ "info",
529
534
  };
530
535
 
531
536
  [Exposed=(Window, DedicatedWorker), Serializable, SecureContext]
@@ -588,7 +593,7 @@ enum GPUPrimitiveTopology {
588
593
  "line-list",
589
594
  "line-strip",
590
595
  "triangle-list",
591
- "triangle-strip"
596
+ "triangle-strip",
592
597
  };
593
598
 
594
599
  dictionary GPUPrimitiveState {
@@ -597,19 +602,19 @@ dictionary GPUPrimitiveState {
597
602
  GPUFrontFace frontFace = "ccw";
598
603
  GPUCullMode cullMode = "none";
599
604
 
600
- // Enable depth clamping (requires "depth-clamping" feature)
601
- boolean clampDepth = false;
605
+ // Requires "depth-clip-control" feature.
606
+ boolean unclippedDepth = false;
602
607
  };
603
608
 
604
609
  enum GPUFrontFace {
605
610
  "ccw",
606
- "cw"
611
+ "cw",
607
612
  };
608
613
 
609
614
  enum GPUCullMode {
610
615
  "none",
611
616
  "front",
612
- "back"
617
+ "back",
613
618
  };
614
619
 
615
620
  dictionary GPUMultisampleState {
@@ -618,7 +623,7 @@ dictionary GPUMultisampleState {
618
623
  boolean alphaToCoverageEnabled = false;
619
624
  };
620
625
 
621
- dictionary GPUFragmentState: GPUProgrammableStage {
626
+ dictionary GPUFragmentState : GPUProgrammableStage {
622
627
  required sequence<GPUColorTargetState> targets;
623
628
  };
624
629
 
@@ -663,7 +668,7 @@ enum GPUBlendFactor {
663
668
  "one-minus-dst-alpha",
664
669
  "src-alpha-saturated",
665
670
  "constant",
666
- "one-minus-constant"
671
+ "one-minus-constant",
667
672
  };
668
673
 
669
674
  enum GPUBlendOperation {
@@ -671,7 +676,7 @@ enum GPUBlendOperation {
671
676
  "subtract",
672
677
  "reverse-subtract",
673
678
  "min",
674
- "max"
679
+ "max",
675
680
  };
676
681
 
677
682
  dictionary GPUDepthStencilState {
@@ -706,12 +711,12 @@ enum GPUStencilOperation {
706
711
  "increment-clamp",
707
712
  "decrement-clamp",
708
713
  "increment-wrap",
709
- "decrement-wrap"
714
+ "decrement-wrap",
710
715
  };
711
716
 
712
717
  enum GPUIndexFormat {
713
718
  "uint16",
714
- "uint32"
719
+ "uint32",
715
720
  };
716
721
 
717
722
  enum GPUVertexFormat {
@@ -749,10 +754,10 @@ enum GPUVertexFormat {
749
754
 
750
755
  enum GPUVertexStepMode {
751
756
  "vertex",
752
- "instance"
757
+ "instance",
753
758
  };
754
759
 
755
- dictionary GPUVertexState: GPUProgrammableStage {
760
+ dictionary GPUVertexState : GPUProgrammableStage {
756
761
  sequence<GPUVertexBufferLayout?> buffers = [];
757
762
  };
758
763
 
@@ -771,7 +776,6 @@ dictionary GPUVertexAttribute {
771
776
 
772
777
  [Exposed=(Window, DedicatedWorker), SecureContext]
773
778
  interface GPUCommandBuffer {
774
- readonly attribute Promise<double> executionTime;
775
779
  };
776
780
  GPUCommandBuffer includes GPUObjectBase;
777
781
 
@@ -805,10 +809,10 @@ interface GPUCommandEncoder {
805
809
  GPUImageCopyTexture destination,
806
810
  GPUExtent3D copySize);
807
811
 
808
- undefined fillBuffer(
809
- GPUBuffer destination,
810
- GPUSize64 destinationOffset,
811
- GPUSize64 size);
812
+ undefined clearBuffer(
813
+ GPUBuffer buffer,
814
+ optional GPUSize64 offset = 0,
815
+ optional GPUSize64 size);
812
816
 
813
817
  undefined pushDebugGroup(USVString groupLabel);
814
818
  undefined popDebugGroup();
@@ -828,7 +832,6 @@ interface GPUCommandEncoder {
828
832
  GPUCommandEncoder includes GPUObjectBase;
829
833
 
830
834
  dictionary GPUCommandEncoderDescriptor : GPUObjectDescriptorBase {
831
- boolean measureExecutionTime = false;
832
835
  };
833
836
 
834
837
  dictionary GPUImageDataLayout {
@@ -878,9 +881,6 @@ interface GPUComputePassEncoder {
878
881
  undefined dispatch(GPUSize32 x, optional GPUSize32 y = 1, optional GPUSize32 z = 1);
879
882
  undefined dispatchIndirect(GPUBuffer indirectBuffer, GPUSize64 indirectOffset);
880
883
 
881
- undefined beginPipelineStatisticsQuery(GPUQuerySet querySet, GPUSize32 queryIndex);
882
- undefined endPipelineStatisticsQuery();
883
-
884
884
  undefined endPass();
885
885
  };
886
886
  GPUComputePassEncoder includes GPUObjectBase;
@@ -888,7 +888,7 @@ GPUComputePassEncoder includes GPUProgrammablePassEncoder;
888
888
 
889
889
  enum GPUComputePassTimestampLocation {
890
890
  "beginning",
891
- "end"
891
+ "end",
892
892
  };
893
893
 
894
894
  dictionary GPUComputePassTimestampWrite {
@@ -935,9 +935,6 @@ interface GPURenderPassEncoder {
935
935
  undefined beginOcclusionQuery(GPUSize32 queryIndex);
936
936
  undefined endOcclusionQuery();
937
937
 
938
- undefined beginPipelineStatisticsQuery(GPUQuerySet querySet, GPUSize32 queryIndex);
939
- undefined endPipelineStatisticsQuery();
940
-
941
938
  undefined executeBundles(sequence<GPURenderBundle> bundles);
942
939
  undefined endPass();
943
940
  };
@@ -947,7 +944,7 @@ GPURenderPassEncoder includes GPURenderEncoderBase;
947
944
 
948
945
  enum GPURenderPassTimestampLocation {
949
946
  "beginning",
950
- "end"
947
+ "end",
951
948
  };
952
949
 
953
950
  dictionary GPURenderPassTimestampWrite {
@@ -986,12 +983,12 @@ dictionary GPURenderPassDepthStencilAttachment {
986
983
  };
987
984
 
988
985
  enum GPULoadOp {
989
- "load"
986
+ "load",
990
987
  };
991
988
 
992
989
  enum GPUStoreOp {
993
990
  "store",
994
- "discard"
991
+ "discard",
995
992
  };
996
993
 
997
994
  dictionary GPURenderPassLayout: GPUObjectDescriptorBase {
@@ -1035,10 +1032,10 @@ interface GPUQueue {
1035
1032
  optional GPUSize64 size);
1036
1033
 
1037
1034
  undefined writeTexture(
1038
- GPUImageCopyTexture destination,
1039
- [AllowShared] BufferSource data,
1040
- GPUImageDataLayout dataLayout,
1041
- GPUExtent3D size);
1035
+ GPUImageCopyTexture destination,
1036
+ [AllowShared] BufferSource data,
1037
+ GPUImageDataLayout dataLayout,
1038
+ GPUExtent3D size);
1042
1039
 
1043
1040
  undefined copyExternalImageToTexture(
1044
1041
  GPUImageCopyExternalImage source,
@@ -1056,21 +1053,11 @@ GPUQuerySet includes GPUObjectBase;
1056
1053
  dictionary GPUQuerySetDescriptor : GPUObjectDescriptorBase {
1057
1054
  required GPUQueryType type;
1058
1055
  required GPUSize32 count;
1059
- sequence<GPUPipelineStatisticName> pipelineStatistics = [];
1060
1056
  };
1061
1057
 
1062
1058
  enum GPUQueryType {
1063
1059
  "occlusion",
1064
- "pipeline-statistics",
1065
- "timestamp"
1066
- };
1067
-
1068
- enum GPUPipelineStatisticName {
1069
- "vertex-shader-invocations",
1070
- "clipper-invocations",
1071
- "clipper-primitives-out",
1072
- "fragment-shader-invocations",
1073
- "compute-shader-invocations"
1060
+ "timestamp",
1074
1061
  };
1075
1062
 
1076
1063
  [Exposed=(Window, DedicatedWorker), SecureContext]
@@ -1102,7 +1089,7 @@ enum GPUDeviceLostReason {
1102
1089
  "destroyed",
1103
1090
  };
1104
1091
 
1105
- [Exposed=(Window, DedicatedWorker)]
1092
+ [Exposed=(Window, DedicatedWorker), SecureContext]
1106
1093
  interface GPUDeviceLostInfo {
1107
1094
  readonly attribute (GPUDeviceLostReason or undefined) reason;
1108
1095
  readonly attribute DOMString message;
@@ -1114,15 +1101,15 @@ partial interface GPUDevice {
1114
1101
 
1115
1102
  enum GPUErrorFilter {
1116
1103
  "out-of-memory",
1117
- "validation"
1104
+ "validation",
1118
1105
  };
1119
1106
 
1120
- [Exposed=(Window, DedicatedWorker)]
1107
+ [Exposed=(Window, DedicatedWorker), SecureContext]
1121
1108
  interface GPUOutOfMemoryError {
1122
1109
  constructor();
1123
1110
  };
1124
1111
 
1125
- [Exposed=(Window, DedicatedWorker)]
1112
+ [Exposed=(Window, DedicatedWorker), SecureContext]
1126
1113
  interface GPUValidationError {
1127
1114
  constructor(DOMString message);
1128
1115
  readonly attribute DOMString message;
@@ -1135,9 +1122,7 @@ partial interface GPUDevice {
1135
1122
  Promise<GPUError?> popErrorScope();
1136
1123
  };
1137
1124
 
1138
- [
1139
- Exposed=(Window, DedicatedWorker)
1140
- ]
1125
+ [Exposed=(Window, DedicatedWorker), SecureContext]
1141
1126
  interface GPUUncapturedErrorEvent : Event {
1142
1127
  constructor(
1143
1128
  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/webtransport.idl CHANGED
@@ -46,8 +46,8 @@ dictionary WebTransportOptions {
46
46
  };
47
47
 
48
48
  dictionary WebTransportCloseInfo {
49
- unsigned long closeCode;
50
- DOMString reason;
49
+ unsigned long closeCode = 0;
50
+ DOMString reason = "";
51
51
  };
52
52
 
53
53
  dictionary WebTransportStats {
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 getTitlebarAreaRect();
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
- };