@webref/idl 3.63.0 → 3.64.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.
package/cssom-view.idl CHANGED
@@ -141,6 +141,7 @@ partial interface Element {
141
141
  };
142
142
 
143
143
  partial interface HTMLElement {
144
+ readonly attribute Element? scrollParent;
144
145
  readonly attribute Element? offsetParent;
145
146
  readonly attribute long offsetTop;
146
147
  readonly attribute long offsetLeft;
package/html.idl CHANGED
@@ -1542,28 +1542,6 @@ interface TextMetrics {
1542
1542
  readonly attribute double ideographicBaseline;
1543
1543
  };
1544
1544
 
1545
- typedef (Uint8ClampedArray or Float16Array) ImageDataArray;
1546
-
1547
- enum ImageDataPixelFormat { "rgba-unorm8", "rgba-float16" };
1548
-
1549
- dictionary ImageDataSettings {
1550
- PredefinedColorSpace colorSpace;
1551
- ImageDataPixelFormat pixelFormat = "rgba-unorm8";
1552
- };
1553
-
1554
- [Exposed=(Window,Worker),
1555
- Serializable]
1556
- interface ImageData {
1557
- constructor(unsigned long sw, unsigned long sh, optional ImageDataSettings settings = {});
1558
- constructor(ImageDataArray data, unsigned long sw, optional unsigned long sh, optional ImageDataSettings settings = {});
1559
-
1560
- readonly attribute unsigned long width;
1561
- readonly attribute unsigned long height;
1562
- readonly attribute ImageDataArray data;
1563
- readonly attribute ImageDataPixelFormat pixelFormat;
1564
- readonly attribute PredefinedColorSpace colorSpace;
1565
- };
1566
-
1567
1545
  [Exposed=(Window,Worker)]
1568
1546
  interface Path2D {
1569
1547
  constructor(optional (Path2D or DOMString) path);
@@ -2476,6 +2454,28 @@ interface MimeType {
2476
2454
  readonly attribute Plugin enabledPlugin;
2477
2455
  };
2478
2456
 
2457
+ typedef (Uint8ClampedArray or Float16Array) ImageDataArray;
2458
+
2459
+ enum ImageDataPixelFormat { "rgba-unorm8", "rgba-float16" };
2460
+
2461
+ dictionary ImageDataSettings {
2462
+ PredefinedColorSpace colorSpace;
2463
+ ImageDataPixelFormat pixelFormat = "rgba-unorm8";
2464
+ };
2465
+
2466
+ [Exposed=(Window,Worker),
2467
+ Serializable]
2468
+ interface ImageData {
2469
+ constructor(unsigned long sw, unsigned long sh, optional ImageDataSettings settings = {});
2470
+ constructor(ImageDataArray data, unsigned long sw, optional unsigned long sh, optional ImageDataSettings settings = {});
2471
+
2472
+ readonly attribute unsigned long width;
2473
+ readonly attribute unsigned long height;
2474
+ readonly attribute ImageDataArray data;
2475
+ readonly attribute ImageDataPixelFormat pixelFormat;
2476
+ readonly attribute PredefinedColorSpace colorSpace;
2477
+ };
2478
+
2479
2479
  [Exposed=(Window,Worker), Serializable, Transferable]
2480
2480
  interface ImageBitmap {
2481
2481
  readonly attribute unsigned long width;
@@ -91,11 +91,11 @@ dictionary MediaCapabilitiesInfo {
91
91
 
92
92
  dictionary MediaCapabilitiesDecodingInfo : MediaCapabilitiesInfo {
93
93
  required MediaKeySystemAccess? keySystemAccess;
94
- MediaDecodingConfiguration configuration;
94
+ required MediaDecodingConfiguration configuration;
95
95
  };
96
96
 
97
97
  dictionary MediaCapabilitiesEncodingInfo : MediaCapabilitiesInfo {
98
- MediaEncodingConfiguration configuration;
98
+ required MediaEncodingConfiguration configuration;
99
99
  };
100
100
 
101
101
  [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.63.0",
4
+ "version": "3.64.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
package/paint-timing.idl CHANGED
@@ -10,5 +10,7 @@ interface mixin PaintTimingMixin {
10
10
  };
11
11
 
12
12
  [Exposed=Window]
13
- interface PerformancePaintTiming : PerformanceEntry {};
13
+ interface PerformancePaintTiming : PerformanceEntry {
14
+ [Default] object toJSON();
15
+ };
14
16
  PerformancePaintTiming includes PaintTimingMixin;
@@ -25,8 +25,8 @@ interface PrivateAttribution {
25
25
 
26
26
  dictionary PrivateAttributionImpressionOptions {
27
27
  required unsigned long histogramIndex;
28
- unsigned long filterData = 0;
29
- required USVString conversionSite;
28
+ unsigned long matchValue = 0;
29
+ sequence<USVString> conversionSites = [];
30
30
  unsigned long lifetimeDays = 30;
31
31
  };
32
32
 
@@ -42,7 +42,7 @@ dictionary PrivateAttributionConversionOptions {
42
42
  required unsigned long histogramSize;
43
43
 
44
44
  unsigned long lookbackDays;
45
- unsigned long filterData;
45
+ sequence<unsigned long> matchValue = [];
46
46
  sequence<USVString> impressionSites = [];
47
47
  sequence<USVString> intermediarySites = [];
48
48
 
@@ -29,6 +29,12 @@ enum SystemAudioPreferenceEnum {
29
29
  "exclude"
30
30
  };
31
31
 
32
+ enum WindowAudioPreferenceEnum {
33
+ "system",
34
+ "window",
35
+ "exclude"
36
+ };
37
+
32
38
  enum SurfaceSwitchingPreferenceEnum {
33
39
  "include",
34
40
  "exclude"
@@ -45,6 +51,7 @@ dictionary DisplayMediaStreamOptions {
45
51
  CaptureController controller;
46
52
  SelfCapturePreferenceEnum selfBrowserSurface;
47
53
  SystemAudioPreferenceEnum systemAudio;
54
+ WindowAudioPreferenceEnum windowAudio;
48
55
  SurfaceSwitchingPreferenceEnum surfaceSwitching;
49
56
  MonitorTypeSurfacesEnum monitorTypeSurfaces;
50
57
  };
@@ -11,6 +11,7 @@ dictionary SecurePaymentConfirmationRequest {
11
11
  unsigned long timeout;
12
12
  USVString payeeName;
13
13
  USVString payeeOrigin;
14
+ sequence<PaymentEntityLogo> paymentEntitiesLogos;
14
15
  AuthenticationExtensionsClientInputs extensions;
15
16
  sequence<USVString> locale;
16
17
  boolean showOptOut;
@@ -40,6 +41,7 @@ dictionary AuthenticationExtensionsPaymentInputs {
40
41
  USVString topOrigin;
41
42
  USVString payeeName;
42
43
  USVString payeeOrigin;
44
+ sequence<PaymentEntityLogo> paymentEntitiesLogos;
43
45
  PaymentCurrencyAmount total;
44
46
  PaymentCredentialInstrument instrument;
45
47
  };
@@ -53,6 +55,7 @@ dictionary CollectedClientAdditionalPaymentData {
53
55
  required USVString topOrigin;
54
56
  USVString payeeName;
55
57
  USVString payeeOrigin;
58
+ sequence<PaymentEntityLogo> paymentEntitiesLogos;
56
59
  required PaymentCurrencyAmount total;
57
60
  required PaymentCredentialInstrument instrument;
58
61
  };
@@ -62,3 +65,8 @@ dictionary PaymentCredentialInstrument {
62
65
  required USVString icon;
63
66
  boolean iconMustBeShown = true;
64
67
  };
68
+
69
+ dictionary PaymentEntityLogo {
70
+ required USVString url;
71
+ required USVString label;
72
+ };
package/speech-api.idl CHANGED
@@ -12,7 +12,7 @@ interface SpeechRecognition : EventTarget {
12
12
  attribute boolean continuous;
13
13
  attribute boolean interimResults;
14
14
  attribute unsigned long maxAlternatives;
15
- attribute SpeechRecognitionMode mode;
15
+ attribute boolean processLocally;
16
16
  attribute SpeechRecognitionPhraseList phrases;
17
17
 
18
18
  // methods to drive the speech interaction
@@ -20,8 +20,8 @@ interface SpeechRecognition : EventTarget {
20
20
  undefined start(MediaStreamTrack audioTrack);
21
21
  undefined stop();
22
22
  undefined abort();
23
- static Promise<AvailabilityStatus> availableOnDevice(DOMString lang);
24
- static Promise<boolean> installOnDevice(DOMString lang);
23
+ static Promise<AvailabilityStatus> available(SpeechRecognitionOptions options);
24
+ static Promise<boolean> install(SpeechRecognitionOptions options);
25
25
 
26
26
  // event methods
27
27
  attribute EventHandler onaudiostart;
@@ -37,6 +37,11 @@ interface SpeechRecognition : EventTarget {
37
37
  attribute EventHandler onend;
38
38
  };
39
39
 
40
+ dictionary SpeechRecognitionOptions {
41
+ required sequence<DOMString> langs;
42
+ boolean processLocally = false;
43
+ };
44
+
40
45
  enum SpeechRecognitionErrorCode {
41
46
  "no-speech",
42
47
  "aborted",
@@ -48,12 +53,6 @@ enum SpeechRecognitionErrorCode {
48
53
  "phrases-not-supported"
49
54
  };
50
55
 
51
- enum SpeechRecognitionMode {
52
- "ondevice-preferred", // On-device speech recognition if available, otherwise use Cloud speech recognition as a fallback.
53
- "ondevice-only", // On-device speech recognition only. Returns an error if on-device speech recognition is not available.
54
- "cloud-only", // Cloud speech recognition only.
55
- };
56
-
57
56
  enum AvailabilityStatus {
58
57
  "unavailable",
59
58
  "downloadable",
package/sri.idl ADDED
@@ -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: Subresource Integrity (https://w3c.github.io/webappsec-subresource-integrity/)
5
+
6
+ [Exposed=Window]
7
+ interface IntegrityPolicyViolationReportBody : ReportBody {
8
+ [Default] object toJSON();
9
+ readonly attribute USVString documentURL;
10
+ readonly attribute USVString blockedURL;
11
+ readonly attribute USVString destination;
12
+ readonly attribute boolean reportOnly;
13
+ };
@@ -118,7 +118,7 @@ dictionary AnimationPlaybackEventInit : EventInit {
118
118
  interface AnimationTrigger {
119
119
  constructor(optional AnimationTriggerOptions options = {});
120
120
  attribute AnimationTimeline timeline;
121
- attribute AnimationTriggerType type;
121
+ attribute AnimationTriggerBehavior behavior;
122
122
  attribute any rangeStart;
123
123
  attribute any rangeEnd;
124
124
  attribute any exitRangeStart;
@@ -127,11 +127,11 @@ interface AnimationTrigger {
127
127
 
128
128
  dictionary AnimationTriggerOptions {
129
129
  AnimationTimeline? timeline;
130
- AnimationTriggerType? type = "once";
130
+ AnimationTriggerBehavior? behavior = "once";
131
131
  (TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) rangeStart = "normal";
132
132
  (TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) rangeEnd = "normal";
133
133
  (TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) exitRangeStart = "auto";
134
134
  (TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) exitRangeEnd = "auto";
135
135
  };
136
136
 
137
- enum AnimationTriggerType { "once", "repeat", "alternate", "state" };
137
+ enum AnimationTriggerBehavior { "once", "repeat", "alternate", "state" };
package/webgpu.idl CHANGED
@@ -127,6 +127,7 @@ enum GPUFeatureName {
127
127
  "clip-distances",
128
128
  "dual-source-blending",
129
129
  "subgroups",
130
+ "texture-formats-tier1",
130
131
  };
131
132
 
132
133
  [Exposed=(Window, Worker), SecureContext]
@@ -295,6 +296,8 @@ enum GPUTextureFormat {
295
296
  "r8sint",
296
297
 
297
298
  // 16-bit formats
299
+ "r16unorm",
300
+ "r16snorm",
298
301
  "r16uint",
299
302
  "r16sint",
300
303
  "r16float",
@@ -307,6 +310,8 @@ enum GPUTextureFormat {
307
310
  "r32uint",
308
311
  "r32sint",
309
312
  "r32float",
313
+ "rg16unorm",
314
+ "rg16snorm",
310
315
  "rg16uint",
311
316
  "rg16sint",
312
317
  "rg16float",
@@ -327,6 +332,8 @@ enum GPUTextureFormat {
327
332
  "rg32uint",
328
333
  "rg32sint",
329
334
  "rg32float",
335
+ "rgba16unorm",
336
+ "rgba16snorm",
330
337
  "rgba16uint",
331
338
  "rgba16sint",
332
339
  "rgba16float",
@@ -556,7 +563,11 @@ dictionary GPUBindGroupDescriptor
556
563
  required sequence<GPUBindGroupEntry> entries;
557
564
  };
558
565
 
559
- typedef (GPUSampler or GPUTextureView or GPUBufferBinding or GPUExternalTexture) GPUBindingResource;
566
+ typedef (GPUSampler or
567
+ GPUTextureView or
568
+ GPUBuffer or
569
+ GPUBufferBinding or
570
+ GPUExternalTexture) GPUBindingResource;
560
571
 
561
572
  dictionary GPUBindGroupEntry {
562
573
  required GPUIndex32 binding;
@@ -990,7 +1001,7 @@ interface mixin GPUBindingCommandsMixin {
990
1001
  optional sequence<GPUBufferDynamicOffset> dynamicOffsets = []);
991
1002
 
992
1003
  undefined setBindGroup(GPUIndex32 index, GPUBindGroup? bindGroup,
993
- Uint32Array dynamicOffsetsData,
1004
+ [AllowShared] Uint32Array dynamicOffsetsData,
994
1005
  GPUSize64 dynamicOffsetsDataStart,
995
1006
  GPUSize32 dynamicOffsetsDataLength);
996
1007
  };
@@ -55,6 +55,17 @@ dictionary SFrameTransformErrorEventInit : EventInit {
55
55
  CryptoKeyID? keyID;
56
56
  };
57
57
 
58
+ dictionary RTCEncodedFrameMetadata {
59
+ unsigned long synchronizationSource;
60
+ octet payloadType;
61
+ sequence<unsigned long> contributingSources;
62
+ unsigned long rtpTimestamp;
63
+ DOMHighResTimeStamp receiveTime;
64
+ DOMHighResTimeStamp captureTime;
65
+ DOMHighResTimeStamp senderCaptureTimeOffset;
66
+ DOMString mimeType;
67
+ };
68
+
58
69
  // New enum for video frame types. Will eventually re-use the equivalent defined
59
70
  // by WebCodecs.
60
71
  enum RTCEncodedVideoFrameType {
@@ -63,22 +74,14 @@ enum RTCEncodedVideoFrameType {
63
74
  "delta",
64
75
  };
65
76
 
66
- dictionary RTCEncodedVideoFrameMetadata {
77
+ dictionary RTCEncodedVideoFrameMetadata : RTCEncodedFrameMetadata {
67
78
  unsigned long long frameId;
68
79
  sequence<unsigned long long> dependencies;
69
80
  unsigned short width;
70
81
  unsigned short height;
71
82
  unsigned long spatialIndex;
72
83
  unsigned long temporalIndex;
73
- unsigned long synchronizationSource;
74
- octet payloadType;
75
- sequence<unsigned long> contributingSources;
76
84
  long long timestamp; // microseconds
77
- unsigned long rtpTimestamp;
78
- DOMHighResTimeStamp receiveTime;
79
- DOMHighResTimeStamp captureTime;
80
- DOMHighResTimeStamp senderCaptureTimeOffset;
81
- DOMString mimeType;
82
85
  };
83
86
 
84
87
  dictionary RTCEncodedVideoFrameOptions {
@@ -95,16 +98,9 @@ interface RTCEncodedVideoFrame {
95
98
  RTCEncodedVideoFrameMetadata getMetadata();
96
99
  };
97
100
 
98
- dictionary RTCEncodedAudioFrameMetadata {
99
- unsigned long synchronizationSource;
100
- octet payloadType;
101
- sequence<unsigned long> contributingSources;
101
+ dictionary RTCEncodedAudioFrameMetadata : RTCEncodedFrameMetadata {
102
102
  short sequenceNumber;
103
- unsigned long rtpTimestamp;
104
- DOMHighResTimeStamp receiveTime;
105
- DOMHighResTimeStamp captureTime;
106
- DOMHighResTimeStamp senderCaptureTimeOffset;
107
- DOMString mimeType;
103
+ double audioLevel;
108
104
  };
109
105
 
110
106
  dictionary RTCEncodedAudioFrameOptions {
package/webtransport.idl CHANGED
@@ -27,6 +27,7 @@ interface WebTransport {
27
27
  constructor(USVString url, optional WebTransportOptions options = {});
28
28
 
29
29
  Promise<WebTransportConnectionStats> getStats();
30
+ [NewObject] Promise<ArrayBuffer> exportKeyingMaterial(BufferSource label, optional BufferSource context);
30
31
  readonly attribute Promise<undefined> ready;
31
32
  readonly attribute WebTransportReliabilityMode reliability;
32
33
  readonly attribute WebTransportCongestionControl congestionControl;
@@ -56,7 +56,7 @@ dictionary SummarizerSummarizeOptions {
56
56
  DOMString context;
57
57
  };
58
58
 
59
- enum SummarizerType { "tl;dr", "teaser", "key-points", "headline" };
59
+ enum SummarizerType { "tldr", "teaser", "key-points", "headline" };
60
60
  enum SummarizerFormat { "plain-text", "markdown" };
61
61
  enum SummarizerLength { "short", "medium", "long" };
62
62