@webref/idl 3.11.0 → 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.
@@ -0,0 +1,12 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Attribution Reporting (https://wicg.github.io/attribution-reporting-api/)
5
+
6
+ interface mixin HTMLAttributionSrcElementUtils {
7
+ [CEReactions] attribute USVString attributionSrc;
8
+ };
9
+
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.0",
4
+ "version": "3.12.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -14,4 +14,4 @@
14
14
  "peerDependencies": {
15
15
  "webidl2": "^24.2.2"
16
16
  }
17
- }
17
+ }
@@ -4,7 +4,7 @@
4
4
  // Source: Visual Viewport API (https://wicg.github.io/visual-viewport/)
5
5
 
6
6
  partial interface Window {
7
- [SameObject, Replaceable] readonly attribute VisualViewport visualViewport;
7
+ [SameObject, Replaceable] readonly attribute VisualViewport? visualViewport;
8
8
  };
9
9
 
10
10
  [Exposed=Window]
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
@@ -33,6 +33,8 @@ interface GPUSupportedLimits {
33
33
  readonly attribute unsigned long maxVertexAttributes;
34
34
  readonly attribute unsigned long maxVertexBufferArrayStride;
35
35
  readonly attribute unsigned long maxInterStageShaderComponents;
36
+ readonly attribute unsigned long maxInterStageShaderVariables;
37
+ readonly attribute unsigned long maxColorAttachments;
36
38
  readonly attribute unsigned long maxComputeWorkgroupStorageSize;
37
39
  readonly attribute unsigned long maxComputeInvocationsPerWorkgroup;
38
40
  readonly attribute unsigned long maxComputeWorkgroupSizeX;
@@ -46,8 +48,12 @@ interface GPUSupportedFeatures {
46
48
  readonly setlike<DOMString>;
47
49
  };
48
50
 
49
- enum GPUPredefinedColorSpace {
50
- "srgb",
51
+ [Exposed=(Window, DedicatedWorker), SecureContext]
52
+ interface GPUAdapterInfo {
53
+ readonly attribute DOMString vendor;
54
+ readonly attribute DOMString architecture;
55
+ readonly attribute DOMString device;
56
+ readonly attribute DOMString description;
51
57
  };
52
58
 
53
59
  interface mixin NavigatorGPU {
@@ -69,17 +75,17 @@ dictionary GPURequestAdapterOptions {
69
75
 
70
76
  enum GPUPowerPreference {
71
77
  "low-power",
72
- "high-performance",
78
+ "high-performance"
73
79
  };
74
80
 
75
81
  [Exposed=(Window, DedicatedWorker), SecureContext]
76
82
  interface GPUAdapter {
77
- readonly attribute DOMString name;
78
83
  [SameObject] readonly attribute GPUSupportedFeatures features;
79
84
  [SameObject] readonly attribute GPUSupportedLimits limits;
80
85
  readonly attribute boolean isFallbackAdapter;
81
86
 
82
87
  Promise<GPUDevice> requestDevice(optional GPUDeviceDescriptor descriptor = {});
88
+ Promise<GPUAdapterInfo> requestAdapterInfo(optional sequence<DOMString> unmaskHints = []);
83
89
  };
84
90
 
85
91
  dictionary GPUDeviceDescriptor : GPUObjectDescriptorBase {
@@ -90,7 +96,6 @@ dictionary GPUDeviceDescriptor : GPUObjectDescriptorBase {
90
96
 
91
97
  enum GPUFeatureName {
92
98
  "depth-clip-control",
93
- "depth24unorm-stencil8",
94
99
  "depth32float-stencil8",
95
100
  "texture-compression-bc",
96
101
  "texture-compression-etc2",
@@ -98,7 +103,7 @@ enum GPUFeatureName {
98
103
  "timestamp-query",
99
104
  "indirect-first-instance",
100
105
  "shader-f16",
101
- "bgra8unorm-storage",
106
+ "bgra8unorm-storage"
102
107
  };
103
108
 
104
109
  [Exposed=(Window, DedicatedWorker), SecureContext]
@@ -139,6 +144,9 @@ interface GPUBuffer {
139
144
  undefined unmap();
140
145
 
141
146
  undefined destroy();
147
+
148
+ readonly attribute GPUSize64 size;
149
+ readonly attribute GPUBufferUsageFlags usage;
142
150
  };
143
151
  GPUBuffer includes GPUObjectBase;
144
152
 
@@ -175,6 +183,15 @@ interface GPUTexture {
175
183
  GPUTextureView createView(optional GPUTextureViewDescriptor descriptor = {});
176
184
 
177
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;
178
195
  };
179
196
  GPUTexture includes GPUObjectBase;
180
197
 
@@ -191,7 +208,7 @@ dictionary GPUTextureDescriptor : GPUObjectDescriptorBase {
191
208
  enum GPUTextureDimension {
192
209
  "1d",
193
210
  "2d",
194
- "3d",
211
+ "3d"
195
212
  };
196
213
 
197
214
  typedef [EnforceRange] unsigned long GPUTextureUsageFlags;
@@ -225,13 +242,13 @@ enum GPUTextureViewDimension {
225
242
  "2d-array",
226
243
  "cube",
227
244
  "cube-array",
228
- "3d",
245
+ "3d"
229
246
  };
230
247
 
231
248
  enum GPUTextureAspect {
232
249
  "all",
233
250
  "stencil-only",
234
- "depth-only",
251
+ "depth-only"
235
252
  };
236
253
 
237
254
  enum GPUTextureFormat {
@@ -289,9 +306,6 @@ enum GPUTextureFormat {
289
306
  "depth24plus-stencil8",
290
307
  "depth32float",
291
308
 
292
- // "depth24unorm-stencil8" feature
293
- "depth24unorm-stencil8",
294
-
295
309
  // "depth32float-stencil8" feature
296
310
  "depth32float-stencil8",
297
311
 
@@ -354,7 +368,7 @@ enum GPUTextureFormat {
354
368
  "astc-12x10-unorm",
355
369
  "astc-12x10-unorm-srgb",
356
370
  "astc-12x12-unorm",
357
- "astc-12x12-unorm-srgb",
371
+ "astc-12x12-unorm-srgb"
358
372
  };
359
373
 
360
374
  [Exposed=(Window, DedicatedWorker), SecureContext]
@@ -365,7 +379,7 @@ GPUExternalTexture includes GPUObjectBase;
365
379
 
366
380
  dictionary GPUExternalTextureDescriptor : GPUObjectDescriptorBase {
367
381
  required HTMLVideoElement source;
368
- GPUPredefinedColorSpace colorSpace = "srgb";
382
+ PredefinedColorSpace colorSpace = "srgb";
369
383
  };
370
384
 
371
385
  [Exposed=(Window, DedicatedWorker), SecureContext]
@@ -389,17 +403,17 @@ dictionary GPUSamplerDescriptor : GPUObjectDescriptorBase {
389
403
  enum GPUAddressMode {
390
404
  "clamp-to-edge",
391
405
  "repeat",
392
- "mirror-repeat",
406
+ "mirror-repeat"
393
407
  };
394
408
 
395
409
  enum GPUFilterMode {
396
410
  "nearest",
397
- "linear",
411
+ "linear"
398
412
  };
399
413
 
400
414
  enum GPUMipmapFilterMode {
401
415
  "nearest",
402
- "linear",
416
+ "linear"
403
417
  };
404
418
 
405
419
  enum GPUCompareFunction {
@@ -410,7 +424,7 @@ enum GPUCompareFunction {
410
424
  "greater",
411
425
  "not-equal",
412
426
  "greater-equal",
413
- "always",
427
+ "always"
414
428
  };
415
429
 
416
430
  [Exposed=(Window, DedicatedWorker), SecureContext]
@@ -444,7 +458,7 @@ namespace GPUShaderStage {
444
458
  enum GPUBufferBindingType {
445
459
  "uniform",
446
460
  "storage",
447
- "read-only-storage",
461
+ "read-only-storage"
448
462
  };
449
463
 
450
464
  dictionary GPUBufferBindingLayout {
@@ -456,7 +470,7 @@ dictionary GPUBufferBindingLayout {
456
470
  enum GPUSamplerBindingType {
457
471
  "filtering",
458
472
  "non-filtering",
459
- "comparison",
473
+ "comparison"
460
474
  };
461
475
 
462
476
  dictionary GPUSamplerBindingLayout {
@@ -468,7 +482,7 @@ enum GPUTextureSampleType {
468
482
  "unfilterable-float",
469
483
  "depth",
470
484
  "sint",
471
- "uint",
485
+ "uint"
472
486
  };
473
487
 
474
488
  dictionary GPUTextureBindingLayout {
@@ -478,7 +492,7 @@ dictionary GPUTextureBindingLayout {
478
492
  };
479
493
 
480
494
  enum GPUStorageTextureAccess {
481
- "write-only",
495
+ "write-only"
482
496
  };
483
497
 
484
498
  dictionary GPUStorageTextureBindingLayout {
@@ -535,13 +549,13 @@ dictionary GPUShaderModuleDescriptor : GPUObjectDescriptorBase {
535
549
  };
536
550
 
537
551
  dictionary GPUShaderModuleCompilationHint {
538
- required (GPUPipelineLayout or GPUAutoLayoutMode) layout;
552
+ (GPUPipelineLayout or GPUAutoLayoutMode) layout;
539
553
  };
540
554
 
541
555
  enum GPUCompilationMessageType {
542
556
  "error",
543
557
  "warning",
544
- "info",
558
+ "info"
545
559
  };
546
560
 
547
561
  [Exposed=(Window, DedicatedWorker), Serializable, SecureContext]
@@ -560,7 +574,7 @@ interface GPUCompilationInfo {
560
574
  };
561
575
 
562
576
  enum GPUAutoLayoutMode {
563
- "auto",
577
+ "auto"
564
578
  };
565
579
 
566
580
  dictionary GPUPipelineDescriptorBase : GPUObjectDescriptorBase {
@@ -618,18 +632,18 @@ enum GPUPrimitiveTopology {
618
632
  "line-list",
619
633
  "line-strip",
620
634
  "triangle-list",
621
- "triangle-strip",
635
+ "triangle-strip"
622
636
  };
623
637
 
624
638
  enum GPUFrontFace {
625
639
  "ccw",
626
- "cw",
640
+ "cw"
627
641
  };
628
642
 
629
643
  enum GPUCullMode {
630
644
  "none",
631
645
  "front",
632
- "back",
646
+ "back"
633
647
  };
634
648
 
635
649
  dictionary GPUMultisampleState {
@@ -683,7 +697,7 @@ enum GPUBlendFactor {
683
697
  "one-minus-dst-alpha",
684
698
  "src-alpha-saturated",
685
699
  "constant",
686
- "one-minus-constant",
700
+ "one-minus-constant"
687
701
  };
688
702
 
689
703
  enum GPUBlendOperation {
@@ -691,7 +705,7 @@ enum GPUBlendOperation {
691
705
  "subtract",
692
706
  "reverse-subtract",
693
707
  "min",
694
- "max",
708
+ "max"
695
709
  };
696
710
 
697
711
  dictionary GPUDepthStencilState {
@@ -726,12 +740,12 @@ enum GPUStencilOperation {
726
740
  "increment-clamp",
727
741
  "decrement-clamp",
728
742
  "increment-wrap",
729
- "decrement-wrap",
743
+ "decrement-wrap"
730
744
  };
731
745
 
732
746
  enum GPUIndexFormat {
733
747
  "uint16",
734
- "uint32",
748
+ "uint32"
735
749
  };
736
750
 
737
751
  enum GPUVertexFormat {
@@ -764,12 +778,12 @@ enum GPUVertexFormat {
764
778
  "sint32",
765
779
  "sint32x2",
766
780
  "sint32x3",
767
- "sint32x4",
781
+ "sint32x4"
768
782
  };
769
783
 
770
784
  enum GPUVertexStepMode {
771
785
  "vertex",
772
- "instance",
786
+ "instance"
773
787
  };
774
788
 
775
789
  dictionary GPUVertexState : GPUProgrammableStage {
@@ -868,7 +882,7 @@ dictionary GPUImageCopyTexture {
868
882
  };
869
883
 
870
884
  dictionary GPUImageCopyTextureTagged : GPUImageCopyTexture {
871
- GPUPredefinedColorSpace colorSpace = "srgb";
885
+ PredefinedColorSpace colorSpace = "srgb";
872
886
  boolean premultipliedAlpha = false;
873
887
  };
874
888
 
@@ -909,7 +923,7 @@ GPUComputePassEncoder includes GPUBindingCommandsMixin;
909
923
 
910
924
  enum GPUComputePassTimestampLocation {
911
925
  "beginning",
912
- "end",
926
+ "end"
913
927
  };
914
928
 
915
929
  dictionary GPUComputePassTimestampWrite {
@@ -950,7 +964,7 @@ GPURenderPassEncoder includes GPURenderCommandsMixin;
950
964
 
951
965
  enum GPURenderPassTimestampLocation {
952
966
  "beginning",
953
- "end",
967
+ "end"
954
968
  };
955
969
 
956
970
  dictionary GPURenderPassTimestampWrite {
@@ -993,12 +1007,12 @@ dictionary GPURenderPassDepthStencilAttachment {
993
1007
 
994
1008
  enum GPULoadOp {
995
1009
  "load",
996
- "clear",
1010
+ "clear"
997
1011
  };
998
1012
 
999
1013
  enum GPUStoreOp {
1000
1014
  "store",
1001
- "discard",
1015
+ "discard"
1002
1016
  };
1003
1017
 
1004
1018
  dictionary GPURenderPassLayout: GPUObjectDescriptorBase {
@@ -1079,6 +1093,9 @@ GPUQueue includes GPUObjectBase;
1079
1093
  [Exposed=(Window, DedicatedWorker), SecureContext]
1080
1094
  interface GPUQuerySet {
1081
1095
  undefined destroy();
1096
+
1097
+ readonly attribute GPUQueryType type;
1098
+ readonly attribute GPUSize32 count;
1082
1099
  };
1083
1100
  GPUQuerySet includes GPUObjectBase;
1084
1101
 
@@ -1089,7 +1106,7 @@ dictionary GPUQuerySetDescriptor : GPUObjectDescriptorBase {
1089
1106
 
1090
1107
  enum GPUQueryType {
1091
1108
  "occlusion",
1092
- "timestamp",
1109
+ "timestamp"
1093
1110
  };
1094
1111
 
1095
1112
  [Exposed=(Window, DedicatedWorker), SecureContext]
@@ -1102,9 +1119,9 @@ interface GPUCanvasContext {
1102
1119
  GPUTexture getCurrentTexture();
1103
1120
  };
1104
1121
 
1105
- enum GPUCanvasCompositingAlphaMode {
1122
+ enum GPUCanvasAlphaMode {
1106
1123
  "opaque",
1107
- "premultiplied",
1124
+ "premultiplied"
1108
1125
  };
1109
1126
 
1110
1127
  dictionary GPUCanvasConfiguration {
@@ -1112,12 +1129,12 @@ dictionary GPUCanvasConfiguration {
1112
1129
  required GPUTextureFormat format;
1113
1130
  GPUTextureUsageFlags usage = 0x10; // GPUTextureUsage.RENDER_ATTACHMENT
1114
1131
  sequence<GPUTextureFormat> viewFormats = [];
1115
- GPUPredefinedColorSpace colorSpace = "srgb";
1116
- GPUCanvasCompositingAlphaMode compositingAlphaMode = "opaque";
1132
+ PredefinedColorSpace colorSpace = "srgb";
1133
+ GPUCanvasAlphaMode alphaMode = "opaque";
1117
1134
  };
1118
1135
 
1119
1136
  enum GPUDeviceLostReason {
1120
- "destroyed",
1137
+ "destroyed"
1121
1138
  };
1122
1139
 
1123
1140
  [Exposed=(Window, DedicatedWorker), SecureContext]
@@ -1132,7 +1149,7 @@ partial interface GPUDevice {
1132
1149
 
1133
1150
  enum GPUErrorFilter {
1134
1151
  "out-of-memory",
1135
- "validation",
1152
+ "validation"
1136
1153
  };
1137
1154
 
1138
1155
  [Exposed=(Window, DedicatedWorker), SecureContext]
@@ -1,20 +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: Attribution Reporting (https://wicg.github.io/conversion-measurement-api/)
5
-
6
- partial interface HTMLAnchorElement {
7
- [CEReactions] attribute USVString attributionDestination;
8
- [CEReactions] attribute DOMString attributionSourceEventId;
9
- [CEReactions] attribute USVString attributionReportTo;
10
- [CEReactions] attribute long long attributionExpiry;
11
- [CEReactions] attribute long long attributionSourcePriority;
12
- };
13
-
14
- dictionary AttributionSourceParams {
15
- required USVString attributionDestination;
16
- required DOMString attributionSourceEventId;
17
- USVString attributionReportTo;
18
- long long attributionExpiry;
19
- long long attributionSourcePriority;
20
- };