@webref/idl 3.32.0 → 3.33.1

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.
@@ -4,9 +4,23 @@
4
4
  // Source: Attribution Reporting (https://wicg.github.io/attribution-reporting-api/)
5
5
 
6
6
  interface mixin HTMLAttributionSrcElementUtils {
7
- [CEReactions] attribute USVString attributionSrc;
7
+ [CEReactions, SecureContext] attribute USVString attributionSrc;
8
8
  };
9
9
 
10
10
  HTMLAnchorElement includes HTMLAttributionSrcElementUtils;
11
11
  HTMLImageElement includes HTMLAttributionSrcElementUtils;
12
12
  HTMLScriptElement includes HTMLAttributionSrcElementUtils;
13
+
14
+ dictionary AttributionReportingRequestOptions {
15
+ required boolean eventSourceEligible;
16
+ required boolean triggerEligible;
17
+ };
18
+
19
+ partial dictionary RequestInit {
20
+ AttributionReportingRequestOptions attributionReporting;
21
+ };
22
+
23
+ partial interface XMLHttpRequest {
24
+ [SecureContext]
25
+ undefined setAttributionReporting(AttributionReportingRequestOptions options);
26
+ };
package/css-cascade-6.idl CHANGED
@@ -5,6 +5,6 @@
5
5
 
6
6
  [Exposed=Window]
7
7
  interface CSSScopeRule : CSSGroupingRule {
8
- readonly attribute CSSOMString start;
9
- readonly attribute CSSOMString end;
8
+ readonly attribute CSSOMString? start;
9
+ readonly attribute CSSOMString? end;
10
10
  };
