@webref/idl 3.7.1 → 3.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.
package/css-typed-om.idl CHANGED
@@ -345,8 +345,6 @@ interface CSSImageValue : CSSStyleValue {
345
345
 
346
346
  [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
347
347
  interface CSSColorValue : CSSStyleValue {
348
- readonly attribute CSSKeywordValue colorSpace;
349
- CSSColorValue to(CSSKeywordish colorSpace);
350
348
  [Exposed=Window] static (CSSColorValue or CSSStyleValue) parse(USVString cssText);
351
349
  };
352
350
 
package/html.idl CHANGED
@@ -496,16 +496,6 @@ interface HTMLObjectElement : HTMLElement {
496
496
  // also has obsolete members
497
497
  };
498
498
 
499
- [Exposed=Window]
500
- interface HTMLParamElement : HTMLElement {
501
- [HTMLConstructor] constructor();
502
-
503
- [CEReactions] attribute DOMString name;
504
- [CEReactions] attribute DOMString value;
505
-
506
- // also has obsolete members
507
- };
508
-
509
499
  [Exposed=Window]
510
500
  interface HTMLVideoElement : HTMLMediaElement {
511
501
  [HTMLConstructor] constructor();
@@ -2593,7 +2583,12 @@ partial interface HTMLParagraphElement {
2593
2583
  [CEReactions] attribute DOMString align;
2594
2584
  };
2595
2585
 
2596
- partial interface HTMLParamElement {
2586
+ [Exposed=Window]
2587
+ interface HTMLParamElement : HTMLElement {
2588
+ [HTMLConstructor] constructor();
2589
+
2590
+ [CEReactions] attribute DOMString name;
2591
+ [CEReactions] attribute DOMString value;
2597
2592
  [CEReactions] attribute DOMString type;
2598
2593
  [CEReactions] attribute DOMString valueType;
2599
2594
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webref/idl",
3
3
  "description": "Web IDL definitions of the web platform",
4
- "version": "3.7.1",
4
+ "version": "3.9.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -14,17 +14,17 @@ partial dictionary RequestInit {
14
14
  };
15
15
 
16
16
  partial interface HTMLImageElement {
17
- [CEReactions] attribute DOMString fetchpriority;
17
+ [CEReactions] attribute DOMString fetchPriority;
18
18
  };
19
19
 
20
20
  partial interface HTMLLinkElement {
21
- [CEReactions] attribute DOMString fetchpriority;
21
+ [CEReactions] attribute DOMString fetchPriority;
22
22
  };
23
23
 
24
24
  partial interface HTMLScriptElement {
25
- [CEReactions] attribute DOMString fetchpriority;
25
+ [CEReactions] attribute DOMString fetchPriority;
26
26
  };
27
27
 
28
28
  partial interface HTMLIFrameElement {
29
- [CEReactions] attribute DOMString fetchpriority;
29
+ [CEReactions] attribute DOMString fetchPriority;
30
30
  };
package/streams.idl CHANGED
@@ -68,12 +68,12 @@ interface mixin ReadableStreamGenericReader {
68
68
  interface ReadableStreamDefaultReader {
69
69
  constructor(ReadableStream stream);
70
70
 
71
- Promise<ReadableStreamDefaultReadResult> read();
71
+ Promise<ReadableStreamReadResult> read();
72
72
  undefined releaseLock();
73
73
  };
74
74
  ReadableStreamDefaultReader includes ReadableStreamGenericReader;
75
75
 
76
- dictionary ReadableStreamDefaultReadResult {
76
+ dictionary ReadableStreamReadResult {
77
77
  any value;
78
78
  boolean done;
79
79
  };
@@ -82,16 +82,11 @@ dictionary ReadableStreamDefaultReadResult {
82
82
  interface ReadableStreamBYOBReader {
83
83
  constructor(ReadableStream stream);
84
84
 
85
- Promise<ReadableStreamBYOBReadResult> read(ArrayBufferView view);
85
+ Promise<ReadableStreamReadResult> read(ArrayBufferView view);
86
86
  undefined releaseLock();
87
87
  };
88
88
  ReadableStreamBYOBReader includes ReadableStreamGenericReader;
89
89
 
90
- dictionary ReadableStreamBYOBReadResult {
91
- (ArrayBufferView or undefined) value;
92
- boolean done;
93
- };
94
-
95
90
  [Exposed=*]
96
91
  interface ReadableStreamDefaultController {
97
92
  readonly attribute unrestricted double? desiredSize;
package/webaudio.idl CHANGED
@@ -69,6 +69,7 @@ interface AudioContext : BaseAudioContext {
69
69
  constructor (optional AudioContextOptions contextOptions = {});
70
70
  readonly attribute double baseLatency;
71
71
  readonly attribute double outputLatency;
72
+ [SecureContext] readonly attribute AudioRenderCapacity renderCapacity;
72
73
  AudioTimestamp getOutputTimestamp ();
73
74
  Promise<undefined> resume ();
74
75
  Promise<undefined> suspend ();
@@ -90,6 +91,27 @@ dictionary AudioTimestamp {
90
91
  DOMHighResTimeStamp performanceTime;
91
92
  };
92
93
 
94
+ [Exposed=Window]
95
+ interface AudioRenderCapacity {
96
+ undefined start(optional AudioRenderCapacityOptions options = {});
97
+ undefined stop();
98
+ attribute EventHandler onupdate;
99
+ };
100
+
101
+ dictionary AudioRenderCapacityOptions {
102
+ double updateInterval = 1;
103
+ };
104
+
105
+ [Exposed=Window]
106
+ interface AudioRenderCapacityEvent {
107
+ constructor (DOMString type, double timestamp, double averageLoad,
108
+ double peakLoad, double underrunRatio);
109
+ readonly attribute double timestamp;
110
+ readonly attribute double averageLoad;
111
+ readonly attribute double peakLoad;
112
+ readonly attribute double underrunRatio;
113
+ };
114
+
93
115
  [Exposed=Window]
94
116
  interface OfflineAudioContext : BaseAudioContext {
95
117
  constructor(OfflineAudioContextOptions contextOptions);
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 or undefined) label;
7
+ attribute USVString label;
8
8
  };
9
9
 
10
10
  dictionary GPUObjectDescriptorBase {
package/webrtc-stats.idl CHANGED
@@ -283,11 +283,18 @@ dictionary RTCTransportStats : RTCStats {
283
283
  DOMString remoteCertificateId;
284
284
  DOMString tlsVersion;
285
285
  DOMString dtlsCipher;
286
+ RTCDtlsRole dtlsRole;
286
287
  DOMString srtpCipher;
287
288
  DOMString tlsGroup;
288
289
  unsigned long selectedCandidatePairChanges;
289
290
  };
290
291
 
292
+ enum RTCDtlsRole {
293
+ "client",
294
+ "server",
295
+ "unknown",
296
+ };
297
+
291
298
  dictionary RTCSctpTransportStats : RTCStats {
292
299
  DOMString transportId;
293
300
  double smoothedRoundTripTime;
package/webtransport.idl CHANGED
@@ -31,8 +31,8 @@ interface WebTransport {
31
31
  /* a ReadableStream of WebTransportBidirectionalStream objects */
32
32
  readonly attribute ReadableStream incomingBidirectionalStreams;
33
33
 
34
- Promise<WritableStream> createUnidirectionalStream();
35
- /* a ReadableStream of ReceiveStreams */
34
+ Promise<WebTransportSendStream> createUnidirectionalStream();
35
+ /* a ReadableStream of WebTransportReceiveStream objects */
36
36
  readonly attribute ReadableStream incomingUnidirectionalStreams;
37
37
  };
38
38
 
@@ -80,6 +80,29 @@ dictionary WebTransportDatagramStats {
80
80
  unsigned long long lostOutgoing;
81
81
  };
82
82
 
83
+ [Exposed=(Window,Worker), SecureContext]
84
+ interface WebTransportSendStream : WritableStream {
85
+ Promise<WebTransportSendStreamStats> getStats();
86
+ };
87
+
88
+ dictionary WebTransportSendStreamStats {
89
+ DOMHighResTimeStamp timestamp;
90
+ unsigned long long bytesWritten;
91
+ unsigned long long bytesSent;
92
+ unsigned long long bytesAcknowledged;
93
+ };
94
+
95
+ [Exposed=(Window,Worker), SecureContext]
96
+ interface WebTransportReceiveStream : ReadableStream {
97
+ Promise<WebTransportReceiveStreamStats> getStats();
98
+ };
99
+
100
+ dictionary WebTransportReceiveStreamStats {
101
+ DOMHighResTimeStamp timestamp;
102
+ unsigned long long bytesReceived;
103
+ unsigned long long bytesRead;
104
+ };
105
+
83
106
  [Exposed=(Window,Worker), SecureContext]
84
107
  interface WebTransportBidirectionalStream {
85
108
  readonly attribute ReadableStream readable;
@@ -0,0 +1,42 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Multi-Screen Window Placement (https://w3c.github.io/window-placement/)
5
+
6
+ partial interface Screen /* : EventTarget */ {
7
+ [SecureContext]
8
+ readonly attribute boolean isExtended;
9
+
10
+ [SecureContext]
11
+ attribute EventHandler onchange;
12
+ };
13
+
14
+ partial interface Window {
15
+ [SecureContext]
16
+ Promise<ScreenDetails> getScreenDetails();
17
+ };
18
+
19
+ [Exposed=Window, SecureContext]
20
+ interface ScreenDetails : EventTarget {
21
+ readonly attribute FrozenArray<ScreenDetailed> screens;
22
+ readonly attribute ScreenDetailed currentScreen;
23
+
24
+ attribute EventHandler onscreenschange;
25
+ attribute EventHandler oncurrentscreenchange;
26
+ };
27
+
28
+ [Exposed=Window, SecureContext]
29
+ interface ScreenDetailed : Screen {
30
+ readonly attribute long availLeft;
31
+ readonly attribute long availTop;
32
+ readonly attribute long left;
33
+ readonly attribute long top;
34
+ readonly attribute boolean isPrimary;
35
+ readonly attribute boolean isInternal;
36
+ readonly attribute float devicePixelRatio;
37
+ readonly attribute DOMString label;
38
+ };
39
+
40
+ partial dictionary FullscreenOptions {
41
+ ScreenDetailed screen;
42
+ };
package/origin-policy.idl DELETED
@@ -1,8 +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: Origin Policy (https://wicg.github.io/origin-policy/)
5
-
6
- partial interface mixin WindowOrWorkerGlobalScope {
7
- readonly attribute FrozenArray<DOMString> originPolicyIds;
8
- };