@webref/idl 3.12.4 → 3.13.2

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/FedCM.idl CHANGED
@@ -22,12 +22,12 @@ dictionary IdentityProvider {
22
22
  USVString nonce;
23
23
  };
24
24
 
25
- dictionary IdentityCredentialLogoutRpsRequest {
25
+ dictionary IdentityCredentialLogoutRPsRequest {
26
26
  required USVString url;
27
27
  required USVString accountId;
28
28
  };
29
29
 
30
30
  [Exposed=Window, SecureContext]
31
31
  partial interface IdentityCredential {
32
- static Promise<undefined> logoutRPs(sequence<IdentityCredentialLogoutRpsRequest> logoutRequests);
32
+ static Promise<undefined> logoutRPs(sequence<IdentityCredentialLogoutRPsRequest> logoutRequests);
33
33
  };
package/cssom-view.idl CHANGED
@@ -16,6 +16,7 @@ dictionary ScrollToOptions : ScrollOptions {
16
16
  partial interface Window {
17
17
  [NewObject] MediaQueryList matchMedia(CSSOMString query);
18
18
  [SameObject, Replaceable] readonly attribute Screen screen;
19
+ [SameObject, Replaceable] readonly attribute VisualViewport? visualViewport;
19
20
 
20
21
  // browsing context
21
22
  undefined moveTo(long x, long y);
@@ -179,3 +180,20 @@ CSSPseudoElement includes GeometryUtils;
179
180
  Document includes GeometryUtils;
180
181
 
181
182
  typedef (Text or Element or CSSPseudoElement or Document) GeometryNode;
183
+
184
+ [Exposed=Window]
185
+ interface VisualViewport : EventTarget {
186
+ readonly attribute double offsetLeft;
187
+ readonly attribute double offsetTop;
188
+
189
+ readonly attribute double pageLeft;
190
+ readonly attribute double pageTop;
191
+
192
+ readonly attribute double width;
193
+ readonly attribute double height;
194
+
195
+ readonly attribute double scale;
196
+
197
+ attribute EventHandler onresize;
198
+ attribute EventHandler onscroll;
199
+ };
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
@@ -1643,6 +1643,7 @@ dictionary ValidityStateFlags {
1643
1643
 
1644
1644
  dictionary FocusOptions {
1645
1645
  boolean preventScroll = false;
1646
+ boolean focusVisible;
1646
1647
  };
1647
1648
 
1648
1649
  interface mixin ElementContentEditable {
package/media-source.idl CHANGED
@@ -17,24 +17,24 @@ enum EndOfStreamError {
17
17
  [Exposed=(Window,DedicatedWorker)]
18
18
  interface MediaSource : EventTarget {
19
19
  constructor();
20
- readonly attribute SourceBufferList sourceBuffers;
21
- readonly attribute SourceBufferList activeSourceBuffers;
22
- readonly attribute ReadyState readyState;
23
- attribute unrestricted double duration;
24
- attribute EventHandler onsourceopen;
25
- attribute EventHandler onsourceended;
26
- attribute EventHandler onsourceclose;
27
- static readonly attribute boolean canConstructInDedicatedWorker;
28
- SourceBuffer addSourceBuffer (DOMString type);
29
- undefined removeSourceBuffer (SourceBuffer sourceBuffer);
30
- undefined endOfStream (optional EndOfStreamError error);
31
- undefined setLiveSeekableRange (double start, double end);
32
- undefined clearLiveSeekableRange ();
33
- MediaSourceHandle getHandle ();
34
- static boolean isTypeSupported (DOMString type);
20
+ [SameObject] readonly attribute MediaSourceHandle handle;
21
+ readonly attribute SourceBufferList sourceBuffers;
22
+ readonly attribute SourceBufferList activeSourceBuffers;
23
+ readonly attribute ReadyState readyState;
24
+ attribute unrestricted double duration;
25
+ attribute EventHandler onsourceopen;
26
+ attribute EventHandler onsourceended;
27
+ attribute EventHandler onsourceclose;
28
+ static readonly attribute boolean canConstructInDedicatedWorker;
29
+ SourceBuffer addSourceBuffer (DOMString type);
30
+ undefined removeSourceBuffer (SourceBuffer sourceBuffer);
31
+ undefined endOfStream (optional EndOfStreamError error);
32
+ undefined setLiveSeekableRange (double start, double end);
33
+ undefined clearLiveSeekableRange ();
34
+ static boolean isTypeSupported (DOMString type);
35
35
  };
36
36
 
37
- [Exposed=(Window,DedicatedWorker)]
37
+ [Transferable, Exposed=(Window,DedicatedWorker)]
38
38
  interface MediaSourceHandle {};
39
39
 
40
40
  enum AppendMode {
@@ -5,7 +5,7 @@
5
5
 
6
6
  [Exposed=(Window,Worker), Serializable]
7
7
  interface CropTarget {
8
- [SecureContext] static Promise<CropTarget> fromElement(Element element);
8
+ [Exposed=Window, SecureContext] static Promise<CropTarget> fromElement(Element element);
9
9
  };
10
10
 
11
11
  [Exposed = Window]
@@ -93,7 +93,7 @@ interface NavigateEvent : Event {
93
93
  readonly attribute any info;
94
94
 
95
95
  undefined intercept(optional NavigationInterceptOptions options = {});
96
- undefined restoreScroll();
96
+ undefined scroll();
97
97
  };
98
98
 
99
99
  dictionary NavigateEventInit : EventInit {
@@ -111,7 +111,7 @@ dictionary NavigateEventInit : EventInit {
111
111
  dictionary NavigationInterceptOptions {
112
112
  NavigationInterceptHandler handler;
113
113
  NavigationFocusReset focusReset;
114
- NavigationScrollRestoration scrollRestoration;
114
+ NavigationScrollBehavior scroll;
115
115
  };
116
116
 
117
117
  enum NavigationFocusReset {
@@ -119,7 +119,7 @@ enum NavigationFocusReset {
119
119
  "manual"
120
120
  };
121
121
 
122
- enum NavigationScrollRestoration {
122
+ enum NavigationScrollBehavior {
123
123
  "after-transition",
124
124
  "manual"
125
125
  };
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.12.4",
4
+ "version": "3.13.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -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: Payment Request API (https://w3c.github.io/payment-request/)
4
+ // Source: Payment Request API 1.1 (https://w3c.github.io/payment-request/)
5
5
 
6
6
  [SecureContext, Exposed=Window]
7
7
  interface PaymentRequest : EventTarget {
@@ -59,6 +59,10 @@ dictionary PaymentItem {
59
59
  boolean pending = false;
60
60
  };
61
61
 
62
+ dictionary PaymentCompleteDetails {
63
+ object? data = null;
64
+ };
65
+
62
66
  enum PaymentComplete {
63
67
  "fail",
64
68
  "success",
@@ -74,7 +78,10 @@ interface PaymentResponse : EventTarget {
74
78
  readonly attribute object details;
75
79
 
76
80
  [NewObject]
77
- Promise<undefined> complete(optional PaymentComplete result = "unknown");
81
+ Promise<undefined> complete(
82
+ optional PaymentComplete result = "unknown",
83
+ optional PaymentCompleteDetails details = {}
84
+ );
78
85
  [NewObject]
79
86
  Promise<undefined> retry(optional PaymentValidationErrors errorFields = {});
80
87
  };
@@ -10,7 +10,7 @@ partial interface Performance {
10
10
  };
11
11
  typedef sequence<PerformanceEntry> PerformanceEntryList;
12
12
 
13
- [Exposed=*]
13
+ [Exposed=(Window,Worker)]
14
14
  interface PerformanceEntry {
15
15
  readonly attribute DOMString name;
16
16
  readonly attribute DOMString entryType;
@@ -22,7 +22,7 @@ interface PerformanceEntry {
22
22
  callback PerformanceObserverCallback = undefined (PerformanceObserverEntryList entries,
23
23
  PerformanceObserver observer,
24
24
  optional PerformanceObserverCallbackOptions options = {});
25
- [Exposed=*]
25
+ [Exposed=(Window,Worker)]
26
26
  interface PerformanceObserver {
27
27
  constructor(PerformanceObserverCallback callback);
28
28
  undefined observe (optional PerformanceObserverInit options = {});
@@ -41,7 +41,7 @@ dictionary PerformanceObserverInit {
41
41
  boolean buffered;
42
42
  };
43
43
 
44
- [Exposed=*]
44
+ [Exposed=(Window,Worker)]
45
45
  interface PerformanceObserverEntryList {
46
46
  PerformanceEntryList getEntries();
47
47
  PerformanceEntryList getEntriesByType (DOMString type);
@@ -0,0 +1,15 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Prerendering Revamped (https://wicg.github.io/nav-speculation/prerendering.html)
5
+
6
+ partial interface Document {
7
+ readonly attribute boolean prerendering;
8
+
9
+ // Under "special event handler IDL attributes that only apply to Document objects"
10
+ attribute EventHandler onprerenderingchange;
11
+ };
12
+
13
+ partial interface PerformanceNavigationTiming {
14
+ readonly attribute DOMHighResTimeStamp activationStart;
15
+ };
package/sanitizer-api.idl CHANGED
@@ -19,6 +19,7 @@
19
19
  dictionary SetHTMLOptions {
20
20
  Sanitizer sanitizer;
21
21
  };
22
+ [SecureContext]
22
23
  partial interface Element {
23
24
  undefined setHTML(DOMString input, optional SetHTMLOptions options = {});
24
25
  };
@@ -30,6 +31,7 @@ dictionary SanitizerConfig {
30
31
  AttributeMatchList allowAttributes;
31
32
  AttributeMatchList dropAttributes;
32
33
  boolean allowCustomElements;
34
+ boolean allowUnknownMarkup;
33
35
  boolean allowComments;
34
36
  };
35
37
 
@@ -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
  };
package/selection-api.idl CHANGED
@@ -24,8 +24,8 @@ interface Selection {
24
24
  undefined extend(Node node, optional unsigned long offset = 0);
25
25
  undefined setBaseAndExtent(Node anchorNode, unsigned long anchorOffset, Node focusNode, unsigned long focusOffset);
26
26
  undefined selectAllChildren(Node node);
27
- [CEReactions]
28
- undefined deleteFromDocument();
27
+ undefined modify(optional DOMString alter, optional DOMString direction, optional DOMString granularity);
28
+ [CEReactions] undefined deleteFromDocument();
29
29
  boolean containsNode(Node node, optional boolean allowPartialContainment = false);
30
30
  stringifier;
31
31
  };
package/user-timing.idl CHANGED
@@ -22,13 +22,13 @@ partial interface Performance {
22
22
  undefined clearMeasures(optional DOMString measureName);
23
23
  };
24
24
 
25
- [Exposed=*]
25
+ [Exposed=(Window,Worker)]
26
26
  interface PerformanceMark : PerformanceEntry {
27
27
  constructor(DOMString markName, optional PerformanceMarkOptions markOptions = {});
28
28
  readonly attribute any detail;
29
29
  };
30
30
 
31
- [Exposed=*]
31
+ [Exposed=(Window,Worker)]
32
32
  interface PerformanceMeasure : PerformanceEntry {
33
33
  readonly attribute any detail;
34
34
  };
package/wai-aria.idl CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  interface mixin ARIAMixin {
7
7
  attribute DOMString? role;
8
-
8
+ attribute Element? ariaActiveDescendantElement;
9
9
  attribute DOMString? ariaAtomic;
10
10
  attribute DOMString? ariaAutoComplete;
11
11
  attribute DOMString? ariaBusy;
@@ -14,28 +14,28 @@ interface mixin ARIAMixin {
14
14
  attribute DOMString? ariaColIndex;
15
15
  attribute DOMString? ariaColIndexText;
16
16
  attribute DOMString? ariaColSpan;
17
-
17
+ attribute FrozenArray<Element>? ariaControlsElements;
18
18
  attribute DOMString? ariaCurrent;
19
-
19
+ attribute FrozenArray<Element>? ariaDescribedByElements;
20
20
  attribute DOMString? ariaDescription;
21
-
21
+ attribute FrozenArray<Element>? ariaDetailsElements;
22
22
  attribute DOMString? ariaDisabled;
23
-
23
+ attribute Element? ariaErrorMessageElement;
24
24
  attribute DOMString? ariaExpanded;
25
-
25
+ attribute FrozenArray<Element>? ariaFlowToElements;
26
26
  attribute DOMString? ariaHasPopup;
27
27
  attribute DOMString? ariaHidden;
28
28
  attribute DOMString? ariaInvalid;
29
29
  attribute DOMString? ariaKeyShortcuts;
30
30
  attribute DOMString? ariaLabel;
31
-
31
+ attribute FrozenArray<Element>? ariaLabelledByElements;
32
32
  attribute DOMString? ariaLevel;
33
33
  attribute DOMString? ariaLive;
34
34
  attribute DOMString? ariaModal;
35
35
  attribute DOMString? ariaMultiLine;
36
36
  attribute DOMString? ariaMultiSelectable;
37
37
  attribute DOMString? ariaOrientation;
38
-
38
+ attribute FrozenArray<Element>? ariaOwnsElements;
39
39
  attribute DOMString? ariaPlaceholder;
40
40
  attribute DOMString? ariaPosInSet;
41
41
  attribute DOMString? ariaPressed;
@@ -29,6 +29,8 @@ partial interface AnimationEffect {
29
29
  };
30
30
 
31
31
  partial dictionary EffectTiming {
32
+ double delay;
33
+ double endDelay;
32
34
  double playbackRate = 1.0;
33
35
  (unrestricted double or CSSNumericValue or DOMString) duration = "auto";
34
36
  };
@@ -40,6 +40,7 @@ interface Animation : EventTarget {
40
40
  undefined updatePlaybackRate(double playbackRate);
41
41
  undefined reverse();
42
42
  undefined persist();
43
+ [CEReactions]
43
44
  undefined commitStyles();
44
45
  };
45
46
 
@@ -55,8 +56,6 @@ interface AnimationEffect {
55
56
  };
56
57
 
57
58
  dictionary EffectTiming {
58
- double delay = 0;
59
- double endDelay = 0;
60
59
  FillMode fill = "auto";
61
60
  double iterationStart = 0.0;
62
61
  unrestricted double iterations = 1.0;
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
 
@@ -255,26 +256,38 @@ partial dictionary AuthenticationExtensionsClientOutputs {
255
256
  };
256
257
 
257
258
  partial dictionary AuthenticationExtensionsClientInputs {
258
- boolean uvm;
259
+ boolean credProps;
259
260
  };
260
261
 
261
- typedef sequence<unsigned long> UvmEntry;
262
- typedef sequence<UvmEntry> UvmEntries;
262
+ dictionary CredentialPropertiesOutput {
263
+ boolean rk;
264
+ };
263
265
 
264
266
  partial dictionary AuthenticationExtensionsClientOutputs {
265
- UvmEntries uvm;
267
+ CredentialPropertiesOutput credProps;
268
+ };
269
+
270
+ dictionary AuthenticationExtensionsPRFValues {
271
+ required ArrayBuffer first;
272
+ ArrayBuffer second;
273
+ };
274
+
275
+ dictionary AuthenticationExtensionsPRFInputs {
276
+ AuthenticationExtensionsPRFValues eval;
277
+ record<USVString, AuthenticationExtensionsPRFValues> evalByCredential;
266
278
  };
267
279
 
268
280
  partial dictionary AuthenticationExtensionsClientInputs {
269
- boolean credProps;
281
+ AuthenticationExtensionsPRFInputs prf;
270
282
  };
271
283
 
272
- dictionary CredentialPropertiesOutput {
273
- boolean rk;
284
+ dictionary AuthenticationExtensionsPRFOutputs {
285
+ boolean enabled;
286
+ AuthenticationExtensionsPRFValues results;
274
287
  };
275
288
 
276
289
  partial dictionary AuthenticationExtensionsClientOutputs {
277
- CredentialPropertiesOutput credProps;
290
+ AuthenticationExtensionsPRFOutputs prf;
278
291
  };
279
292
 
280
293
  partial dictionary AuthenticationExtensionsClientInputs {
@@ -301,3 +314,14 @@ dictionary AuthenticationExtensionsLargeBlobOutputs {
301
314
  ArrayBuffer blob;
302
315
  boolean written;
303
316
  };
317
+
318
+ partial dictionary AuthenticationExtensionsClientInputs {
319
+ boolean uvm;
320
+ };
321
+
322
+ typedef sequence<unsigned long> UvmEntry;
323
+ typedef sequence<UvmEntry> UvmEntries;
324
+
325
+ partial dictionary AuthenticationExtensionsClientOutputs {
326
+ UvmEntries uvm;
327
+ };
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 = {});
package/webgpu.idl CHANGED
@@ -103,7 +103,8 @@ enum GPUFeatureName {
103
103
  "timestamp-query",
104
104
  "indirect-first-instance",
105
105
  "shader-f16",
106
- "bgra8unorm-storage"
106
+ "bgra8unorm-storage",
107
+ "rg11b10ufloat-renderable"
107
108
  };
108
109
 
109
110
  [Exposed=(Window, DedicatedWorker), SecureContext]
package/webrtc-stats.idl CHANGED
@@ -126,6 +126,7 @@ dictionary RTCOutboundRtpStreamStats : RTCSentRtpStreamStats {
126
126
  unsigned long firCount;
127
127
  unsigned long pliCount;
128
128
  DOMString encoderImplementation;
129
+ boolean active;
129
130
  };
130
131
 
131
132
  enum RTCQualityLimitationReason {
package/webrtc.idl CHANGED
@@ -311,8 +311,6 @@ dictionary RTCRtpCodingParameters {
311
311
  DOMString rid;
312
312
  };
313
313
 
314
- dictionary RTCRtpDecodingParameters : RTCRtpCodingParameters {};
315
-
316
314
  dictionary RTCRtpEncodingParameters : RTCRtpCodingParameters {
317
315
  boolean active = true;
318
316
  unsigned long maxBitrate;
package/webxrlayers.idl CHANGED
@@ -16,6 +16,7 @@ enum XRLayerLayout {
16
16
 
17
17
  attribute boolean blendTextureSourceAlpha;
18
18
  attribute boolean? chromaticAberrationCorrection;
19
+ attribute float opacity;
19
20
  readonly attribute unsigned long mipLevels;
20
21
 
21
22
  readonly attribute boolean needsRedraw;
@@ -1,27 +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: Visual Viewport API (https://wicg.github.io/visual-viewport/)
5
-
6
- partial interface Window {
7
- [SameObject, Replaceable] readonly attribute VisualViewport? visualViewport;
8
- };
9
-
10
- [Exposed=Window]
11
- interface VisualViewport : EventTarget {
12
- readonly attribute double offsetLeft;
13
- readonly attribute double offsetTop;
14
-
15
- readonly attribute double pageLeft;
16
- readonly attribute double pageTop;
17
-
18
- readonly attribute double width;
19
- readonly attribute double height;
20
-
21
- readonly attribute double scale;
22
-
23
- readonly attribute FrozenArray<DOMRect>? segments;
24
-
25
- attribute EventHandler onresize;
26
- attribute EventHandler onscroll;
27
- };