@webref/idl 3.11.2 → 3.12.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.
@@ -3,10 +3,10 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: Attribution Reporting (https://wicg.github.io/attribution-reporting-api/)
5
5
 
6
- partial interface HTMLAnchorElement {
6
+ interface mixin HTMLAttributionSrcElementUtils {
7
7
  [CEReactions] attribute USVString attributionSrc;
8
8
  };
9
9
 
10
- partial interface HTMLImageElement {
11
- [CEReactions] attribute USVString attributionSrc;
12
- };
10
+ HTMLAnchorElement includes HTMLAttributionSrcElementUtils;
11
+ HTMLImageElement includes HTMLAttributionSrcElementUtils;
12
+ HTMLScriptElement includes HTMLAttributionSrcElementUtils;
@@ -36,5 +36,5 @@ dictionary PressureRecord {
36
36
  };
37
37
 
38
38
  dictionary PressureObserverOptions {
39
- double frequency;
39
+ double samplerate;
40
40
  };
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://w3c.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/html.idl CHANGED
@@ -1858,7 +1858,7 @@ dictionary ErrorEventInit : EventInit {
1858
1858
  USVString filename = "";
1859
1859
  unsigned long lineno = 0;
1860
1860
  unsigned long colno = 0;
1861
- any error = null;
1861
+ any error;
1862
1862
  };
1863
1863
 
1864
1864
  [Exposed=*]
@@ -5,12 +5,7 @@
5
5
 
6
6
  [Exposed=(Window,Worker), Serializable]
7
7
  interface CropTarget {
8
- // Intentionally empty; just an opaque identifier.
9
- };
10
-
11
- partial interface MediaDevices {
12
- Promise<CropTarget>
13
- produceCropTarget(Element element);
8
+ [SecureContext] static Promise<CropTarget> fromElement(Element element);
14
9
  };
15
10
 
16
11
  [Exposed = Window]
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.11.2",
4
+ "version": "3.12.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
package/web-share.idl CHANGED
@@ -5,7 +5,6 @@
5
5
 
6
6
  partial interface Navigator {
7
7
  [SecureContext] Promise<undefined> share(optional ShareData data = {});
8
-
9
8
  [SecureContext] boolean canShare(optional ShareData data = {});
10
9
  };
11
10
 
package/webgpu.idl CHANGED
@@ -34,6 +34,7 @@ interface GPUSupportedLimits {
34
34
  readonly attribute unsigned long maxVertexBufferArrayStride;
35
35
  readonly attribute unsigned long maxInterStageShaderComponents;
36
36
  readonly attribute unsigned long maxInterStageShaderVariables;
37
+ readonly attribute unsigned long maxColorAttachments;
37
38
  readonly attribute unsigned long maxComputeWorkgroupStorageSize;
38
39
  readonly attribute unsigned long maxComputeInvocationsPerWorkgroup;
39
40
  readonly attribute unsigned long maxComputeWorkgroupSizeX;
@@ -55,10 +56,6 @@ interface GPUAdapterInfo {
55
56
  readonly attribute DOMString description;
56
57
  };
57
58
 
58
- enum GPUPredefinedColorSpace {
59
- "srgb"
60
- };
61
-
62
59
  interface mixin NavigatorGPU {
63
60
  [SameObject, SecureContext] readonly attribute GPU gpu;
64
61
  };
@@ -99,7 +96,6 @@ dictionary GPUDeviceDescriptor : GPUObjectDescriptorBase {
99
96
 
100
97
  enum GPUFeatureName {
101
98
  "depth-clip-control",
102
- "depth24unorm-stencil8",
103
99
  "depth32float-stencil8",
104
100
  "texture-compression-bc",
105
101
  "texture-compression-etc2",
@@ -148,6 +144,9 @@ interface GPUBuffer {
148
144
  undefined unmap();
149
145
 
150
146
  undefined destroy();
147
+
148
+ readonly attribute GPUSize64 size;
149
+ readonly attribute GPUBufferUsageFlags usage;
151
150
  };
152
151
  GPUBuffer includes GPUObjectBase;
153
152
 
@@ -184,6 +183,15 @@ interface GPUTexture {
184
183
  GPUTextureView createView(optional GPUTextureViewDescriptor descriptor = {});
185
184
 
186
185
  undefined destroy();
186
+
187
+ readonly attribute GPUIntegerCoordinate width;
188
+ readonly attribute GPUIntegerCoordinate height;
189
+ readonly attribute GPUIntegerCoordinate depthOrArrayLayers;
190
+ readonly attribute GPUIntegerCoordinate mipLevelCount;
191
+ readonly attribute GPUSize32 sampleCount;
192
+ readonly attribute GPUTextureDimension dimension;
193
+ readonly attribute GPUTextureFormat format;
194
+ readonly attribute GPUTextureUsageFlags usage;
187
195
  };
188
196
  GPUTexture includes GPUObjectBase;
189
197
 
@@ -298,9 +306,6 @@ enum GPUTextureFormat {
298
306
  "depth24plus-stencil8",
299
307
  "depth32float",
300
308
 
301
- // "depth24unorm-stencil8" feature
302
- "depth24unorm-stencil8",
303
-
304
309
  // "depth32float-stencil8" feature
305
310
  "depth32float-stencil8",
306
311
 
@@ -374,7 +379,7 @@ GPUExternalTexture includes GPUObjectBase;
374
379
 
375
380
  dictionary GPUExternalTextureDescriptor : GPUObjectDescriptorBase {
376
381
  required HTMLVideoElement source;
377
- GPUPredefinedColorSpace colorSpace = "srgb";
382
+ PredefinedColorSpace colorSpace = "srgb";
378
383
  };
379
384
 
380
385
  [Exposed=(Window, DedicatedWorker), SecureContext]
@@ -877,7 +882,7 @@ dictionary GPUImageCopyTexture {
877
882
  };
878
883
 
879
884
  dictionary GPUImageCopyTextureTagged : GPUImageCopyTexture {
880
- GPUPredefinedColorSpace colorSpace = "srgb";
885
+ PredefinedColorSpace colorSpace = "srgb";
881
886
  boolean premultipliedAlpha = false;
882
887
  };
883
888
 
@@ -1088,6 +1093,9 @@ GPUQueue includes GPUObjectBase;
1088
1093
  [Exposed=(Window, DedicatedWorker), SecureContext]
1089
1094
  interface GPUQuerySet {
1090
1095
  undefined destroy();
1096
+
1097
+ readonly attribute GPUQueryType type;
1098
+ readonly attribute GPUSize32 count;
1091
1099
  };
1092
1100
  GPUQuerySet includes GPUObjectBase;
1093
1101
 
@@ -1121,7 +1129,7 @@ dictionary GPUCanvasConfiguration {
1121
1129
  required GPUTextureFormat format;
1122
1130
  GPUTextureUsageFlags usage = 0x10; // GPUTextureUsage.RENDER_ATTACHMENT
1123
1131
  sequence<GPUTextureFormat> viewFormats = [];
1124
- GPUPredefinedColorSpace colorSpace = "srgb";
1132
+ PredefinedColorSpace colorSpace = "srgb";
1125
1133
  GPUCanvasAlphaMode alphaMode = "opaque";
1126
1134
  };
1127
1135