@webref/idl 3.70.1 → 3.71.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-fonts.idl CHANGED
@@ -4,8 +4,8 @@
4
4
  // Source: CSS Fonts Module Level 4 (https://drafts.csswg.org/css-fonts-4/)
5
5
 
6
6
  partial interface CSSRule {
7
- const unsigned short FONT_FEATURE_VALUES_RULE = 14;
8
- };
7
+ const unsigned short FONT_FEATURE_VALUES_RULE = 14;
8
+ };
9
9
  [Exposed=Window]
10
10
  interface CSSFontFeatureValuesRule : CSSRule {
11
11
  attribute CSSOMString fontFamily;
@@ -22,13 +22,13 @@ interface CSSFontFeatureValuesRule : CSSRule {
22
22
  interface CSSFontFeatureValuesMap {
23
23
  maplike<CSSOMString, sequence<unsigned long>>;
24
24
  undefined set(CSSOMString featureValueName,
25
- (unsigned long or sequence<unsigned long>) values);
25
+ (unsigned long or sequence<unsigned long>) values);
26
26
  };
27
27
 
28
28
  [Exposed=Window]
29
- interface CSSFontPaletteValuesRule : CSSRule {
30
- readonly attribute CSSOMString name;
31
- readonly attribute CSSOMString fontFamily;
32
- readonly attribute CSSOMString basePalette;
33
- readonly attribute CSSOMString overrideColors;
34
- };
29
+ interface CSSFontPaletteValuesRule : CSSRule {
30
+ readonly attribute CSSOMString name;
31
+ readonly attribute CSSOMString fontFamily;
32
+ readonly attribute CSSOMString basePalette;
33
+ readonly attribute CSSOMString overrideColors;
34
+ };
@@ -1,7 +1,7 @@
1
1
  // GENERATED CONTENT - DO NOT EDIT
2
2
  // Content was automatically extracted by Reffy into webref
3
3
  // (https://github.com/w3c/webref)
4
- // Source: CSS Shadow Parts Module Level 1 (https://drafts.csswg.org/css-shadow-parts-1/)
4
+ // Source: CSS Shadow Module Level 1 (https://drafts.csswg.org/css-shadow-1/)
5
5
 
6
6
  partial interface Element {
7
7
  [SameObject, PutForwards=value] readonly attribute DOMTokenList part;
package/geometry.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: Geometry Interfaces Module Level 1 (https://drafts.csswg.org/geometry/)
4
+ // Source: Geometry Interfaces Module Level 1 (https://drafts.csswg.org/geometry-1/)
5
5
 
6
6
  [Exposed=(Window,Worker),
7
7
  Serializable]
package/model-element.idl CHANGED
@@ -6,4 +6,9 @@
6
6
  [Exposed=Window]
7
7
  interface HTMLModelElement : HTMLElement {
8
8
 
9
+ readonly attribute Promise<HTMLModelElement> ready;
10
+ readonly attribute DOMPointReadOnly boundingBoxCenter;
11
+ readonly attribute DOMPointReadOnly boundingBoxExtents;
12
+ attribute DOMMatrixReadOnly entityTransform;
13
+
9
14
  };
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.70.1",
4
+ "version": "3.71.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -0,0 +1,50 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: The HTML Permission Elements (https://wicg.github.io/PEPC/permission-elements.html)
5
+
6
+ interface mixin InPagePermissionMixin {
7
+ readonly attribute boolean isValid;
8
+ readonly attribute InPagePermissionMixinBlockerReason invalidReason;
9
+ readonly attribute PermissionState initialPermissionStatus;
10
+ readonly attribute PermissionState permissionStatus;
11
+
12
+ attribute EventHandler onpromptaction;
13
+ attribute EventHandler onpromptdismiss;
14
+ attribute EventHandler onvalidationstatuschange;
15
+ };
16
+
17
+ enum InPagePermissionMixinBlockerReason {
18
+ // No blocker reason.
19
+ "",
20
+
21
+ // Blocker reasons supported by all InPagePermissionMixin users.
22
+ "illegal_subframe", "unsuccesful_registration",
23
+ "recently_attached", "intersection_changed",
24
+ "intersection_out_of_viewport_or_clipped",
25
+ "intersection_occluded_or_distorted", "style_invalid",
26
+
27
+ // Blocker reason specific to HTMLPermissionElement.
28
+ "type_invalid",
29
+ };
30
+
31
+ [Exposed=Window]
32
+ interface HTMLPermissionElement : HTMLElement {
33
+ [HTMLConstructor] constructor();
34
+ [CEReactions, Reflect] attribute DOMString type;
35
+ static boolean isTypeSupported(DOMString type);
36
+ };
37
+ HTMLPermissionElement includes InPagePermissionMixin;
38
+
39
+ [Exposed=Window]
40
+ interface HTMLGeolocationElement : HTMLElement {
41
+ [HTMLConstructor] constructor();
42
+
43
+ readonly attribute GeolocationPosition? position;
44
+ readonly attribute GeolocationPositionError? error;
45
+ [CEReactions, Reflect] attribute boolean autolocate;
46
+ [CEReactions, Reflect] attribute boolean watch;
47
+
48
+ attribute EventHandler onlocation;
49
+ };
50
+ HTMLGeolocationElement includes InPagePermissionMixin;
package/webaudio.idl CHANGED
@@ -83,6 +83,7 @@ interface AudioContext : BaseAudioContext {
83
83
  [SecureContext] readonly attribute (DOMString or AudioSinkInfo) sinkId;
84
84
  attribute EventHandler onsinkchange;
85
85
  attribute EventHandler onerror;
86
+ [SameObject] readonly attribute AudioPlaybackStats playbackStats;
86
87
  AudioTimestamp getOutputTimestamp ();
87
88
  Promise<undefined> resume ();
88
89
  Promise<undefined> suspend ();
@@ -655,3 +656,15 @@ dictionary AudioParamDescriptor {
655
656
  float maxValue = 3.4028235e38;
656
657
  AutomationRate automationRate = "a-rate";
657
658
  };
659
+
660
+ [Exposed=Window, SecureContext]
661
+ interface AudioPlaybackStats {
662
+ readonly attribute double underrunDuration;
663
+ readonly attribute unsigned long underrunEvents;
664
+ readonly attribute double totalDuration;
665
+ readonly attribute double averageLatency;
666
+ readonly attribute double minimumLatency;
667
+ readonly attribute double maximumLatency;
668
+ undefined resetLatency();
669
+ [Default] object toJSON();
670
+ };
package/webgl2.idl CHANGED
@@ -452,7 +452,7 @@ interface mixin WebGL2RenderingContextBase
452
452
  WebGLTransformFeedback createTransformFeedback();
453
453
  undefined deleteTransformFeedback(WebGLTransformFeedback? tf);
454
454
  [WebGLHandlesContextLoss] GLboolean isTransformFeedback(WebGLTransformFeedback? tf);
455
- undefined bindTransformFeedback (GLenum target, WebGLTransformFeedback? tf);
455
+ undefined bindTransformFeedback(GLenum target, WebGLTransformFeedback? tf);
456
456
  undefined beginTransformFeedback(GLenum primitiveMode);
457
457
  undefined endTransformFeedback();
458
458
  undefined transformFeedbackVaryings(WebGLProgram program, sequence<DOMString> varyings, GLenum bufferMode);
package/webgpu.idl CHANGED
@@ -258,11 +258,12 @@ enum GPUTextureDimension {
258
258
  typedef [EnforceRange] unsigned long GPUTextureUsageFlags;
259
259
  [Exposed=(Window, Worker), SecureContext]
260
260
  namespace GPUTextureUsage {
261
- const GPUFlagsConstant COPY_SRC = 0x01;
262
- const GPUFlagsConstant COPY_DST = 0x02;
263
- const GPUFlagsConstant TEXTURE_BINDING = 0x04;
264
- const GPUFlagsConstant STORAGE_BINDING = 0x08;
265
- const GPUFlagsConstant RENDER_ATTACHMENT = 0x10;
261
+ const GPUFlagsConstant COPY_SRC = 0x01;
262
+ const GPUFlagsConstant COPY_DST = 0x02;
263
+ const GPUFlagsConstant TEXTURE_BINDING = 0x04;
264
+ const GPUFlagsConstant STORAGE_BINDING = 0x08;
265
+ const GPUFlagsConstant RENDER_ATTACHMENT = 0x10;
266
+ const GPUFlagsConstant TRANSIENT_ATTACHMENT = 0x20;
266
267
  };
267
268
 
268
269
  [Exposed=(Window, Worker), SecureContext]
@@ -3,15 +3,16 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: WebRTC Encoded Transform (https://w3c.github.io/webrtc-encoded-transform/)
5
5
 
6
- typedef (SFrameTransform or RTCRtpScriptTransform) RTCRtpTransform;
6
+ typedef (SFrameSenderTransform or RTCRtpScriptTransform) RTCRtpSenderTransform;
7
+ typedef (SFrameReceiverTransform or RTCRtpScriptTransform) RTCRtpReceiverTransform;
7
8
 
8
9
  // New methods for RTCRtpSender and RTCRtpReceiver
9
10
  partial interface RTCRtpSender {
10
- attribute RTCRtpTransform? transform;
11
+ attribute RTCRtpSenderTransform? transform;
11
12
  };
12
13
 
13
14
  partial interface RTCRtpReceiver {
14
- attribute RTCRtpTransform? transform;
15
+ attribute RTCRtpReceiverTransform? transform;
15
16
  };
16
17
 
17
18
  // List of supported cipher suites, as defined in [[RFC9605]] section 4.5.
@@ -30,30 +31,42 @@ dictionary SFrameTransformOptions {
30
31
  typedef [EnforceRange] unsigned long long SmallCryptoKeyID;
31
32
  typedef (SmallCryptoKeyID or bigint) CryptoKeyID;
32
33
 
33
- interface mixin SFrameKeyManagement {
34
- Promise<undefined> setEncryptionKey(CryptoKey key, optional CryptoKeyID keyID);
34
+ interface mixin SFrameEncrypterManager {
35
+ Promise<undefined> setEncryptionKey(CryptoKey key, CryptoKeyID keyId);
35
36
  attribute EventHandler onerror;
36
37
  };
37
38
 
39
+ interface mixin SFrameDecrypterManager {
40
+ Promise<undefined> addDecryptionKey(CryptoKey key, CryptoKeyID keyId);
41
+ Promise<undefined> removeDecryptionKey(CryptoKeyID keyId);
42
+ attribute EventHandler onerror;
43
+ };
44
+
45
+ [Exposed=Window]
46
+ interface SFrameSenderTransform {
47
+ constructor(optional SFrameTransformOptions options = {});
48
+ };
49
+ SFrameSenderTransform includes SFrameEncrypterManager;
50
+
38
51
  [Exposed=Window]
39
- interface SFrameTransform : EventTarget {
52
+ interface SFrameReceiverTransform : EventTarget {
40
53
  constructor(optional SFrameTransformOptions options = {});
41
54
  };
42
- SFrameTransform includes SFrameKeyManagement;
55
+ SFrameReceiverTransform includes SFrameDecrypterManager;
43
56
 
44
57
  [Exposed=(Window,DedicatedWorker)]
45
58
  interface SFrameEncrypterStream : EventTarget {
46
59
  constructor(optional SFrameTransformOptions options = {});
47
60
  };
48
61
  SFrameEncrypterStream includes GenericTransformStream;
49
- SFrameEncrypterStream includes SFrameKeyManagement;
62
+ SFrameEncrypterStream includes SFrameEncrypterManager;
50
63
 
51
64
  [Exposed=(Window,DedicatedWorker)]
52
65
  interface SFrameDecrypterStream : EventTarget {
53
66
  constructor(optional SFrameTransformOptions options = {});
54
67
  };
55
68
  SFrameDecrypterStream includes GenericTransformStream;
56
- SFrameDecrypterStream includes SFrameKeyManagement;
69
+ SFrameDecrypterStream includes SFrameDecrypterManager;
57
70
 
58
71
  enum SFrameTransformErrorEventType {
59
72
  "authentication",
@@ -126,13 +139,9 @@ interface RTCEncodedAudioFrame {
126
139
  RTCEncodedAudioFrameMetadata getMetadata();
127
140
  };
128
141
 
129
- [Exposed=DedicatedWorker]
130
- interface RTCTransformEvent : Event {
131
- readonly attribute RTCRtpScriptTransformer transformer;
132
- };
133
-
134
- partial interface DedicatedWorkerGlobalScope {
135
- attribute EventHandler onrtctransform;
142
+ [Exposed=Window]
143
+ interface RTCRtpScriptTransform {
144
+ constructor(Worker worker, optional any options, optional sequence<object> transfer);
136
145
  };
137
146
 
138
147
  [Exposed=DedicatedWorker]
@@ -148,9 +157,13 @@ interface RTCRtpScriptTransformer : EventTarget {
148
157
  readonly attribute any options;
149
158
  };
150
159
 
151
- [Exposed=Window]
152
- interface RTCRtpScriptTransform {
153
- constructor(Worker worker, optional any options, optional sequence<object> transfer);
160
+ [Exposed=DedicatedWorker]
161
+ interface RTCTransformEvent : Event {
162
+ readonly attribute RTCRtpScriptTransformer transformer;
163
+ };
164
+
165
+ partial interface DedicatedWorkerGlobalScope {
166
+ attribute EventHandler onrtctransform;
154
167
  };
155
168
 
156
169
  [Exposed=DedicatedWorker]