@webref/idl 2.12.1 → 3.1.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.
package/WebCryptoAPI.idl CHANGED
@@ -11,6 +11,7 @@ partial interface mixin WindowOrWorkerGlobalScope {
11
11
  interface Crypto {
12
12
  [SecureContext] readonly attribute SubtleCrypto subtle;
13
13
  ArrayBufferView getRandomValues(ArrayBufferView array);
14
+ [SecureContext] DOMString randomUUID();
14
15
  };
15
16
 
16
17
  typedef (object or DOMString) AlgorithmIdentifier;
package/autoplay.idl CHANGED
@@ -9,10 +9,11 @@ enum AutoplayPolicy {
9
9
  "disallowed"
10
10
  };
11
11
 
12
- partial interface Document {
13
- readonly attribute AutoplayPolicy autoplayPolicy;
14
- };
12
+ enum AutoplayPolicyMediaType { "mediaelement", "audiocontext" };
15
13
 
16
- partial interface HTMLMediaElement {
17
- readonly attribute AutoplayPolicy autoplayPolicy;
14
+ [Exposed=Window]
15
+ partial interface Navigator {
16
+ AutoplayPolicy getAutoplayPolicy(AutoplayPolicyMediaType type);
17
+ AutoplayPolicy getAutoplayPolicy(HTMLMediaElement element);
18
+ AutoplayPolicy getAutoplayPolicy(AudioContext context);
18
19
  };
@@ -3,11 +3,12 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: Battery Status API (https://w3c.github.io/battery/)
5
5
 
6
+ [SecureContext]
6
7
  partial interface Navigator {
7
8
  Promise<BatteryManager> getBattery();
8
9
  };
9
10
 
10
- [Exposed=Window]
11
+ [SecureContext, Exposed=Window]
11
12
  interface BatteryManager : EventTarget {
12
13
  readonly attribute boolean charging;
13
14
  readonly attribute unrestricted double chargingTime;
package/compression.idl CHANGED
@@ -3,13 +3,13 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: Compression Streams (https://wicg.github.io/compression/)
5
5
 
6
- [Exposed=(Window,Worker)]
6
+ [Exposed=*]
7
7
  interface CompressionStream {
8
8
  constructor(DOMString format);
9
9
  };
10
10
  CompressionStream includes GenericTransformStream;
11
11
 
12
- [Exposed=(Window,Worker)]
12
+ [Exposed=*]
13
13
  interface DecompressionStream {
14
14
  constructor(DOMString format);
15
15
  };
@@ -8,14 +8,16 @@ callback ComputePressureUpdateCallback = undefined (
8
8
  ComputePressureObserver observer
9
9
  );
10
10
 
11
+ enum ComputePressureTarget { "cpu" };
12
+
11
13
  [Exposed=Window]
12
14
  interface ComputePressureObserver {
13
- constructor(
14
- ComputePressureUpdateCallback callback,
15
- optional ComputePressureObserverOptions options = {}
16
- );
17
- undefined observe();
18
- undefined unobserve();
15
+ constructor(ComputePressureUpdateCallback callback);
16
+ undefined observe(ComputePressureTarget target, optional ComputePressureObserverOptions options = {});
17
+ undefined unobserve(ComputePressureTarget target);
18
+ undefined disconnect();
19
+ sequence<ComputePressureEntry> takeRecords();
20
+ [SameObject] static readonly attribute FrozenArray<DOMString> supportedTargetTypes;
19
21
  };
20
22
 
21
23
  dictionary ComputePressureEntry {
package/css-typed-om.idl CHANGED
@@ -326,22 +326,27 @@ interface CSSColorValue : CSSStyleValue {
326
326
  [Exposed=Window] static (CSSColorValue or CSSStyleValue) parse(USVString cssText);
327
327
  };
328
328
 
329
+ typedef (CSSNumberish or CSSKeywordish) CSSColorRGBComp;
330
+ typedef (CSSNumberish or CSSKeywordish) CSSColorPercent;
331
+ typedef (CSSNumberish or CSSKeywordish) CSSColorNumber;
332
+ typedef (CSSNumberish or CSSKeywordish) CSSColorAngle;
333
+
329
334
  [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
330
335
  interface CSSRGB : CSSColorValue {
331
- constructor(CSSNumberish r, CSSNumberish g, CSSNumberish b, optional CSSNumberish alpha = 1);
332
- attribute CSSNumberish r;
333
- attribute CSSNumberish g;
334
- attribute CSSNumberish b;
335
- attribute CSSNumberish alpha;
336
+ constructor(CSSColorRGBComp r, CSSColorRGBComp g, CSSColorRGBComp b, optional CSSColorPercent alpha = 1);
337
+ attribute CSSColorRGBComp r;
338
+ attribute CSSColorRGBComp g;
339
+ attribute CSSColorRGBComp b;
340
+ attribute CSSColorPercent alpha;
336
341
  };
337
342
 
338
343
  [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
339
344
  interface CSSHSL : CSSColorValue {
340
- constructor(CSSNumericValue h, CSSNumberish s, CSSNumberish l, optional CSSNumberish alpha = 1);
341
- attribute CSSNumericValue h;
342
- attribute CSSNumberish s;
343
- attribute CSSNumberish l;
344
- attribute CSSNumberish alpha;
345
+ constructor(CSSColorAngle h, CSSColorPercent s, CSSColorPercent l, optional CSSColorPercent alpha = 1);
346
+ attribute CSSColorAngle h;
347
+ attribute CSSColorPercent s;
348
+ attribute CSSColorPercent l;
349
+ attribute CSSColorPercent alpha;
345
350
  };
346
351
 
347
352
  [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
@@ -353,37 +358,46 @@ interface CSSHWB : CSSColorValue {
353
358
  attribute CSSNumberish alpha;
354
359
  };
355
360
 
361
+ [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
362
+ interface CSSLab : CSSColorValue {
363
+ constructor(CSSColorPercent l, CSSColorNumber a, CSSColorNumber b, optional CSSColorPercent alpha = 1);
364
+ attribute CSSColorPercent l;
365
+ attribute CSSColorNumber a;
366
+ attribute CSSColorNumber b;
367
+ attribute CSSColorPercent alpha;
368
+ };
369
+
356
370
  [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
357
371
  interface CSSLCH : CSSColorValue {
358
- constructor(CSSNumberish l, CSSNumberish c, CSSNumericValue h, optional CSSNumberish alpha = 1);
359
- attribute CSSNumberish l;
360
- attribute CSSNumberish c;
361
- attribute CSSNumericValue h;
362
- attribute CSSNumberish alpha;
372
+ constructor(CSSColorPercent l, CSSColorPercent c, CSSColorAngle h, optional CSSColorPercent alpha = 1);
373
+ attribute CSSColorPercent l;
374
+ attribute CSSColorPercent c;
375
+ attribute CSSColorAngle h;
376
+ attribute CSSColorPercent alpha;
363
377
  };
364
378
 
365
379
  [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
366
- interface CSSLab : CSSColorValue {
367
- constructor(CSSNumberish l, CSSNumberish a, CSSNumberish b, optional CSSNumberish alpha = 1);
368
- attribute CSSNumberish l;
369
- attribute CSSNumberish a;
370
- attribute CSSNumberish b;
371
- attribute CSSNumberish alpha;
380
+ interface CSSOKLab : CSSColorValue {
381
+ constructor(CSSColorPercent l, CSSColorNumber a, CSSColorNumber b, optional CSSColorPercent alpha = 1);
382
+ attribute CSSColorPercent l;
383
+ attribute CSSColorNumber a;
384
+ attribute CSSColorNumber b;
385
+ attribute CSSColorPercent alpha;
372
386
  };
373
387
 
374
388
  [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
375
- interface CSSColor : CSSColorValue {
376
- constructor(sequence<(DOMString or CSSNumberish)> variant);
377
- /* CSSColor(["foo", 0, 1, .5], ["bar", "yellow"], 1, fallbackColor) */
378
- /* or just make the alpha and fallback successive optional args? */
389
+ interface CSSOKLCH : CSSColorValue {
390
+ constructor(CSSColorPercent l, CSSColorPercent c, CSSColorAngle h, optional CSSColorPercent alpha = 1);
391
+ attribute CSSColorPercent l;
392
+ attribute CSSColorPercent c;
393
+ attribute CSSColorAngle h;
394
+ attribute CSSColorPercent alpha;
379
395
  };
380
396
 
381
397
  [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
382
- interface CSSDeviceCMYK : CSSColorValue {
383
- constructor(CSSNumberish c, CSSNumberish m, CSSNumberish y, CSSNumberish k, optional CSSNumberish alpha = 1);
384
- attribute CSSNumberish c;
385
- attribute CSSNumberish m;
386
- attribute CSSNumberish y;
387
- attribute CSSNumberish k;
398
+ interface CSSColor : CSSColorValue {
399
+ constructor(CSSKeywordish colorSpace, sequence<CSSColorPercent> channels, optional CSSNumberish alpha = 1);
400
+ attribute CSSKeywordish colorSpace;
401
+ attribute ObservableArray<CSSColorPercent> channels;
388
402
  attribute CSSNumberish alpha;
389
403
  };
package/dom.idl CHANGED
@@ -3,7 +3,7 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: DOM Standard (https://dom.spec.whatwg.org/)
5
5
 
6
- [Exposed=(Window,Worker,AudioWorklet)]
6
+ [Exposed=*]
7
7
  interface Event {
8
8
  constructor(DOMString type, optional EventInit eventInitDict = {});
9
9
 
@@ -46,7 +46,7 @@ partial interface Window {
46
46
  [Replaceable] readonly attribute (Event or undefined) event; // legacy
47
47
  };
48
48
 
49
- [Exposed=(Window,Worker)]
49
+ [Exposed=*]
50
50
  interface CustomEvent : Event {
51
51
  constructor(DOMString type, optional CustomEventInit eventInitDict = {});
52
52
 
@@ -59,7 +59,7 @@ dictionary CustomEventInit : EventInit {
59
59
  any detail = null;
60
60
  };
61
61
 
62
- [Exposed=(Window,Worker,AudioWorklet)]
62
+ [Exposed=*]
63
63
  interface EventTarget {
64
64
  constructor();
65
65
 
@@ -82,7 +82,7 @@ dictionary AddEventListenerOptions : EventListenerOptions {
82
82
  AbortSignal signal;
83
83
  };
84
84
 
85
- [Exposed=(Window,Worker)]
85
+ [Exposed=*]
86
86
  interface AbortController {
87
87
  constructor();
88
88
 
@@ -91,9 +91,10 @@ interface AbortController {
91
91
  undefined abort(optional any reason);
92
92
  };
93
93
 
94
- [Exposed=(Window,Worker)]
94
+ [Exposed=*]
95
95
  interface AbortSignal : EventTarget {
96
96
  [NewObject] static AbortSignal abort(optional any reason);
97
+ [Exposed=(Window,Worker), NewObject] static AbortSignal timeout([EnforceRange] unsigned long long milliseconds);
97
98
 
98
99
  readonly attribute boolean aborted;
99
100
  readonly attribute any reason;
package/encoding.idl CHANGED
@@ -18,7 +18,7 @@ dictionary TextDecodeOptions {
18
18
  boolean stream = false;
19
19
  };
20
20
 
21
- [Exposed=(Window,Worker)]
21
+ [Exposed=*]
22
22
  interface TextDecoder {
23
23
  constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {});
24
24
 
@@ -35,7 +35,7 @@ dictionary TextEncoderEncodeIntoResult {
35
35
  unsigned long long written;
36
36
  };
37
37
 
38
- [Exposed=(Window,Worker)]
38
+ [Exposed=*]
39
39
  interface TextEncoder {
40
40
  constructor();
41
41
 
@@ -44,14 +44,14 @@ interface TextEncoder {
44
44
  };
45
45
  TextEncoder includes TextEncoderCommon;
46
46
 
47
- [Exposed=(Window,Worker)]
47
+ [Exposed=*]
48
48
  interface TextDecoderStream {
49
49
  constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {});
50
50
  };
51
51
  TextDecoderStream includes TextDecoderCommon;
52
52
  TextDecoderStream includes GenericTransformStream;
53
53
 
54
- [Exposed=(Window,Worker)]
54
+ [Exposed=*]
55
55
  interface TextEncoderStream {
56
56
  constructor();
57
57
  };
package/event-timing.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: Event Timing API (https://wicg.github.io/event-timing/)
4
+ // Source: Event Timing API (https://w3c.github.io/event-timing/)
5
5
 
6
6
  [Exposed=Window]
7
7
  interface PerformanceEventTiming : PerformanceEntry {
package/hr-time.idl CHANGED
@@ -7,7 +7,7 @@ typedef double DOMHighResTimeStamp;
7
7
 
8
8
  typedef unsigned long long EpochTimeStamp;
9
9
 
10
- [Exposed=(Window,Worker)]
10
+ [Exposed=*]
11
11
  interface Performance : EventTarget {
12
12
  DOMHighResTimeStamp now();
13
13
  readonly attribute DOMHighResTimeStamp timeOrigin;
package/html.idl CHANGED
@@ -1460,12 +1460,12 @@ interface mixin CanvasTextDrawingStyles {
1460
1460
  attribute CanvasTextAlign textAlign; // (default: "start")
1461
1461
  attribute CanvasTextBaseline textBaseline; // (default: "alphabetic")
1462
1462
  attribute CanvasDirection direction; // (default: "inherit")
1463
- attribute double letterSpacing; // (default: 0)
1463
+ attribute DOMString letterSpacing; // (default: "0px")
1464
1464
  attribute CanvasFontKerning fontKerning; // (default: "auto")
1465
1465
  attribute CanvasFontStretch fontStretch; // (default: "normal")
1466
1466
  attribute CanvasFontVariantCaps fontVariantCaps; // (default: "normal")
1467
1467
  attribute CanvasTextRendering textRendering; // (default: "auto")
1468
- attribute double wordSpacing; // (default: 0)
1468
+ attribute DOMString wordSpacing; // (default: "0px")
1469
1469
  };
1470
1470
 
1471
1471
  interface mixin CanvasPath {
@@ -1847,7 +1847,7 @@ interface BeforeUnloadEvent : Event {
1847
1847
  attribute DOMString returnValue;
1848
1848
  };
1849
1849
 
1850
- [Exposed=(Window,Worker)]
1850
+ [Exposed=*]
1851
1851
  interface ErrorEvent : Event {
1852
1852
  constructor(DOMString type, optional ErrorEventInit eventInitDict = {});
1853
1853
 
@@ -1866,7 +1866,7 @@ dictionary ErrorEventInit : EventInit {
1866
1866
  any error = null;
1867
1867
  };
1868
1868
 
1869
- [Exposed=(Window,Worker)]
1869
+ [Exposed=*]
1870
1870
  interface PromiseRejectionEvent : Event {
1871
1871
  constructor(DOMString type, PromiseRejectionEventInit eventInitDict);
1872
1872
 
package/index.js CHANGED
@@ -21,20 +21,20 @@ class IDLFile {
21
21
  }
22
22
  }
23
23
 
24
- async function listAll() {
24
+ async function listAll({folder = __dirname} = {}) {
25
25
  const all = {};
26
- const files = await fs.readdir(__dirname);
26
+ const files = await fs.readdir(folder);
27
27
  for (const f of files) {
28
28
  if (f.endsWith('.idl')) {
29
- const idlFile = new IDLFile(__dirname, f);
29
+ const idlFile = new IDLFile(folder, f);
30
30
  all[idlFile.shortname] = idlFile;
31
31
  }
32
32
  }
33
33
  return all;
34
34
  }
35
35
 
36
- async function parseAll() {
37
- const all = await listAll();
36
+ async function parseAll(options) {
37
+ const all = await listAll(options);
38
38
  for (const [key, value] of Object.entries(all)) {
39
39
  all[key] = await value.parse();
40
40
  }
@@ -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: Largest Contentful Paint (https://wicg.github.io/largest-contentful-paint/)
4
+ // Source: Largest Contentful Paint (https://w3c.github.io/largest-contentful-paint/)
5
5
 
6
6
  [Exposed=Window]
7
7
  interface LargestContentfulPaint : PerformanceEntry {
@@ -28,9 +28,4 @@ interface FontMetadata {
28
28
  readonly attribute USVString fullName;
29
29
  readonly attribute USVString family;
30
30
  readonly attribute USVString style;
31
-
32
- // Metrics
33
- readonly attribute boolean italic;
34
- readonly attribute float stretch;
35
- readonly attribute float weight;
36
31
  };
package/longtasks.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: Long Tasks API 1 (https://w3c.github.io/longtasks/)
4
+ // Source: Long Tasks API (https://w3c.github.io/longtasks/)
5
5
 
6
6
  [Exposed=Window]
7
7
  interface PerformanceLongTaskTiming : PerformanceEntry {
@@ -0,0 +1,20 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Region Capture (https://w3c.github.io/mediacapture-region/)
5
+
6
+ [Exposed = Window]
7
+ interface CropTarget {
8
+ // Intentionally empty; just an opaque identifier.
9
+ };
10
+
11
+ partial interface MediaDevices {
12
+ Promise<CropTarget>
13
+ produceCropTarget(HTMLElement element);
14
+ };
15
+
16
+ [Exposed = Window]
17
+ interface BrowserCaptureMediaStreamTrack : MediaStreamTrack {
18
+ Promise<undefined> cropTo(CropTarget? cropTarget);
19
+ BrowserCaptureMediaStreamTrack clone();
20
+ };
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.12.1",
4
+ "version": "3.1.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -10,7 +10,7 @@ partial interface Performance {
10
10
  };
11
11
  typedef sequence<PerformanceEntry> PerformanceEntryList;
12
12
 
13
- [Exposed=(Window,Worker)]
13
+ [Exposed=*]
14
14
  interface PerformanceEntry {
15
15
  readonly attribute DOMString name;
16
16
  readonly attribute DOMString entryType;
@@ -22,7 +22,7 @@ interface PerformanceEntry {
22
22
  callback PerformanceObserverCallback = undefined (PerformanceObserverEntryList entries,
23
23
  PerformanceObserver observer,
24
24
  optional PerformanceObserverCallbackOptions options = {});
25
- [Exposed=(Window,Worker)]
25
+ [Exposed=*]
26
26
  interface PerformanceObserver {
27
27
  constructor(PerformanceObserverCallback callback);
28
28
  undefined observe (optional PerformanceObserverInit options = {});
@@ -41,7 +41,7 @@ dictionary PerformanceObserverInit {
41
41
  boolean buffered;
42
42
  };
43
43
 
44
- [Exposed=(Window,Worker)]
44
+ [Exposed=*]
45
45
  interface PerformanceObserverEntryList {
46
46
  PerformanceEntryList getEntries();
47
47
  PerformanceEntryList getEntriesByType (DOMString type);
@@ -53,5 +53,5 @@ interface TaskSignal : AbortSignal {
53
53
  };
54
54
 
55
55
  partial interface mixin WindowOrWorkerGlobalScope {
56
- readonly attribute Scheduler scheduler;
56
+ [Replaceable] readonly attribute Scheduler scheduler;
57
57
  };
@@ -42,6 +42,7 @@ dictionary CollectedClientAdditionalPaymentData {
42
42
  dictionary PaymentCredentialInstrument {
43
43
  required DOMString displayName;
44
44
  required USVString icon;
45
+ boolean iconMustBeShown = true;
45
46
  };
46
47
 
47
48
  enum TransactionAutomationMode {
package/streams.idl CHANGED
@@ -3,7 +3,7 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: Streams Standard (https://streams.spec.whatwg.org/)
5
5
 
6
- [Exposed=(Window,Worker,Worklet), Transferable]
6
+ [Exposed=*, Transferable]
7
7
  interface ReadableStream {
8
8
  constructor(optional object underlyingSource, optional QueuingStrategy strategy = {});
9
9
 
@@ -64,7 +64,7 @@ interface mixin ReadableStreamGenericReader {
64
64
  Promise<undefined> cancel(optional any reason);
65
65
  };
66
66
 
67
- [Exposed=(Window,Worker,Worklet)]
67
+ [Exposed=*]
68
68
  interface ReadableStreamDefaultReader {
69
69
  constructor(ReadableStream stream);
70
70
 
@@ -78,7 +78,7 @@ dictionary ReadableStreamDefaultReadResult {
78
78
  boolean done;
79
79
  };
80
80
 
81
- [Exposed=(Window,Worker,Worklet)]
81
+ [Exposed=*]
82
82
  interface ReadableStreamBYOBReader {
83
83
  constructor(ReadableStream stream);
84
84
 
@@ -88,11 +88,11 @@ interface ReadableStreamBYOBReader {
88
88
  ReadableStreamBYOBReader includes ReadableStreamGenericReader;
89
89
 
90
90
  dictionary ReadableStreamBYOBReadResult {
91
- ArrayBufferView value;
91
+ (ArrayBufferView or undefined) value;
92
92
  boolean done;
93
93
  };
94
94
 
95
- [Exposed=(Window,Worker,Worklet)]
95
+ [Exposed=*]
96
96
  interface ReadableStreamDefaultController {
97
97
  readonly attribute unrestricted double? desiredSize;
98
98
 
@@ -101,7 +101,7 @@ interface ReadableStreamDefaultController {
101
101
  undefined error(optional any e);
102
102
  };
103
103
 
104
- [Exposed=(Window,Worker,Worklet)]
104
+ [Exposed=*]
105
105
  interface ReadableByteStreamController {
106
106
  readonly attribute ReadableStreamBYOBRequest? byobRequest;
107
107
  readonly attribute unrestricted double? desiredSize;
@@ -111,7 +111,7 @@ interface ReadableByteStreamController {
111
111
  undefined error(optional any e);
112
112
  };
113
113
 
114
- [Exposed=(Window,Worker,Worklet)]
114
+ [Exposed=*]
115
115
  interface ReadableStreamBYOBRequest {
116
116
  readonly attribute ArrayBufferView? view;
117
117
 
@@ -119,7 +119,7 @@ interface ReadableStreamBYOBRequest {
119
119
  undefined respondWithNewView(ArrayBufferView view);
120
120
  };
121
121
 
122
- [Exposed=(Window,Worker,Worklet), Transferable]
122
+ [Exposed=*, Transferable]
123
123
  interface WritableStream {
124
124
  constructor(optional object underlyingSink, optional QueuingStrategy strategy = {});
125
125
 
@@ -143,7 +143,7 @@ callback UnderlyingSinkWriteCallback = Promise<undefined> (any chunk, WritableSt
143
143
  callback UnderlyingSinkCloseCallback = Promise<undefined> ();
144
144
  callback UnderlyingSinkAbortCallback = Promise<undefined> (optional any reason);
145
145
 
146
- [Exposed=(Window,Worker,Worklet)]
146
+ [Exposed=*]
147
147
  interface WritableStreamDefaultWriter {
148
148
  constructor(WritableStream stream);
149
149
 
@@ -157,13 +157,13 @@ interface WritableStreamDefaultWriter {
157
157
  Promise<undefined> write(optional any chunk);
158
158
  };
159
159
 
160
- [Exposed=(Window,Worker,Worklet)]
160
+ [Exposed=*]
161
161
  interface WritableStreamDefaultController {
162
162
  readonly attribute AbortSignal signal;
163
163
  undefined error(optional any e);
164
164
  };
165
165
 
166
- [Exposed=(Window,Worker,Worklet), Transferable]
166
+ [Exposed=*, Transferable]
167
167
  interface TransformStream {
168
168
  constructor(optional object transformer,
169
169
  optional QueuingStrategy writableStrategy = {},
@@ -185,7 +185,7 @@ callback TransformerStartCallback = any (TransformStreamDefaultController contro
185
185
  callback TransformerFlushCallback = Promise<undefined> (TransformStreamDefaultController controller);
186
186
  callback TransformerTransformCallback = Promise<undefined> (any chunk, TransformStreamDefaultController controller);
187
187
 
188
- [Exposed=(Window,Worker,Worklet)]
188
+ [Exposed=*]
189
189
  interface TransformStreamDefaultController {
190
190
  readonly attribute unrestricted double? desiredSize;
191
191
 
@@ -205,7 +205,7 @@ dictionary QueuingStrategyInit {
205
205
  required unrestricted double highWaterMark;
206
206
  };
207
207
 
208
- [Exposed=(Window,Worker,Worklet)]
208
+ [Exposed=*]
209
209
  interface ByteLengthQueuingStrategy {
210
210
  constructor(QueuingStrategyInit init);
211
211
 
@@ -213,7 +213,7 @@ interface ByteLengthQueuingStrategy {
213
213
  readonly attribute Function size;
214
214
  };
215
215
 
216
- [Exposed=(Window,Worker,Worklet)]
216
+ [Exposed=*]
217
217
  interface CountQueuingStrategy {
218
218
  constructor(QueuingStrategyInit init);
219
219
 
@@ -1,9 +1,9 @@
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: uuid (https://wicg.github.io/uuid/)
4
+ // Source: Test Utils Standard (https://testutils.spec.whatwg.org/)
5
5
 
6
6
  [Exposed=(Window,Worker)]
7
- partial interface Crypto {
8
- [SecureContext] DOMString randomUUID();
7
+ namespace TestUtils {
8
+ [NewObject] Promise<undefined> gc();
9
9
  };
@@ -17,6 +17,7 @@ dictionary UADataValues {
17
17
  DOMString platform;
18
18
  DOMString platformVersion;
19
19
  DOMString uaFullVersion; // deprecated in favor of fullVersionList
20
+ boolean wow64;
20
21
  sequence<NavigatorUABrandVersion> fullVersionList;
21
22
  };
22
23
 
package/url.idl CHANGED
@@ -3,7 +3,7 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: URL Standard (https://url.spec.whatwg.org/)
5
5
 
6
- [Exposed=(Window,Worker),
6
+ [Exposed=*,
7
7
  LegacyWindowAlias=webkitURL]
8
8
  interface URL {
9
9
  constructor(USVString url, optional USVString base);
@@ -24,7 +24,7 @@ interface URL {
24
24
  USVString toJSON();
25
25
  };
26
26
 
27
- [Exposed=(Window,Worker)]
27
+ [Exposed=*]
28
28
  interface URLSearchParams {
29
29
  constructor(optional (sequence<sequence<USVString>> or record<USVString, USVString> or USVString) init = "");
30
30
 
package/urlpattern.idl CHANGED
@@ -50,5 +50,5 @@ dictionary URLPatternResult {
50
50
 
51
51
  dictionary URLPatternComponentResult {
52
52
  USVString input;
53
- record<USVString, USVString> groups;
53
+ record<USVString, (USVString or undefined)> groups;
54
54
  };
package/user-timing.idl CHANGED
@@ -22,13 +22,13 @@ partial interface Performance {
22
22
  undefined clearMeasures(optional DOMString measureName);
23
23
  };
24
24
 
25
- [Exposed=(Window,Worker)]
25
+ [Exposed=*]
26
26
  interface PerformanceMark : PerformanceEntry {
27
27
  constructor(DOMString markName, optional PerformanceMarkOptions markOptions = {});
28
28
  readonly attribute any detail;
29
29
  };
30
30
 
31
- [Exposed=(Window,Worker)]
31
+ [Exposed=*]
32
32
  interface PerformanceMeasure : PerformanceEntry {
33
33
  readonly attribute any detail;
34
34
  };
package/webcodecs.idl CHANGED
@@ -8,7 +8,7 @@ interface AudioDecoder {
8
8
  constructor(AudioDecoderInit init);
9
9
 
10
10
  readonly attribute CodecState state;
11
- readonly attribute long decodeQueueSize;
11
+ readonly attribute unsigned long decodeQueueSize;
12
12
 
13
13
  undefined configure(AudioDecoderConfig config);
14
14
  undefined decode(EncodedAudioChunk chunk);
@@ -31,7 +31,7 @@ interface VideoDecoder {
31
31
  constructor(VideoDecoderInit init);
32
32
 
33
33
  readonly attribute CodecState state;
34
- readonly attribute long decodeQueueSize;
34
+ readonly attribute unsigned long decodeQueueSize;
35
35
 
36
36
  undefined configure(VideoDecoderConfig config);
37
37
  undefined decode(EncodedVideoChunk chunk);
@@ -54,7 +54,7 @@ interface AudioEncoder {
54
54
  constructor(AudioEncoderInit init);
55
55
 
56
56
  readonly attribute CodecState state;
57
- readonly attribute long encodeQueueSize;
57
+ readonly attribute unsigned long encodeQueueSize;
58
58
 
59
59
  undefined configure(AudioEncoderConfig config);
60
60
  undefined encode(AudioData data);
@@ -83,7 +83,7 @@ interface VideoEncoder {
83
83
  constructor(VideoEncoderInit init);
84
84
 
85
85
  readonly attribute CodecState state;
86
- readonly attribute long encodeQueueSize;
86
+ readonly attribute unsigned long encodeQueueSize;
87
87
 
88
88
  undefined configure(VideoEncoderConfig config);
89
89
  undefined encode(VideoFrame frame, optional VideoEncoderEncodeOptions options = {});
@@ -425,6 +425,7 @@ enum VideoMatrixCoefficients {
425
425
  interface ImageDecoder {
426
426
  constructor(ImageDecoderInit init);
427
427
 
428
+ readonly attribute DOMString type;
428
429
  readonly attribute boolean complete;
429
430
  readonly attribute Promise<undefined> completed;
430
431
  readonly attribute ImageTrackList tracks;
@@ -462,16 +463,16 @@ interface ImageTrackList {
462
463
  getter ImageTrack (unsigned long index);
463
464
 
464
465
  readonly attribute Promise<undefined> ready;
465
- [EnforceRange] readonly attribute unsigned long length;
466
- [EnforceRange] readonly attribute long selectedIndex;
466
+ readonly attribute unsigned long length;
467
+ readonly attribute long selectedIndex;
467
468
  readonly attribute ImageTrack? selectedTrack;
468
469
  };
469
470
 
470
471
  [Exposed=(Window,DedicatedWorker)]
471
472
  interface ImageTrack : EventTarget {
472
473
  readonly attribute boolean animated;
473
- [EnforceRange] readonly attribute unsigned long frameCount;
474
- [EnforceRange] readonly attribute unrestricted float repetitionCount;
474
+ readonly attribute unsigned long frameCount;
475
+ readonly attribute unrestricted float repetitionCount;
475
476
  attribute EventHandler onchange;
476
477
  attribute boolean selected;
477
478
  };
package/webgpu.idl CHANGED
@@ -4,7 +4,7 @@
4
4
  // Source: WebGPU (https://gpuweb.github.io/gpuweb/)
5
5
 
6
6
  interface mixin GPUObjectBase {
7
- attribute USVString? label;
7
+ attribute (USVString or undefined) label;
8
8
  };
9
9
 
10
10
  dictionary GPUObjectDescriptorBase {
@@ -181,6 +181,7 @@ dictionary GPUTextureDescriptor : GPUObjectDescriptorBase {
181
181
  GPUTextureDimension dimension = "2d";
182
182
  required GPUTextureFormat format;
183
183
  required GPUTextureUsageFlags usage;
184
+ sequence<GPUTextureFormat> viewFormats = [];
184
185
  };
185
186
 
186
187
  enum GPUTextureDimension {
@@ -624,7 +625,7 @@ dictionary GPUMultisampleState {
624
625
  };
625
626
 
626
627
  dictionary GPUFragmentState : GPUProgrammableStage {
627
- required sequence<GPUColorTargetState> targets;
628
+ required sequence<GPUColorTargetState?> targets;
628
629
  };
629
630
 
630
631
  dictionary GPUColorTargetState {
@@ -882,10 +883,10 @@ interface mixin GPUDebugCommandsMixin {
882
883
  [Exposed=(Window, DedicatedWorker), SecureContext]
883
884
  interface GPUComputePassEncoder {
884
885
  undefined setPipeline(GPUComputePipeline pipeline);
885
- undefined dispatch(GPUSize32 x, optional GPUSize32 y = 1, optional GPUSize32 z = 1);
886
+ undefined dispatch(GPUSize32 workgroupCountX, optional GPUSize32 workgroupCountY = 1, optional GPUSize32 workgroupCountZ = 1);
886
887
  undefined dispatchIndirect(GPUBuffer indirectBuffer, GPUSize64 indirectOffset);
887
888
 
888
- undefined endPass();
889
+ undefined end();
889
890
  };
890
891
  GPUComputePassEncoder includes GPUObjectBase;
891
892
  GPUComputePassEncoder includes GPUCommandsMixin;
@@ -942,7 +943,7 @@ interface GPURenderPassEncoder {
942
943
  undefined endOcclusionQuery();
943
944
 
944
945
  undefined executeBundles(sequence<GPURenderBundle> bundles);
945
- undefined endPass();
946
+ undefined end();
946
947
  };
947
948
  GPURenderPassEncoder includes GPUObjectBase;
948
949
  GPURenderPassEncoder includes GPUCommandsMixin;
@@ -964,7 +965,7 @@ dictionary GPURenderPassTimestampWrite {
964
965
  typedef sequence<GPURenderPassTimestampWrite> GPURenderPassTimestampWrites;
965
966
 
966
967
  dictionary GPURenderPassDescriptor : GPUObjectDescriptorBase {
967
- required sequence<GPURenderPassColorAttachment> colorAttachments;
968
+ required sequence<GPURenderPassColorAttachment?> colorAttachments;
968
969
  GPURenderPassDepthStencilAttachment depthStencilAttachment;
969
970
  GPUQuerySet occlusionQuerySet;
970
971
  GPURenderPassTimestampWrites timestampWrites = [];
@@ -974,24 +975,28 @@ dictionary GPURenderPassColorAttachment {
974
975
  required GPUTextureView view;
975
976
  GPUTextureView resolveTarget;
976
977
 
977
- required (GPULoadOp or GPUColor) loadValue;
978
+ GPUColor clearValue;
979
+ required GPULoadOp loadOp;
978
980
  required GPUStoreOp storeOp;
979
981
  };
980
982
 
981
983
  dictionary GPURenderPassDepthStencilAttachment {
982
984
  required GPUTextureView view;
983
985
 
984
- required (GPULoadOp or float) depthLoadValue;
985
- required GPUStoreOp depthStoreOp;
986
+ float depthClearValue = 0;
987
+ GPULoadOp depthLoadOp;
988
+ GPUStoreOp depthStoreOp;
986
989
  boolean depthReadOnly = false;
987
990
 
988
- required (GPULoadOp or GPUStencilValue) stencilLoadValue;
989
- required GPUStoreOp stencilStoreOp;
991
+ GPUStencilValue stencilClearValue = 0;
992
+ GPULoadOp stencilLoadOp;
993
+ GPUStoreOp stencilStoreOp;
990
994
  boolean stencilReadOnly = false;
991
995
  };
992
996
 
993
997
  enum GPULoadOp {
994
998
  "load",
999
+ "clear",
995
1000
  };
996
1001
 
997
1002
  enum GPUStoreOp {
@@ -1000,7 +1005,7 @@ enum GPUStoreOp {
1000
1005
  };
1001
1006
 
1002
1007
  dictionary GPURenderPassLayout: GPUObjectDescriptorBase {
1003
- required sequence<GPUTextureFormat> colorFormats;
1008
+ required sequence<GPUTextureFormat?> colorFormats;
1004
1009
  GPUTextureFormat depthStencilFormat;
1005
1010
  GPUSize32 sampleCount = 1;
1006
1011
  };
@@ -1090,6 +1095,7 @@ dictionary GPUCanvasConfiguration {
1090
1095
  required GPUDevice device;
1091
1096
  required GPUTextureFormat format;
1092
1097
  GPUTextureUsageFlags usage = 0x10; // GPUTextureUsage.RENDER_ATTACHMENT
1098
+ sequence<GPUTextureFormat> viewFormats = [];
1093
1099
  GPUPredefinedColorSpace colorSpace = "srgb";
1094
1100
  GPUCanvasCompositingAlphaMode compositingAlphaMode = "opaque";
1095
1101
  GPUExtent3D size;
@@ -77,6 +77,7 @@ dictionary RTCEncodedVideoFrameMetadata {
77
77
  long spatialIndex;
78
78
  long temporalIndex;
79
79
  long synchronizationSource;
80
+ octet payloadType;
80
81
  sequence<long> contributingSources;
81
82
  };
82
83
 
@@ -92,6 +93,7 @@ interface RTCEncodedVideoFrame {
92
93
 
93
94
  dictionary RTCEncodedAudioFrameMetadata {
94
95
  long synchronizationSource;
96
+ octet payloadType;
95
97
  sequence<long> contributingSources;
96
98
  };
97
99
 
@@ -118,9 +120,15 @@ interface RTCRtpScriptTransformer {
118
120
  readonly attribute ReadableStream readable;
119
121
  readonly attribute WritableStream writable;
120
122
  readonly attribute any options;
123
+ Promise<undefined> generateKeyFrame(optional sequence <DOMString> rids);
124
+ Promise<undefined> sendKeyFrameRequest();
121
125
  };
122
126
 
123
127
  [Exposed=Window]
124
128
  interface RTCRtpScriptTransform {
125
129
  constructor(Worker worker, optional any options, optional sequence<object> transfer);
126
130
  };
131
+
132
+ partial interface RTCRtpSender {
133
+ Promise<undefined> generateKeyFrame(optional sequence <DOMString> rids);
134
+ };
@@ -3,12 +3,12 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: Identity for WebRTC 1.0 (https://w3c.github.io/webrtc-identity/)
5
5
 
6
- [Global, Exposed=RTCIdentityProviderGlobalScope]
6
+ [Global=(Worker,RTCIdentityProvider), Exposed=RTCIdentityProvider]
7
7
  interface RTCIdentityProviderGlobalScope : WorkerGlobalScope {
8
8
  readonly attribute RTCIdentityProviderRegistrar rtcIdentityProvider;
9
9
  };
10
10
 
11
- [Exposed=RTCIdentityProviderGlobalScope]
11
+ [Exposed=RTCIdentityProvider]
12
12
  interface RTCIdentityProviderRegistrar {
13
13
  undefined register (RTCIdentityProvider idp);
14
14
  };
package/webtransport.idl CHANGED
@@ -58,6 +58,8 @@ dictionary WebTransportStats {
58
58
  unsigned long numIncomingStreamsCreated;
59
59
  unsigned long long bytesReceived;
60
60
  unsigned long long packetsReceived;
61
+ DOMHighResTimeStamp smoothedRtt;
62
+ DOMHighResTimeStamp rttVariation;
61
63
  DOMHighResTimeStamp minRtt;
62
64
  unsigned long numReceivedDatagramsDropped;
63
65
  };
@@ -1,29 +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: Media Capture Depth Stream Extensions (https://w3c.github.io/mediacapture-depth/)
5
-
6
- partial dictionary MediaTrackSupportedConstraints {
7
- // Applies to both depth stream track and color stream track:
8
- boolean videoKind = true;
9
- };
10
-
11
- partial dictionary MediaTrackCapabilities {
12
- // Applies to both depth stream track and color stream track:
13
- DOMString videoKind;
14
- };
15
-
16
- partial dictionary MediaTrackConstraintSet {
17
- // Applies to both depth stream track and color stream track:
18
- ConstrainDOMString videoKind;
19
- };
20
-
21
- partial dictionary MediaTrackSettings {
22
- // Applies to both depth stream track and color stream track:
23
- DOMString videoKind;
24
- };
25
-
26
- enum VideoKindEnum {
27
- "color",
28
- "depth"
29
- };