package/css-cascade.idl CHANGED
@@ -3,10 +3,6 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: CSS Cascading and Inheritance Level 5 (https://drafts.csswg.org/css-cascade-5/)
5
5
 
6
- partial interface CSSImportRule {
7
- readonly attribute CSSOMString? layerName;
8
- };
9
-
10
6
  [Exposed=Window]
11
7
  interface CSSLayerBlockRule : CSSGroupingRule {
12
8
  readonly attribute CSSOMString name;
package/cssom.idl CHANGED
@@ -99,6 +99,7 @@ interface CSSImportRule : CSSRule {
99
99
  readonly attribute USVString href;
100
100
  [SameObject, PutForwards=mediaText] readonly attribute MediaList media;
101
101
  [SameObject] readonly attribute CSSStyleSheet styleSheet;
102
+ readonly attribute CSSOMString? layerName;
102
103
  };
103
104
 
104
105
  [Exposed=Window]
package/fenced-frame.idl CHANGED
@@ -15,32 +15,40 @@ interface HTMLFencedFrameElement : HTMLElement {
15
15
  enum OpaqueProperty {"opaque"};
16
16
 
17
17
  typedef (unsigned long or OpaqueProperty) FencedFrameConfigSize;
18
- typedef (USVString or OpaqueProperty) FencedFrameConfigURL;
18
+ typedef USVString FencedFrameConfigURL;
19
19
 
20
20
  [Exposed=Window]
21
21
  interface FencedFrameConfig {
22
- constructor(USVString url);
23
22
  readonly attribute FencedFrameConfigURL? url;
24
- readonly attribute FencedFrameConfigSize? width;
25
- readonly attribute FencedFrameConfigSize? height;
23
+ readonly attribute FencedFrameConfigSize? containerWidth;
24
+ readonly attribute FencedFrameConfigSize? containerHeight;
25
+ readonly attribute FencedFrameConfigSize? contentWidth;
26
+ readonly attribute FencedFrameConfigSize? contentHeight;
27
+
28
+ undefined setSharedStorageContext(DOMString contextString);
26
29
  };
27
30
 
28
31
  enum FenceReportingDestination {
29
32
  "buyer",
30
33
  "seller",
31
34
  "component-seller",
35
+ "direct-seller",
32
36
  "shared-storage-select-url",
33
37
  };
34
38
 
35
39
  dictionary FenceEvent {
36
40
  required DOMString eventType;
37
41
  required DOMString eventData;
38
- required sequence<DOMString> destination;
42
+ required sequence<FenceReportingDestination> destination;
39
43
  };
40
44
 
45
+ typedef (FenceEvent or DOMString) ReportEventType;
46
+
41
47
  [Exposed=Window]
42
48
  interface Fence {
43
- undefined reportEvent(FenceEvent event);
49
+ undefined reportEvent(ReportEventType event);
50
+ undefined setReportEventDataForAutomaticBeacons(FenceEvent event);
51
+ sequence<FencedFrameConfig> getNestedConfigs();
44
52
  };
45
53
 
46
54
  partial interface Window {
@@ -104,19 +104,19 @@ dictionary MediaTrackConstraintSet {
104
104
  };
105
105
 
106
106
  dictionary MediaTrackSettings {
107
- long width;
108
- long height;
107
+ unsigned long width;
108
+ unsigned long height;
109
109
  double aspectRatio;
110
110
  double frameRate;
111
111
  DOMString facingMode;
112
112
  DOMString resizeMode;
113
- long sampleRate;
114
- long sampleSize;
113
+ unsigned long sampleRate;
114
+ unsigned long sampleSize;
115
115
  boolean echoCancellation;
116
116
  boolean autoGainControl;
117
117
  boolean noiseSuppression;
118
118
  double latency;
119
- long channelCount;
119
+ unsigned long channelCount;
120
120
  DOMString deviceId;
121
121
  DOMString groupId;
122
122
  };
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.32.0",
4
+ "version": "3.33.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -15,6 +15,7 @@ dictionary SecurePaymentConfirmationRequest {
15
15
  sequence<USVString> locale;
16
16
  boolean showOptOut;
17
17
  };
18
+
18
19
  partial dictionary AuthenticationExtensionsClientInputs {
19
20
  AuthenticationExtensionsPaymentInputs payment;
20
21
  };
@@ -30,9 +31,11 @@ dictionary AuthenticationExtensionsPaymentInputs {
30
31
  PaymentCurrencyAmount total;
31
32
  PaymentCredentialInstrument instrument;
32
33
  };
34
+
33
35
  dictionary CollectedClientPaymentData : CollectedClientData {
34
36
  required CollectedClientAdditionalPaymentData payment;
35
37
  };
38
+
36
39
  dictionary CollectedClientAdditionalPaymentData {
37
40
  required USVString rpId;
38
41
  required USVString topOrigin;
@@ -41,6 +44,7 @@ dictionary CollectedClientAdditionalPaymentData {
41
44
  required PaymentCurrencyAmount total;
42
45
  required PaymentCredentialInstrument instrument;
43
46
  };
47
+
44
48
  dictionary PaymentCredentialInstrument {
45
49
  required USVString displayName;
46
50
  required USVString icon;
@@ -23,6 +23,7 @@ enum ServiceWorkerState {
23
23
  "activated",
24
24
  "redundant"
25
25
  };
26
+
26
27
  [SecureContext, Exposed=(Window,Worker)]
27
28
  interface ServiceWorkerRegistration : EventTarget {
28
29
  readonly attribute ServiceWorker? installing;
@@ -45,6 +46,7 @@ enum ServiceWorkerUpdateViaCache {
45
46
  "all",
46
47
  "none"
47
48
  };
49
+
48
50
  partial interface Navigator {
49
51
  [SecureContext, SameObject] readonly attribute ServiceWorkerContainer serviceWorker;
50
52
  };
@@ -52,6 +54,7 @@ partial interface Navigator {
52
54
  partial interface WorkerNavigator {
53
55
  [SecureContext, SameObject] readonly attribute ServiceWorkerContainer serviceWorker;
54
56
  };
57
+
55
58
  [SecureContext, Exposed=(Window,Worker)]
56
59
  interface ServiceWorkerContainer : EventTarget {
57
60
  readonly attribute ServiceWorker? controller;
@@ -69,11 +72,13 @@ interface ServiceWorkerContainer : EventTarget {
69
72
  attribute EventHandler onmessage; // event.source of message events is ServiceWorker object
70
73
  attribute EventHandler onmessageerror;
71
74
  };
75
+
72
76
  dictionary RegistrationOptions {
73
77
  USVString scope;
74
78
  WorkerType type = "classic";
75
79
  ServiceWorkerUpdateViaCache updateViaCache = "imports";
76
80
  };
81
+
77
82
  [SecureContext, Exposed=(Window,Worker)]
78
83
  interface NavigationPreloadManager {
79
84
  Promise<undefined> enable();
@@ -86,6 +91,7 @@ dictionary NavigationPreloadState {
86
91
  boolean enabled = false;
87
92
  ByteString headerValue;
88
93
  };
94
+
89
95
  [Global=(Worker,ServiceWorker), Exposed=ServiceWorker]
90
96
  interface ServiceWorkerGlobalScope : WorkerGlobalScope {
91
97
  [SameObject] readonly attribute Clients clients;
@@ -101,6 +107,7 @@ interface ServiceWorkerGlobalScope : WorkerGlobalScope {
101
107
  attribute EventHandler onmessage;
102
108
  attribute EventHandler onmessageerror;
103
109
  };
110
+
104
111
  [Exposed=ServiceWorker]
105
112
  interface Client {
106
113
  readonly attribute USVString url;
@@ -126,6 +133,7 @@ enum FrameType {
126
133
  "nested",
127
134
  "none"
128
135
  };
136
+
129
137
  [Exposed=ServiceWorker]
130
138
  interface Clients {
131
139
  // The objects returned will be new instances every time
@@ -134,24 +142,29 @@ interface Clients {
134
142
  [NewObject] Promise<WindowClient?> openWindow(USVString url);
135
143
  [NewObject] Promise<undefined> claim();
136
144
  };
145
+
137
146
  dictionary ClientQueryOptions {
138
147
  boolean includeUncontrolled = false;
139
148
  ClientType type = "window";
140
149
  };
150
+
141
151
  enum ClientType {
142
152
  "window",
143
153
  "worker",
144
154
  "sharedworker",
145
155
  "all"
146
156
  };
157
+
147
158
  [Exposed=ServiceWorker]
148
159
  interface ExtendableEvent : Event {
149
160
  constructor(DOMString type, optional ExtendableEventInit eventInitDict = {});
150
161
  undefined waitUntil(Promise<any> f);
151
162
  };
163
+
152
164
  dictionary ExtendableEventInit : EventInit {
153
165
  // Defined for the forward compatibility across the derived events
154
166
  };
167
+
155
168
  [Exposed=ServiceWorker]
156
169
  interface FetchEvent : ExtendableEvent {
157
170
  constructor(DOMString type, FetchEventInit eventInitDict);
@@ -164,6 +177,7 @@ interface FetchEvent : ExtendableEvent {
164
177
 
165
178
  undefined respondWith(Promise<Response> r);
166
179
  };
180
+
167
181
  dictionary FetchEventInit : ExtendableEventInit {
168
182
  required Request request;
169
183
  Promise<any> preloadResponse;
@@ -172,6 +186,7 @@ dictionary FetchEventInit : ExtendableEventInit {
172
186
  DOMString replacesClientId = "";
173
187
  Promise<undefined> handled;
174
188
  };
189
+
175
190
  [Exposed=ServiceWorker]
176
191
  interface ExtendableMessageEvent : ExtendableEvent {
177
192
  constructor(DOMString type, optional ExtendableMessageEventInit eventInitDict = {});
@@ -181,6 +196,7 @@ interface ExtendableMessageEvent : ExtendableEvent {
181
196
  [SameObject] readonly attribute (Client or ServiceWorker or MessagePort)? source;
182
197
  readonly attribute FrozenArray<MessagePort> ports;
183
198
  };
199
+
184
200
  dictionary ExtendableMessageEventInit : ExtendableEventInit {
185
201
  any data = null;
186
202
  USVString origin = "";
@@ -188,9 +204,11 @@ dictionary ExtendableMessageEventInit : ExtendableEventInit {
188
204
  (Client or ServiceWorker or MessagePort)? source = null;
189
205
  sequence<MessagePort> ports = [];
190
206
  };
207
+
191
208
  partial interface mixin WindowOrWorkerGlobalScope {
192
209
  [SecureContext, SameObject] readonly attribute CacheStorage caches;
193
210
  };
211
+
194
212
  [SecureContext, Exposed=(Window,Worker)]
195
213
  interface Cache {
196
214
  [NewObject] Promise<(Response or undefined)> match(RequestInfo request, optional CacheQueryOptions options = {});
@@ -201,11 +219,13 @@ interface Cache {
201
219
  [NewObject] Promise<boolean> delete(RequestInfo request, optional CacheQueryOptions options = {});
202
220
  [NewObject] Promise<FrozenArray<Request>> keys(optional RequestInfo request, optional CacheQueryOptions options = {});
203
221
  };
222
+
204
223
  dictionary CacheQueryOptions {
205
224
  boolean ignoreSearch = false;
206
225
  boolean ignoreMethod = false;
207
226
  boolean ignoreVary = false;
208
227
  };
228
+
209
229
  [SecureContext, Exposed=(Window,Worker)]
210
230
  interface CacheStorage {
211
231
  [NewObject] Promise<(Response or undefined)> match(RequestInfo request, optional MultiCacheQueryOptions options = {});
package/turtledove.idl CHANGED
@@ -9,7 +9,7 @@ partial interface Navigator {
9
9
  };
10
10
 
11
11
  dictionary AuctionAd {
12
- required USVString renderUrl;
12
+ required USVString renderURL;
13
13
  any metadata;
14
14
  };
15
15
 
@@ -23,16 +23,26 @@ dictionary AuctionAdInterestGroup {
23
23
  record<DOMString, double> prioritySignalsOverrides;
24
24
 
25
25
  DOMString executionMode = "compatibility";
26
- USVString biddingLogicUrl;
27
- USVString biddingWasmHelperUrl;
28
- USVString dailyUpdateUrl;
29
- USVString trustedBiddingSignalsUrl;
26
+ USVString biddingLogicURL;
27
+ USVString biddingWasmHelperURL;
28
+ USVString dailyUpdateURL;
29
+ USVString trustedBiddingSignalsURL;
30
30
  sequence<USVString> trustedBiddingSignalsKeys;
31
31
  any userBiddingSignals;
32
32
  sequence<AuctionAd> ads;
33
33
  sequence<AuctionAd> adComponents;
34
34
  };
35
35
 
36
+ [SecureContext]
37
+ partial interface Navigator {
38
+ Promise<undefined> leaveAdInterestGroup(AuctionAdInterestGroupKey group);
39
+ };
40
+
41
+ dictionary AuctionAdInterestGroupKey {
42
+ required USVString owner;
43
+ required USVString name;
44
+ };
45
+
36
46
  [SecureContext]
37
47
  partial interface Navigator {
38
48
  Promise<USVString?> runAdAuction(AuctionAdConfig config);
@@ -40,8 +50,8 @@ partial interface Navigator {
40
50
 
41
51
  dictionary AuctionAdConfig {
42
52
  required USVString seller;
43
- required USVString decisionLogicUrl;
44
- USVString trustedScoringSignalsUrl;
53
+ required USVString decisionLogicURL;
54
+ USVString trustedScoringSignalsURL;
45
55
  sequence<USVString> interestGroupBuyers;
46
56
  any auctionSignals;
47
57
  any sellerSignals;
@@ -56,3 +66,44 @@ dictionary AuctionAdConfig {
56
66
  sequence<AuctionAdConfig> componentAuctions = [];
57
67
  AbortSignal? signal;
58
68
  };
69
+
70
+ [Exposed=InterestGroupBiddingScriptRunnerGlobalScope,
71
+ Global=InterestGroupBiddingScriptRunnerGlobalScope]
72
+ interface InterestGroupBiddingScriptRunnerGlobalScope {
73
+ boolean setBid();
74
+ boolean setBid(GenerateBidOutput generateBidOutput);
75
+ undefined setPriority(double priority);
76
+ undefined setPrioritySignalsOverride(DOMString key, double priority);
77
+ };
78
+
79
+ [Exposed=InterestGroupScoringScriptRunnerGlobalScope,
80
+ Global=InterestGroupScoringScriptRunnerGlobalScope]
81
+ interface InterestGroupScoringScriptRunnerGlobalScope {
82
+ };
83
+
84
+ [Exposed=InterestGroupReportingScriptRunnerGlobalScope,
85
+ Global=InterestGroupReportingScriptRunnerGlobalScope]
86
+ interface InterestGroupReportingScriptRunnerGlobalScope {
87
+ undefined sendReportTo(DOMString url);
88
+ };
89
+
90
+ dictionary AdRender {
91
+ required DOMString url;
92
+ required DOMString width;
93
+ required DOMString height;
94
+ };
95
+
96
+ dictionary GenerateBidOutput {
97
+ required double bid;
98
+ required (DOMString or AdRender) adRender;
99
+ any ad;
100
+ sequence<(DOMString or AdRender)> adComponents;
101
+ double adCost;
102
+ double modelingSignals;
103
+ boolean allowComponentAuction = false;
104
+ };
105
+
106
+ [SecureContext]
107
+ partial interface Navigator {
108
+ undefined updateAdInterestGroups();
109
+ };
package/webcodecs.idl CHANGED
@@ -161,6 +161,7 @@ dictionary AudioEncoderConfig {
161
161
  [EnforceRange] unsigned long sampleRate;
162
162
  [EnforceRange] unsigned long numberOfChannels;
163
163
  [EnforceRange] unsigned long long bitrate;
164
+ BitrateMode bitrateMode;
164
165
  };
165
166
 
166
167
  dictionary VideoEncoderConfig {
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 maxBindGroupsPlusVertexBuffers;
21
22
  readonly attribute unsigned long maxBindingsPerBindGroup;
22
23
  readonly attribute unsigned long maxDynamicUniformBuffersPerPipelineLayout;
23
24
  readonly attribute unsigned long maxDynamicStorageBuffersPerPipelineLayout;
@@ -26,7 +27,6 @@ interface GPUSupportedLimits {
26
27
  readonly attribute unsigned long maxStorageBuffersPerShaderStage;
27
28
  readonly attribute unsigned long maxStorageTexturesPerShaderStage;
28
29
  readonly attribute unsigned long maxUniformBuffersPerShaderStage;
29
- readonly attribute unsigned long maxFragmentCombinedOutputResources;
30
30
  readonly attribute unsigned long long maxUniformBufferBindingSize;
31
31
  readonly attribute unsigned long long maxStorageBufferBindingSize;
32
32
  readonly attribute unsigned long minUniformBufferOffsetAlignment;
@@ -52,6 +52,11 @@ interface GPUSupportedFeatures {
52
52
  readonly setlike<DOMString>;
53
53
  };
54
54
 
55
+ [Exposed=(Window, DedicatedWorker), SecureContext]
56
+ interface WGSLLanguageFeatures {
57
+ readonly setlike<DOMString>;
58
+ };
59
+
55
60
  [Exposed=(Window, DedicatedWorker), SecureContext]
56
61
  interface GPUAdapterInfo {
57
62
  readonly attribute DOMString vendor;
@@ -70,6 +75,7 @@ WorkerNavigator includes NavigatorGPU;
70
75
  interface GPU {
71
76
  Promise<GPUAdapter?> requestAdapter(optional GPURequestAdapterOptions options = {});
72
77
  GPUTextureFormat getPreferredCanvasFormat();
78
+ [SameObject] readonly attribute WGSLLanguageFeatures wgslLanguageFeatures;
73
79
  };
74
80
 
75
81
  dictionary GPURequestAdapterOptions {
@@ -92,7 +98,8 @@ interface GPUAdapter {
92
98
  Promise<GPUAdapterInfo> requestAdapterInfo(optional sequence<DOMString> unmaskHints = []);
93
99
  };
94
100
 
95
- dictionary GPUDeviceDescriptor : GPUObjectDescriptorBase {
101
+ dictionary GPUDeviceDescriptor
102
+ : GPUObjectDescriptorBase {
96
103
  sequence<GPUFeatureName> requiredFeatures = [];
97
104
  record<DOMString, GPUSize64> requiredLimits = {};
98
105
  GPUQueueDescriptor defaultQueue = {};
@@ -164,7 +171,8 @@ enum GPUBufferMapState {
164
171
  "mapped"
165
172
  };
166
173
 
167
- dictionary GPUBufferDescriptor : GPUObjectDescriptorBase {
174
+ dictionary GPUBufferDescriptor
175
+ : GPUObjectDescriptorBase {
168
176
  required GPUSize64 size;
169
177
  required GPUBufferUsageFlags usage;
170
178
  boolean mappedAtCreation = false;
@@ -209,7 +217,8 @@ interface GPUTexture {
209
217
  };
210
218
  GPUTexture includes GPUObjectBase;
211
219
 
212
- dictionary GPUTextureDescriptor : GPUObjectDescriptorBase {
220
+ dictionary GPUTextureDescriptor
221
+ : GPUObjectDescriptorBase {
213
222
  required GPUExtent3D size;
214
223
  GPUIntegerCoordinate mipLevelCount = 1;
215
224
  GPUSize32 sampleCount = 1;
@@ -240,7 +249,8 @@ interface GPUTextureView {
240
249
  };
241
250
  GPUTextureView includes GPUObjectBase;
242
251
 
243
- dictionary GPUTextureViewDescriptor : GPUObjectDescriptorBase {
252
+ dictionary GPUTextureViewDescriptor
253
+ : GPUObjectDescriptorBase {
244
254
  GPUTextureFormat format;
245
255
  GPUTextureViewDimension dimension;
246
256
  GPUTextureAspect aspect = "all";
@@ -390,7 +400,8 @@ interface GPUExternalTexture {
390
400
  };
391
401
  GPUExternalTexture includes GPUObjectBase;
392
402
 
393
- dictionary GPUExternalTextureDescriptor : GPUObjectDescriptorBase {
403
+ dictionary GPUExternalTextureDescriptor
404
+ : GPUObjectDescriptorBase {
394
405
  required HTMLVideoElement source;
395
406
  PredefinedColorSpace colorSpace = "srgb";
396
407
  };
@@ -400,7 +411,8 @@ interface GPUSampler {
400
411
  };
401
412
  GPUSampler includes GPUObjectBase;
402
413
 
403
- dictionary GPUSamplerDescriptor : GPUObjectDescriptorBase {
414
+ dictionary GPUSamplerDescriptor
415
+ : GPUObjectDescriptorBase {
404
416
  GPUAddressMode addressModeU = "clamp-to-edge";
405
417
  GPUAddressMode addressModeV = "clamp-to-edge";
406
418
  GPUAddressMode addressModeW = "clamp-to-edge";
@@ -445,7 +457,8 @@ interface GPUBindGroupLayout {
445
457
  };
446
458
  GPUBindGroupLayout includes GPUObjectBase;
447
459
 
448
- dictionary GPUBindGroupLayoutDescriptor : GPUObjectDescriptorBase {
460
+ dictionary GPUBindGroupLayoutDescriptor
461
+ : GPUObjectDescriptorBase {
449
462
  required sequence<GPUBindGroupLayoutEntry> entries;
450
463
  };
451
464
 
@@ -522,7 +535,8 @@ interface GPUBindGroup {
522
535
  };
523
536
  GPUBindGroup includes GPUObjectBase;
524
537
 
525
- dictionary GPUBindGroupDescriptor : GPUObjectDescriptorBase {
538
+ dictionary GPUBindGroupDescriptor
539
+ : GPUObjectDescriptorBase {
526
540
  required GPUBindGroupLayout layout;
527
541
  required sequence<GPUBindGroupEntry> entries;
528
542
  };
@@ -545,7 +559,8 @@ interface GPUPipelineLayout {
545
559
  };
546
560
  GPUPipelineLayout includes GPUObjectBase;
547
561
 
548
- dictionary GPUPipelineLayoutDescriptor : GPUObjectDescriptorBase {
562
+ dictionary GPUPipelineLayoutDescriptor
563
+ : GPUObjectDescriptorBase {
549
564
  required sequence<GPUBindGroupLayout> bindGroupLayouts;
550
565
  };
551
566
 
@@ -555,7 +570,8 @@ interface GPUShaderModule {
555
570
  };
556
571
  GPUShaderModule includes GPUObjectBase;
557
572
 
558
- dictionary GPUShaderModuleDescriptor : GPUObjectDescriptorBase {
573
+ dictionary GPUShaderModuleDescriptor
574
+ : GPUObjectDescriptorBase {
559
575
  required USVString code;
560
576
  object sourceMap;
561
577
  record<USVString, GPUShaderModuleCompilationHint> hints;
@@ -605,7 +621,8 @@ enum GPUAutoLayoutMode {
605
621
  "auto"
606
622
  };
607
623
 
608
- dictionary GPUPipelineDescriptorBase : GPUObjectDescriptorBase {
624
+ dictionary GPUPipelineDescriptorBase
625
+ : GPUObjectDescriptorBase {
609
626
  required (GPUPipelineLayout or GPUAutoLayoutMode) layout;
610
627
  };
611
628
 
@@ -627,7 +644,8 @@ interface GPUComputePipeline {
627
644
  GPUComputePipeline includes GPUObjectBase;
628
645
  GPUComputePipeline includes GPUPipelineBase;
629
646
 
630
- dictionary GPUComputePipelineDescriptor : GPUPipelineDescriptorBase {
647
+ dictionary GPUComputePipelineDescriptor
648
+ : GPUPipelineDescriptorBase {
631
649
  required GPUProgrammableStage compute;
632
650
  };
633
651
 
@@ -637,7 +655,8 @@ interface GPURenderPipeline {
637
655
  GPURenderPipeline includes GPUObjectBase;
638
656
  GPURenderPipeline includes GPUPipelineBase;
639
657
 
640
- dictionary GPURenderPipelineDescriptor : GPUPipelineDescriptorBase {
658
+ dictionary GPURenderPipelineDescriptor
659
+ : GPUPipelineDescriptorBase {
641
660
  required GPUVertexState vertex;
642
661
  GPUPrimitiveState primitive = {};
643
662
  GPUDepthStencilState depthStencil;
@@ -680,7 +699,8 @@ dictionary GPUMultisampleState {
680
699
  boolean alphaToCoverageEnabled = false;
681
700
  };
682
701
 
683
- dictionary GPUFragmentState : GPUProgrammableStage {
702
+ dictionary GPUFragmentState
703
+ : GPUProgrammableStage {
684
704
  required sequence<GPUColorTargetState?> targets;
685
705
  };
686
706
 
@@ -814,7 +834,8 @@ enum GPUVertexStepMode {
814
834
  "instance"
815
835
  };
816
836
 
817
- dictionary GPUVertexState : GPUProgrammableStage {
837
+ dictionary GPUVertexState
838
+ : GPUProgrammableStage {
818
839
  sequence<GPUVertexBufferLayout?> buffers = [];
819
840
  };
820
841
 
@@ -831,17 +852,43 @@ dictionary GPUVertexAttribute {
831
852
  required GPUIndex32 shaderLocation;
832
853
  };
833
854
 
834
- dictionary GPUImageDataLayout { GPUSize64 offset = 0; GPUSize32 bytesPerRow; GPUSize32 rowsPerImage;};
835
- dictionary GPUImageCopyBuffer : GPUImageDataLayout { required GPUBuffer buffer;};
836
- dictionary GPUImageCopyTexture { required GPUTexture texture; GPUIntegerCoordinate mipLevel = 0; GPUOrigin3D origin = {}; GPUTextureAspect aspect = "all";};
837
- dictionary GPUImageCopyTextureTagged : GPUImageCopyTexture { PredefinedColorSpace colorSpace = "srgb"; boolean premultipliedAlpha = false;};
838
- dictionary GPUImageCopyExternalImage { required (ImageBitmap or HTMLVideoElement or HTMLCanvasElement or OffscreenCanvas) source; GPUOrigin2D origin = {}; boolean flipY = false;};
855
+ dictionary GPUImageDataLayout {
856
+ GPUSize64 offset = 0;
857
+ GPUSize32 bytesPerRow;
858
+ GPUSize32 rowsPerImage;
859
+ };
860
+
861
+ dictionary GPUImageCopyBuffer
862
+ : GPUImageDataLayout {
863
+ required GPUBuffer buffer;
864
+ };
865
+
866
+ dictionary GPUImageCopyTexture {
867
+ required GPUTexture texture;
868
+ GPUIntegerCoordinate mipLevel = 0;
869
+ GPUOrigin3D origin = {};
870
+ GPUTextureAspect aspect = "all";
871
+ };
872
+
873
+ dictionary GPUImageCopyTextureTagged
874
+ : GPUImageCopyTexture {
875
+ PredefinedColorSpace colorSpace = "srgb";
876
+ boolean premultipliedAlpha = false;
877
+ };
878
+
879
+ dictionary GPUImageCopyExternalImage {
880
+ required (ImageBitmap or HTMLVideoElement or HTMLCanvasElement or OffscreenCanvas) source;
881
+ GPUOrigin2D origin = {};
882
+ boolean flipY = false;
883
+ };
884
+
839
885
  [Exposed=(Window, DedicatedWorker), SecureContext]
840
886
  interface GPUCommandBuffer {
841
887
  };
842
888
  GPUCommandBuffer includes GPUObjectBase;
843
889
 
844
- dictionary GPUCommandBufferDescriptor : GPUObjectDescriptorBase {
890
+ dictionary GPUCommandBufferDescriptor
891
+ : GPUObjectDescriptorBase {
845
892
  };
846
893
 
847
894
  interface mixin GPUCommandsMixin {
@@ -894,14 +941,15 @@ GPUCommandEncoder includes GPUObjectBase;
894
941
  GPUCommandEncoder includes GPUCommandsMixin;
895
942
  GPUCommandEncoder includes GPUDebugCommandsMixin;
896
943
 
897
- dictionary GPUCommandEncoderDescriptor : GPUObjectDescriptorBase {
944
+ dictionary GPUCommandEncoderDescriptor
945
+ : GPUObjectDescriptorBase {
898
946
  };
899
947
 
900
948
  interface mixin GPUBindingCommandsMixin {
901
- undefined setBindGroup(GPUIndex32 index, GPUBindGroup bindGroup,
949
+ undefined setBindGroup(GPUIndex32 index, GPUBindGroup? bindGroup,
902
950
  optional sequence<GPUBufferDynamicOffset> dynamicOffsets = []);
903
951
 
904
- undefined setBindGroup(GPUIndex32 index, GPUBindGroup bindGroup,
952
+ undefined setBindGroup(GPUIndex32 index, GPUBindGroup? bindGroup,
905
953
  Uint32Array dynamicOffsetsData,
906
954
  GPUSize64 dynamicOffsetsDataStart,
907
955
  GPUSize32 dynamicOffsetsDataLength);
@@ -939,7 +987,8 @@ dictionary GPUComputePassTimestampWrite {
939
987
 
940
988
  typedef sequence<GPUComputePassTimestampWrite> GPUComputePassTimestampWrites;
941
989
 
942
- dictionary GPUComputePassDescriptor : GPUObjectDescriptorBase {
990
+ dictionary GPUComputePassDescriptor
991
+ : GPUObjectDescriptorBase {
943
992
  GPUComputePassTimestampWrites timestampWrites = [];
944
993
  };
945
994
 
@@ -980,7 +1029,8 @@ dictionary GPURenderPassTimestampWrite {
980
1029
 
981
1030
  typedef sequence<GPURenderPassTimestampWrite> GPURenderPassTimestampWrites;
982
1031
 
983
- dictionary GPURenderPassDescriptor : GPUObjectDescriptorBase {
1032
+ dictionary GPURenderPassDescriptor
1033
+ : GPUObjectDescriptorBase {
984
1034
  required sequence<GPURenderPassColorAttachment?> colorAttachments;
985
1035
  GPURenderPassDepthStencilAttachment depthStencilAttachment;
986
1036
  GPUQuerySet occlusionQuerySet;
@@ -1021,7 +1071,8 @@ enum GPUStoreOp {
1021
1071
  "discard"
1022
1072
  };
1023
1073
 
1024
- dictionary GPURenderPassLayout : GPUObjectDescriptorBase {
1074
+ dictionary GPURenderPassLayout
1075
+ : GPUObjectDescriptorBase {
1025
1076
  required sequence<GPUTextureFormat?> colorFormats;
1026
1077
  GPUTextureFormat depthStencilFormat;
1027
1078
  GPUSize32 sampleCount = 1;
@@ -1031,7 +1082,7 @@ interface mixin GPURenderCommandsMixin {
1031
1082
  undefined setPipeline(GPURenderPipeline pipeline);
1032
1083
 
1033
1084
  undefined setIndexBuffer(GPUBuffer buffer, GPUIndexFormat indexFormat, optional GPUSize64 offset = 0, optional GPUSize64 size);
1034
- undefined setVertexBuffer(GPUIndex32 slot, GPUBuffer buffer, optional GPUSize64 offset = 0, optional GPUSize64 size);
1085
+ undefined setVertexBuffer(GPUIndex32 slot, GPUBuffer? buffer, optional GPUSize64 offset = 0, optional GPUSize64 size);
1035
1086
 
1036
1087
  undefined draw(GPUSize32 vertexCount, optional GPUSize32 instanceCount = 1,
1037
1088
  optional GPUSize32 firstVertex = 0, optional GPUSize32 firstInstance = 0);
@@ -1049,7 +1100,8 @@ interface GPURenderBundle {
1049
1100
  };
1050
1101
  GPURenderBundle includes GPUObjectBase;
1051
1102
 
1052
- dictionary GPURenderBundleDescriptor : GPUObjectDescriptorBase {
1103
+ dictionary GPURenderBundleDescriptor
1104
+ : GPUObjectDescriptorBase {
1053
1105
  };
1054
1106
 
1055
1107
  [Exposed=(Window, DedicatedWorker), SecureContext]
@@ -1062,12 +1114,14 @@ GPURenderBundleEncoder includes GPUDebugCommandsMixin;
1062
1114
  GPURenderBundleEncoder includes GPUBindingCommandsMixin;
1063
1115
  GPURenderBundleEncoder includes GPURenderCommandsMixin;
1064
1116
 
1065
- dictionary GPURenderBundleEncoderDescriptor : GPURenderPassLayout {
1117
+ dictionary GPURenderBundleEncoderDescriptor
1118
+ : GPURenderPassLayout {
1066
1119
  boolean depthReadOnly = false;
1067
1120
  boolean stencilReadOnly = false;
1068
1121
  };
1069
1122
 
1070
- dictionary GPUQueueDescriptor : GPUObjectDescriptorBase {
1123
+ dictionary GPUQueueDescriptor
1124
+ : GPUObjectDescriptorBase {
1071
1125
  };
1072
1126
 
1073
1127
  [Exposed=(Window, DedicatedWorker), SecureContext]
@@ -1105,7 +1159,8 @@ interface GPUQuerySet {
1105
1159
  };
1106
1160
  GPUQuerySet includes GPUObjectBase;
1107
1161
 
1108
- dictionary GPUQuerySetDescriptor : GPUObjectDescriptorBase {
1162
+ dictionary GPUQuerySetDescriptor
1163
+ : GPUObjectDescriptorBase {
1109
1164
  required GPUQueryType type;
1110
1165
  required GPUSize32 count;
1111
1166
  };
@@ -1160,17 +1215,20 @@ interface GPUError {
1160
1215
  };
1161
1216
 
1162
1217
  [Exposed=(Window, DedicatedWorker), SecureContext]
1163
- interface GPUValidationError : GPUError {
1218
+ interface GPUValidationError
1219
+ : GPUError {
1164
1220
  constructor(DOMString message);
1165
1221
  };
1166
1222
 
1167
1223
  [Exposed=(Window, DedicatedWorker), SecureContext]
1168
- interface GPUOutOfMemoryError : GPUError {
1224
+ interface GPUOutOfMemoryError
1225
+ : GPUError {
1169
1226
  constructor(DOMString message);
1170
1227
  };
1171
1228
 
1172
1229
  [Exposed=(Window, DedicatedWorker), SecureContext]
1173
- interface GPUInternalError : GPUError {
1230
+ interface GPUInternalError
1231
+ : GPUError {
1174
1232
  constructor(DOMString message);
1175
1233
  };
1176
1234
 
package/webnn.idl CHANGED
@@ -489,13 +489,8 @@ partial interface MLGraphBuilder {
489
489
  MLActivation sigmoid();
490
490
  };
491
491
 
492
- dictionary MLSliceOptions {
493
- sequence<unsigned long> axes;
494
- };
495
-
496
492
  partial interface MLGraphBuilder {
497
- MLOperand slice(MLOperand input, sequence<long> starts, sequence<long> sizes,
498
- optional MLSliceOptions options = {});
493
+ MLOperand slice(MLOperand input, sequence<unsigned long> starts, sequence<unsigned long> sizes);
499
494
  };
500
495
 
501
496
  partial interface MLGraphBuilder {
package/webtransport.idl CHANGED
@@ -86,6 +86,7 @@ dictionary WebTransportStats {
86
86
  DOMHighResTimeStamp rttVariation;
87
87
  DOMHighResTimeStamp minRtt;
88
88
  WebTransportDatagramStats datagrams;
89
+ unsigned long long? estimatedSendRate;
89
90
  };
90
91
 
91
92
  dictionary WebTransportDatagramStats {
File without changes