@webref/idl 3.13.1 → 3.15.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.
@@ -0,0 +1,13 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: CSS Containment Module Level 2 (https://drafts.csswg.org/css-contain-2/)
5
+
6
+ [Exposed=Window]
7
+ interface ContentVisibilityAutoStateChangedEvent : Event {
8
+ constructor(DOMString type, optional ContentVisibilityAutoStateChangedEventInit eventInitDict = {});
9
+ readonly attribute boolean skipped;
10
+ };
11
+ dictionary ContentVisibilityAutoStateChangedEventInit : EventInit {
12
+ boolean skipped = false;
13
+ };
package/device-memory.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: Device Memory 1 (https://w3c.github.io/device-memory/)
4
+ // Source: Device Memory (https://www.w3.org/TR/device-memory/)
5
5
 
6
6
  [
7
7
  SecureContext,
package/html.idl CHANGED
@@ -1364,14 +1364,7 @@ interface mixin CanvasShadowStyles {
1364
1364
 
1365
1365
  interface mixin CanvasFilters {
1366
1366
  // filters
1367
- attribute (DOMString or CanvasFilter) filter; // (default "none")
1368
- };
1369
-
1370
- typedef record<DOMString, any> CanvasFilterInput;
1371
-
1372
- [Exposed=(Window,Worker,PaintWorklet)]
1373
- interface CanvasFilter {
1374
- constructor(optional (CanvasFilterInput or sequence<CanvasFilterInput>) filters);
1367
+ attribute DOMString filter; // (default "none")
1375
1368
  };
1376
1369
 
1377
1370
  interface mixin CanvasRect {
@@ -69,19 +69,19 @@ dictionary AudioConfiguration {
69
69
  };
70
70
 
71
71
  dictionary MediaCapabilitiesKeySystemConfiguration {
72
- required DOMString keySystem;
73
- DOMString initDataType = "";
74
- MediaKeysRequirement distinctiveIdentifier = "optional";
75
- MediaKeysRequirement persistentState = "optional";
76
- sequence<DOMString> sessionTypes;
77
- KeySystemTrackConfiguration audio;
78
- KeySystemTrackConfiguration video;
79
- };
72
+ required DOMString keySystem;
73
+ DOMString initDataType = "";
74
+ MediaKeysRequirement distinctiveIdentifier = "optional";
75
+ MediaKeysRequirement persistentState = "optional";
76
+ sequence<DOMString> sessionTypes;
77
+ KeySystemTrackConfiguration audio;
78
+ KeySystemTrackConfiguration video;
79
+ };
80
80
 
81
81
  dictionary KeySystemTrackConfiguration {
82
- DOMString robustness = "";
83
- DOMString? encryptionScheme = null;
84
- };
82
+ DOMString robustness = "";
83
+ DOMString? encryptionScheme = null;
84
+ };
85
85
 
86
86
  dictionary MediaCapabilitiesInfo {
87
87
  required boolean supported;
@@ -5,5 +5,10 @@
5
5
 
6
6
  partial interface MediaDevices {
7
7
  Promise<MediaStream> getViewportMedia(
8
- optional DisplayMediaStreamConstraints constraints = {});
8
+ optional ViewportMediaStreamConstraints constraints = {});
9
+ };
10
+
11
+ dictionary ViewportMediaStreamConstraints {
12
+ (boolean or MediaTrackConstraints) video = true;
13
+ (boolean or MediaTrackConstraints) audio = false;
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.13.1",
4
+ "version": "3.15.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -4,7 +4,7 @@
4
4
  // Source: Screen Capture (https://w3c.github.io/mediacapture-screen-share/)
5
5
 
6
6
  partial interface MediaDevices {
7
- Promise<MediaStream> getDisplayMedia(optional DisplayMediaStreamConstraints constraints = {});
7
+ Promise<MediaStream> getDisplayMedia(optional DisplayMediaStreamOptions options = {});
8
8
  };
9
9
 
10
10
  enum SelfCapturePreferenceEnum {
@@ -22,7 +22,7 @@ enum SurfaceSwitchingPreferenceEnum {
22
22
  "exclude"
23
23
  };
24
24
 
25
- dictionary DisplayMediaStreamConstraints {
25
+ dictionary DisplayMediaStreamOptions {
26
26
  (boolean or MediaTrackConstraints) video = true;
27
27
  (boolean or MediaTrackConstraints) audio = false;
28
28
  SelfCapturePreferenceEnum selfBrowserSurface;
@@ -3,44 +3,34 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: Scroll-linked Animations (https://drafts.csswg.org/scroll-animations-1/)
5
5
 
6
- enum ScrollDirection {
6
+ enum ScrollAxis {
7
7
  "block",
8
8
  "inline",
9
9
  "horizontal",
10
10
  "vertical"
11
11
  };
12
12
 
13
- enum ScrollTimelineAutoKeyword { "auto" };
14
-
15
- typedef (CSSNumericValue or CSSKeywordish) ContainerBasedOffset;
16
- typedef (ContainerBasedOffset or ElementBasedOffset) ScrollTimelineOffset;
17
-
18
13
  dictionary ScrollTimelineOptions {
19
14
  Element? source;
20
- ScrollDirection orientation = "block";
21
- sequence<ScrollTimelineOffset> scrollOffsets = [];
15
+ ScrollAxis axis = "block";
22
16
  };
23
17
 
24
18
  [Exposed=Window]
25
19
  interface ScrollTimeline : AnimationTimeline {
26
20
  constructor(optional ScrollTimelineOptions options = {});
27
21
  readonly attribute Element? source;
28
- readonly attribute ScrollDirection orientation;
29
- readonly attribute FrozenArray<ScrollTimelineOffset> scrollOffsets;
22
+ readonly attribute ScrollAxis axis;
30
23
  };
31
24
 
32
- enum Edge { "start", "end" };
33
-
34
- dictionary ElementBasedOffset {
35
- Element target;
36
- Edge edge = "start";
37
- double threshold = 0.0;
25
+ dictionary ViewTimelineOptions {
26
+ Element subject;
27
+ ScrollAxis axis = "block";
38
28
  };
39
29
 
40
30
  [Exposed=Window]
41
- interface CSSScrollTimelineRule : CSSRule {
42
- readonly attribute CSSOMString name;
43
- readonly attribute CSSOMString source;
44
- readonly attribute CSSOMString orientation;
45
- readonly attribute CSSOMString scrollOffsets;
31
+ interface ViewTimeline : ScrollTimeline {
32
+ constructor(optional ViewTimelineOptions options = {});
33
+ readonly attribute Element subject;
34
+ readonly attribute CSSNumericValue startOffset;
35
+ readonly attribute CSSNumericValue endOffset;
46
36
  };
@@ -6,7 +6,7 @@
6
6
  dictionary SecurePaymentConfirmationRequest {
7
7
  required BufferSource challenge;
8
8
  required USVString rpId;
9
- required FrozenArray<BufferSource> credentialIds;
9
+ required sequence<BufferSource> credentialIds;
10
10
  required PaymentCredentialInstrument instrument;
11
11
  unsigned long timeout;
12
12
  DOMString payeeName;
@@ -22,7 +22,7 @@ dictionary AuthenticationExtensionsPaymentInputs {
22
22
  boolean isPayment;
23
23
 
24
24
  // Only used for authentication.
25
- USVString rp;
25
+ USVString rpId;
26
26
  USVString topOrigin;
27
27
  DOMString payeeName;
28
28
  USVString payeeOrigin;
@@ -35,7 +35,7 @@ dictionary CollectedClientPaymentData : CollectedClientData {
35
35
  };
36
36
 
37
37
  dictionary CollectedClientAdditionalPaymentData {
38
- required USVString rp;
38
+ required USVString rpId;
39
39
  required USVString topOrigin;
40
40
  DOMString payeeName;
41
41
  USVString payeeOrigin;
package/webauthn.idl CHANGED
@@ -227,6 +227,7 @@ enum AuthenticatorTransport {
227
227
  "usb",
228
228
  "nfc",
229
229
  "ble",
230
+ "hybrid",
230
231
  "internal"
231
232
  };
232
233
 
package/webcodecs.idl CHANGED
@@ -9,6 +9,7 @@ interface AudioDecoder {
9
9
 
10
10
  readonly attribute CodecState state;
11
11
  readonly attribute unsigned long decodeQueueSize;
12
+ attribute EventHandler ondequeue;
12
13
 
13
14
  undefined configure(AudioDecoderConfig config);
14
15
  undefined decode(EncodedAudioChunk chunk);
@@ -32,6 +33,7 @@ interface VideoDecoder {
32
33
 
33
34
  readonly attribute CodecState state;
34
35
  readonly attribute unsigned long decodeQueueSize;
36
+ attribute EventHandler ondequeue;
35
37
 
36
38
  undefined configure(VideoDecoderConfig config);
37
39
  undefined decode(EncodedVideoChunk chunk);
@@ -55,6 +57,7 @@ interface AudioEncoder {
55
57
 
56
58
  readonly attribute CodecState state;
57
59
  readonly attribute unsigned long encodeQueueSize;
60
+ attribute EventHandler ondequeue;
58
61
 
59
62
  undefined configure(AudioEncoderConfig config);
60
63
  undefined encode(AudioData data);
@@ -84,6 +87,7 @@ interface VideoEncoder {
84
87
 
85
88
  readonly attribute CodecState state;
86
89
  readonly attribute unsigned long encodeQueueSize;
90
+ attribute EventHandler ondequeue;
87
91
 
88
92
  undefined configure(VideoEncoderConfig config);
89
93
  undefined encode(VideoFrame frame, optional VideoEncoderEncodeOptions options = {});
@@ -469,10 +473,9 @@ interface ImageTrackList {
469
473
  };
470
474
 
471
475
  [Exposed=(Window,DedicatedWorker)]
472
- interface ImageTrack : EventTarget {
476
+ interface ImageTrack {
473
477
  readonly attribute boolean animated;
474
478
  readonly attribute unsigned long frameCount;
475
479
  readonly attribute unrestricted float repetitionCount;
476
- attribute EventHandler onchange;
477
480
  attribute boolean selected;
478
481
  };
package/webgpu.idl CHANGED
@@ -18,6 +18,7 @@ interface GPUSupportedLimits {
18
18
  readonly attribute unsigned long maxTextureDimension3D;
19
19
  readonly attribute unsigned long maxTextureArrayLayers;
20
20
  readonly attribute unsigned long maxBindGroups;
21
+ readonly attribute unsigned long maxBindingsPerBindGroup;
21
22
  readonly attribute unsigned long maxDynamicUniformBuffersPerPipelineLayout;
22
23
  readonly attribute unsigned long maxDynamicStorageBuffersPerPipelineLayout;
23
24
  readonly attribute unsigned long maxSampledTexturesPerShaderStage;
@@ -30,11 +31,13 @@ interface GPUSupportedLimits {
30
31
  readonly attribute unsigned long minUniformBufferOffsetAlignment;
31
32
  readonly attribute unsigned long minStorageBufferOffsetAlignment;
32
33
  readonly attribute unsigned long maxVertexBuffers;
34
+ readonly attribute unsigned long long maxBufferSize;
33
35
  readonly attribute unsigned long maxVertexAttributes;
34
36
  readonly attribute unsigned long maxVertexBufferArrayStride;
35
37
  readonly attribute unsigned long maxInterStageShaderComponents;
36
38
  readonly attribute unsigned long maxInterStageShaderVariables;
37
39
  readonly attribute unsigned long maxColorAttachments;
40
+ readonly attribute unsigned long maxColorAttachmentBytesPerPixel;
38
41
  readonly attribute unsigned long maxComputeWorkgroupStorageSize;
39
42
  readonly attribute unsigned long maxComputeInvocationsPerWorkgroup;
40
43
  readonly attribute unsigned long maxComputeWorkgroupSizeX;
@@ -140,17 +143,25 @@ GPUDevice includes GPUObjectBase;
140
143
 
141
144
  [Exposed=(Window, DedicatedWorker), SecureContext]
142
145
  interface GPUBuffer {
146
+ readonly attribute GPUSize64 size;
147
+ readonly attribute GPUBufferUsageFlags usage;
148
+
149
+ readonly attribute GPUBufferMapState mapState;
150
+
143
151
  Promise<undefined> mapAsync(GPUMapModeFlags mode, optional GPUSize64 offset = 0, optional GPUSize64 size);
144
152
  ArrayBuffer getMappedRange(optional GPUSize64 offset = 0, optional GPUSize64 size);
145
153
  undefined unmap();
146
154
 
147
155
  undefined destroy();
148
-
149
- readonly attribute GPUSize64 size;
150
- readonly attribute GPUBufferUsageFlags usage;
151
156
  };
152
157
  GPUBuffer includes GPUObjectBase;
153
158
 
159
+ enum GPUBufferMapState {
160
+ "unmapped",
161
+ "pending",
162
+ "mapped"
163
+ };
164
+
154
165
  dictionary GPUBufferDescriptor : GPUObjectDescriptorBase {
155
166
  required GPUSize64 size;
156
167
  required GPUBufferUsageFlags usage;
@@ -1180,7 +1191,7 @@ interface GPUUncapturedErrorEvent : Event {
1180
1191
  DOMString type,
1181
1192
  GPUUncapturedErrorEventInit gpuUncapturedErrorEventInitDict
1182
1193
  );
1183
- readonly attribute GPUError error;
1194
+ [SameObject] readonly attribute GPUError error;
1184
1195
  };
1185
1196
 
1186
1197
  dictionary GPUUncapturedErrorEventInit : EventInit {
package/webnn.idl CHANGED
@@ -31,26 +31,20 @@ interface ML {
31
31
  MLContext createContext(GPUDevice gpuDevice);
32
32
  };
33
33
 
34
- dictionary MLArrayInput {
35
- required ArrayBufferView resource;
36
- required sequence<long> dimensions;
37
- };
38
-
39
- typedef record<DOMString, (ArrayBufferView or MLArrayInput)> MLNamedArrayInputs;
40
- typedef record<DOMString, ArrayBufferView> MLNamedArrayOutputs;
34
+ typedef record<DOMString, ArrayBufferView> MLNamedArrayBufferViews;
41
35
 
42
36
  [SecureContext, Exposed=(Window, DedicatedWorker)]
43
37
  interface MLContext {};
44
38
 
45
39
  partial interface MLContext {
46
40
  [Exposed=(DedicatedWorker)]
47
- undefined compute(MLGraph graph, MLNamedArrayInputs inputs, MLNamedArrayOutputs outputs);
41
+ undefined compute(
42
+ MLGraph graph, MLNamedArrayBufferViews inputs, MLNamedArrayBufferViews outputs);
48
43
  };
49
44
 
50
45
  partial interface MLContext {
51
- Promise<undefined> computeAsync(MLGraph graph, MLNamedArrayInputs inputs,
52
-
53
- MLNamedArrayOutputs outputs);
46
+ Promise<undefined> computeAsync(
47
+ MLGraph graph, MLNamedArrayBufferViews inputs, MLNamedArrayBufferViews outputs);
54
48
  };
55
49
 
56
50
  partial interface MLContext {
@@ -76,8 +70,7 @@ dictionary MLOperandDescriptor {
76
70
  required MLOperandType type;
77
71
 
78
72
  // The dimensions field is only required for tensor operands.
79
- // The negative value means an unknown dimension.
80
- sequence<long> dimensions;
73
+ sequence<unsigned long> dimensions;
81
74
  };
82
75
 
83
76
  [SecureContext, Exposed=(Window, DedicatedWorker)]
@@ -484,13 +477,7 @@ interface MLGraph {};
484
477
 
485
478
  typedef (GPUBuffer or GPUTexture) MLGPUResource;
486
479
 
487
- dictionary MLGPUInput {
488
- required MLGPUResource resource;
489
- required sequence<long> dimensions;
490
- };
491
-
492
- typedef record<DOMString, (MLGPUResource or MLGPUInput)> MLNamedGPUInputs;
493
- typedef record<DOMString, MLGPUResource> MLNamedGPUOutputs;
480
+ typedef record<DOMString, MLGPUResource> MLNamedGPUResources;
494
481
 
495
482
  [SecureContext, Exposed=(Window, DedicatedWorker)]
496
483
  interface MLCommandEncoder {};
@@ -500,7 +487,7 @@ partial interface MLCommandEncoder {
500
487
  };
501
488
 
502
489
  partial interface MLCommandEncoder {
503
- undefined dispatch(MLGraph graph, MLNamedGPUInputs inputs, MLNamedGPUOutputs outputs);
490
+ undefined dispatch(MLGraph graph, MLNamedGPUResources inputs, MLNamedGPUResources outputs);
504
491
  };
505
492
 
506
493
  partial interface MLCommandEncoder {
package/webxr.idl CHANGED
@@ -23,8 +23,8 @@ enum XRSessionMode {
23
23
  };
24
24
 
25
25
  dictionary XRSessionInit {
26
- sequence<any> requiredFeatures;
27
- sequence<any> optionalFeatures;
26
+ sequence<DOMString> requiredFeatures;
27
+ sequence<DOMString> optionalFeatures;
28
28
  };
29
29
 
30
30
  enum XRVisibilityState {
@@ -40,6 +40,7 @@ enum XRVisibilityState {
40
40
  readonly attribute Float32Array? supportedFrameRates;
41
41
  [SameObject] readonly attribute XRRenderState renderState;
42
42
  [SameObject] readonly attribute XRInputSourceArray inputSources;
43
+ readonly attribute FrozenArray<DOMString> enabledFeatures;
43
44
 
44
45
  // Methods
45
46
  undefined updateRenderState(optional XRRenderStateInit state = {});
@@ -283,11 +284,11 @@ dictionary XRSessionSupportedPermissionDescriptor: PermissionDescriptor {
283
284
 
284
285
  dictionary XRPermissionDescriptor: PermissionDescriptor {
285
286
  XRSessionMode mode;
286
- sequence<any> requiredFeatures;
287
- sequence<any> optionalFeatures;
287
+ sequence<DOMString> requiredFeatures;
288
+ sequence<DOMString> optionalFeatures;
288
289
  };
289
290
 
290
291
  [Exposed=Window]
291
292
  interface XRPermissionStatus: PermissionStatus {
292
- attribute FrozenArray<any> granted;
293
+ attribute FrozenArray<DOMString> granted;
293
294
  };