@webref/idl 3.45.3 → 3.46.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/DOM-Parsing.idl CHANGED
@@ -10,17 +10,17 @@ interface XMLSerializer {
10
10
  };
11
11
 
12
12
  interface mixin InnerHTML {
13
- [CEReactions] attribute [LegacyNullToEmptyString] DOMString innerHTML;
13
+ [CEReactions] attribute [LegacyNullToEmptyString] HTMLString innerHTML;
14
14
  };
15
15
 
16
16
  Element includes InnerHTML;
17
17
  ShadowRoot includes InnerHTML;
18
18
 
19
19
  partial interface Element {
20
- [CEReactions] attribute [LegacyNullToEmptyString] DOMString outerHTML;
21
- [CEReactions] undefined insertAdjacentHTML(DOMString position, DOMString text);
20
+ [CEReactions] attribute [LegacyNullToEmptyString] HTMLString outerHTML;
21
+ [CEReactions] undefined insertAdjacentHTML(DOMString position, HTMLString text);
22
22
  };
23
23
 
24
24
  partial interface Range {
25
- [CEReactions, NewObject] DocumentFragment createContextualFragment(DOMString fragment);
25
+ [CEReactions, NewObject] DocumentFragment createContextualFragment(HTMLString fragment);
26
26
  };
@@ -14,9 +14,9 @@ callback PressureUpdateCallback = undefined (
14
14
 
15
15
  [Exposed=(DedicatedWorker,SharedWorker,Window), SecureContext]
16
16
  interface PressureObserver {
17
- constructor(PressureUpdateCallback callback, optional PressureObserverOptions options = {});
17
+ constructor(PressureUpdateCallback callback);
18
18
 
19
- Promise<undefined> observe(PressureSource source);
19
+ Promise<undefined> observe(PressureSource source, optional PressureObserverOptions options = {});
20
20
  undefined unobserve(PressureSource source);
21
21
  undefined disconnect();
22
22
  sequence<PressureRecord> takeRecords();
@@ -6,5 +6,79 @@
6
6
  [Exposed=Window]
7
7
  interface CSSPositionTryRule : CSSRule {
8
8
  readonly attribute CSSOMString name;
9
- [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
9
+ [SameObject, PutForwards=cssText] readonly attribute CSSPositionTryDescriptors style;
10
+ };
11
+
12
+ [Exposed=Window]
13
+ interface CSSPositionTryDescriptors : CSSStyleDeclaration {
14
+ attribute CSSOMString margin;
15
+ attribute CSSOMString marginTop;
16
+ attribute CSSOMString marginRight;
17
+ attribute CSSOMString marginBottom;
18
+ attribute CSSOMString marginLeft;
19
+ attribute CSSOMString marginBlock;
20
+ attribute CSSOMString marginBlockStart;
21
+ attribute CSSOMString marginBlockEnd;
22
+ attribute CSSOMString marginInline;
23
+ attribute CSSOMString marginInlineStart;
24
+ attribute CSSOMString marginInlineEnd;
25
+ attribute CSSOMString margin-top;
26
+ attribute CSSOMString margin-right;
27
+ attribute CSSOMString margin-bottom;
28
+ attribute CSSOMString margin-left;
29
+ attribute CSSOMString margin-block;
30
+ attribute CSSOMString margin-block-start;
31
+ attribute CSSOMString margin-block-end;
32
+ attribute CSSOMString margin-inline;
33
+ attribute CSSOMString margin-inline-start;
34
+ attribute CSSOMString margin-inline-end;
35
+ attribute CSSOMString inset;
36
+ attribute CSSOMString insetBlock;
37
+ attribute CSSOMString insetBlockStart;
38
+ attribute CSSOMString insetBlockEnd;
39
+ attribute CSSOMString insetInline;
40
+ attribute CSSOMString insetInlineStart;
41
+ attribute CSSOMString insetInlineEnd;
42
+ attribute CSSOMString top;
43
+ attribute CSSOMString left;
44
+ attribute CSSOMString right;
45
+ attribute CSSOMString bottom;
46
+ attribute CSSOMString inset-block;
47
+ attribute CSSOMString inset-block-start;
48
+ attribute CSSOMString inset-block-end;
49
+ attribute CSSOMString inset-inline;
50
+ attribute CSSOMString inset-inline-start;
51
+ attribute CSSOMString inset-inline-end;
52
+ attribute CSSOMString width;
53
+ attribute CSSOMString minWidth;
54
+ attribute CSSOMString maxWidth;
55
+ attribute CSSOMString height;
56
+ attribute CSSOMString minHeight;
57
+ attribute CSSOMString maxHeight;
58
+ attribute CSSOMString blockSize;
59
+ attribute CSSOMString minBlockSize;
60
+ attribute CSSOMString maxBlockSize;
61
+ attribute CSSOMString inlineSize;
62
+ attribute CSSOMString minInlineSize;
63
+ attribute CSSOMString maxInlineSize;
64
+ attribute CSSOMString min-width;
65
+ attribute CSSOMString max-width;
66
+ attribute CSSOMString min-height;
67
+ attribute CSSOMString max-height;
68
+ attribute CSSOMString block-size;
69
+ attribute CSSOMString min-block-size;
70
+ attribute CSSOMString max-block-size;
71
+ attribute CSSOMString inline-size;
72
+ attribute CSSOMString min-inline-size;
73
+ attribute CSSOMString max-inline-size;
74
+ attribute CSSOMString placeSelf;
75
+ attribute CSSOMString alignSelf;
76
+ attribute CSSOMString justifySelf;
77
+ attribute CSSOMString place-self;
78
+ attribute CSSOMString align-self;
79
+ attribute CSSOMString justify-self;
80
+ attribute CSSOMString positionAnchor;
81
+ attribute CSSOMString position-anchor;
82
+ attribute CSSOMString insetArea;
83
+ attribute CSSOMString inset-area;
10
84
  };
@@ -9,15 +9,10 @@ partial interface CSSRule {
9
9
 
10
10
  enum ViewTransitionNavigation { "auto", "none" };
11
11
 
12
- [Exposed=Window]
13
- interface CSSViewTransitionTypeSet {
14
- readonly setlike<CSSOMString>;
15
- };
16
-
17
12
  [Exposed=Window]
18
13
  interface CSSViewTransitionRule : CSSRule {
19
14
  readonly attribute ViewTransitionNavigation navigation;
20
- readonly attribute CSSViewTransitionTypeSet types;
15
+ [SameObject] readonly attribute FrozenArray<CSSOMString> types;
21
16
  };
22
17
 
23
18
  [Exposed=Window]
@@ -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: Device Attributes API (https://wicg.github.io/WebApiDevice/device_attributes/)
5
+
6
+ partial interface NavigatorManagedData {
7
+ // Device Attributes API.
8
+ Promise<DOMString> getAnnotatedAssetId();
9
+ Promise<DOMString> getAnnotatedLocation();
10
+ Promise<DOMString> getDirectoryId();
11
+ Promise<DOMString> getHostname();
12
+ Promise<DOMString> getSerialNumber();
13
+ };
@@ -20,7 +20,7 @@ interface DocumentPictureInPicture : EventTarget {
20
20
  dictionary DocumentPictureInPictureOptions {
21
21
  [EnforceRange] unsigned long long width = 0;
22
22
  [EnforceRange] unsigned long long height = 0;
23
- boolean allowReturnToOpener = true;
23
+ boolean disallowReturnToOpener = false;
24
24
  };
25
25
 
26
26
  [Exposed=Window, SecureContext]
package/dom.idl CHANGED
@@ -340,6 +340,7 @@ interface ShadowRoot : DocumentFragment {
340
340
  readonly attribute boolean delegatesFocus;
341
341
  readonly attribute SlotAssignmentMode slotAssignment;
342
342
  readonly attribute boolean clonable;
343
+ readonly attribute boolean serializable;
343
344
  readonly attribute Element host;
344
345
  attribute EventHandler onslotchange;
345
346
  };
@@ -398,6 +399,7 @@ dictionary ShadowRootInit {
398
399
  boolean delegatesFocus = false;
399
400
  SlotAssignmentMode slotAssignment = "named";
400
401
  boolean clonable = false;
402
+ boolean serializable = false;
401
403
  };
402
404
 
403
405
  [Exposed=Window,
package/gamepad.idl CHANGED
@@ -44,7 +44,8 @@ enum GamepadHapticsResult {
44
44
  };
45
45
 
46
46
  enum GamepadHapticEffectType {
47
- "dual-rumble"
47
+ "dual-rumble",
48
+ "trigger-rumble"
48
49
  };
49
50
 
50
51
  dictionary GamepadEffectParameters {
@@ -52,6 +53,8 @@ dictionary GamepadEffectParameters {
52
53
  unsigned long long startDelay = 0;
53
54
  double strongMagnitude = 0.0;
54
55
  double weakMagnitude = 0.0;
56
+ double leftTrigger = 0.0;
57
+ double rightTrigger = 0.0;
55
58
  };
56
59
 
57
60
  [Exposed=Window]
package/html.idl CHANGED
@@ -1245,6 +1245,7 @@ interface HTMLTemplateElement : HTMLElement {
1245
1245
  [CEReactions] attribute DOMString shadowRootMode;
1246
1246
  [CEReactions] attribute boolean shadowRootDelegatesFocus;
1247
1247
  [CEReactions] attribute boolean shadowRootClonable;
1248
+ [CEReactions] attribute boolean shadowRootSerializable;
1248
1249
  };
1249
1250
 
1250
1251
  [Exposed=Window]
@@ -2292,6 +2293,21 @@ interface mixin WindowOrWorkerGlobalScope {
2292
2293
  Window includes WindowOrWorkerGlobalScope;
2293
2294
  WorkerGlobalScope includes WindowOrWorkerGlobalScope;
2294
2295
 
2296
+ partial interface Element {
2297
+ [CEReactions] undefined setHTMLUnsafe(HTMLString html);
2298
+ DOMString getHTML(optional GetHTMLOptions options = {});
2299
+ };
2300
+
2301
+ partial interface ShadowRoot {
2302
+ [CEReactions] undefined setHTMLUnsafe(HTMLString html);
2303
+ DOMString getHTML(optional GetHTMLOptions options = {});
2304
+ };
2305
+
2306
+ dictionary GetHTMLOptions {
2307
+ boolean serializableShadowRoots = false;
2308
+ sequence<ShadowRoot> shadowRoots = [];
2309
+ };
2310
+
2295
2311
  [Exposed=Window]
2296
2312
  interface DOMParser {
2297
2313
  constructor();
@@ -2307,14 +2323,6 @@ enum DOMParserSupportedType {
2307
2323
  "image/svg+xml"
2308
2324
  };
2309
2325
 
2310
- partial interface Element {
2311
- [CEReactions] undefined setHTMLUnsafe(HTMLString html);
2312
- };
2313
-
2314
- partial interface ShadowRoot {
2315
- [CEReactions] undefined setHTMLUnsafe(HTMLString html);
2316
- };
2317
-
2318
2326
  [Exposed=Window]
2319
2327
  interface Navigator {
2320
2328
  // objects implementing this interface also implement the interfaces given below
package/mediasession.idl CHANGED
@@ -56,6 +56,7 @@ interface MediaMetadata {
56
56
  attribute DOMString artist;
57
57
  attribute DOMString album;
58
58
  attribute FrozenArray<MediaImage> artwork;
59
+ [SameObject] readonly attribute FrozenArray<ChapterInformation> chapterInfo;
59
60
  };
60
61
 
61
62
  dictionary MediaMetadataInit {
@@ -63,6 +64,20 @@ dictionary MediaMetadataInit {
63
64
  DOMString artist = "";
64
65
  DOMString album = "";
65
66
  sequence<MediaImage> artwork = [];
67
+ sequence<ChapterInformationInit> chapterInfo = [];
68
+ };
69
+
70
+ [Exposed=Window]
71
+ interface ChapterInformation {
72
+ readonly attribute DOMString title;
73
+ readonly attribute double startTime;
74
+ [SameObject] readonly attribute FrozenArray<MediaImage> artwork;
75
+ };
76
+
77
+ dictionary ChapterInformationInit {
78
+ DOMString title = "";
79
+ double startTime = 0;
80
+ sequence<MediaImage> artwork = [];
66
81
  };
67
82
 
68
83
  dictionary MediaImage {
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.45.3",
4
+ "version": "3.46.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
package/sanitizer-api.idl CHANGED
@@ -3,21 +3,6 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: HTML Sanitizer API (https://wicg.github.io/sanitizer-api/)
5
5
 
6
- partial interface Element {
7
- [CEReactions] undefined setHTMLUnsafe__TO_BE_MERGED(DOMString html, optional SanitizerConfig config = {});
8
- [CEReactions] undefined setHTML(DOMString html, optional SanitizerConfig config = {});
9
- };
10
-
11
- partial interface ShadowRoot {
12
- [CEReactions] undefined setHTMLUnsafe__TO_BE_MERGED(DOMString html, optional SanitizerConfig config = {});
13
- [CEReactions] undefined setHTML(DOMString html, optional SanitizerConfig config = {});
14
- };
15
-
16
- partial interface Document {
17
- static Document parseHTMLUnsafe__TO_BE_MERGED(DOMString html, optional SanitizerConfig config = {});
18
- static Document parseHTML(DOMString html, optional SanitizerConfig config = {});
19
- };
20
-
21
6
  dictionary SanitizerElementNamespace {
22
7
  required DOMString name;
23
8
  DOMString? _namespace = "http://www.w3.org/1999/xhtml";
@@ -17,11 +17,11 @@ dictionary FaceDetectorOptions {
17
17
 
18
18
  dictionary DetectedFace {
19
19
  required DOMRectReadOnly boundingBox;
20
- required FrozenArray<Landmark>? landmarks;
20
+ required sequence<Landmark>? landmarks;
21
21
  };
22
22
 
23
23
  dictionary Landmark {
24
- required FrozenArray<Point2D> locations;
24
+ required sequence<Point2D> locations;
25
25
  LandmarkType type;
26
26
  };
27
27
 
@@ -48,7 +48,7 @@ dictionary DetectedBarcode {
48
48
  required DOMRectReadOnly boundingBox;
49
49
  required DOMString rawValue;
50
50
  required BarcodeFormat format;
51
- required FrozenArray<Point2D> cornerPoints;
51
+ required sequence<Point2D> cornerPoints;
52
52
  };
53
53
 
54
54
  enum BarcodeFormat {
@@ -14,5 +14,5 @@
14
14
  dictionary DetectedText {
15
15
  required DOMRectReadOnly boundingBox;
16
16
  required DOMString rawValue;
17
- required FrozenArray<Point2D> cornerPoints;
17
+ required sequence<Point2D> cornerPoints;
18
18
  };
package/turtledove.idl CHANGED
@@ -82,6 +82,7 @@ dictionary AuctionAdConfig {
82
82
  Promise<record<USVString, any>> perBuyerSignals;
83
83
  Promise<record<USVString, unsigned long long>> perBuyerTimeouts;
84
84
  Promise<record<USVString, unsigned long long>> perBuyerCumulativeTimeouts;
85
+ unsigned long long reportingTimeout;
85
86
  USVString sellerCurrency;
86
87
  Promise<record<USVString, USVString>> perBuyerCurrencies;
87
88
  record<USVString, unsigned short> perBuyerGroupLimits;
package/wasm-js-api.idl CHANGED
@@ -62,6 +62,8 @@ dictionary MemoryDescriptor {
62
62
  interface Memory {
63
63
  constructor(MemoryDescriptor descriptor);
64
64
  unsigned long grow([EnforceRange] unsigned long delta);
65
+ ArrayBuffer toFixedLengthBuffer();
66
+ ArrayBuffer toResizableBuffer();
65
67
  readonly attribute ArrayBuffer buffer;
66
68
  };
67
69
 
package/webcodecs.idl CHANGED
@@ -371,6 +371,8 @@ dictionary VideoFrameBufferInit {
371
371
  VideoColorSpaceInit colorSpace;
372
372
 
373
373
  sequence<ArrayBuffer> transfer = [];
374
+
375
+ VideoFrameMetadata metadata;
374
376
  };
375
377
 
376
378
  dictionary VideoFrameMetadata {
package/webidl.idl CHANGED
@@ -6,7 +6,7 @@
6
6
  typedef (Int8Array or Int16Array or Int32Array or
7
7
  Uint8Array or Uint16Array or Uint32Array or Uint8ClampedArray or
8
8
  BigInt64Array or BigUint64Array or
9
- Float32Array or Float64Array or DataView) ArrayBufferView;
9
+ Float16Array or Float32Array or Float64Array or DataView) ArrayBufferView;
10
10
 
11
11
  typedef (ArrayBufferView or ArrayBuffer) BufferSource;
12
12
  typedef (ArrayBuffer or SharedArrayBuffer or [AllowShared] ArrayBufferView) AllowSharedBufferSource;
package/webnn.idl CHANGED
@@ -64,11 +64,7 @@ enum MLOperandDataType {
64
64
  };
65
65
 
66
66
  dictionary MLOperandDescriptor {
67
- // The operand type.
68
67
  required MLOperandDataType dataType;
69
-
70
- // The dimensions field is empty for scalar operands,
71
- // and non-empty for tensor operands.
72
68
  sequence<[EnforceRange] unsigned long> dimensions = [];
73
69
  };
74
70
 
@@ -122,7 +118,7 @@ dictionary MLBatchNormalizationOptions {
122
118
 
123
119
  partial interface MLGraphBuilder {
124
120
  MLOperand batchNormalization(MLOperand input, MLOperand mean, MLOperand variance,
125
- optional MLBatchNormalizationOptions options = {});
121
+ optional MLBatchNormalizationOptions options = {});
126
122
  };
127
123
 
128
124
  partial interface MLGraphBuilder {
@@ -162,7 +158,9 @@ dictionary MLConv2dOptions {
162
158
  };
163
159
 
164
160
  partial interface MLGraphBuilder {
165
- MLOperand conv2d(MLOperand input, MLOperand filter, optional MLConv2dOptions options = {});
161
+ MLOperand conv2d(MLOperand input,
162
+ MLOperand filter,
163
+ optional MLConv2dOptions options = {});
166
164
  };
167
165
 
168
166
  enum MLConvTranspose2dFilterOperandLayout {
@@ -242,7 +240,14 @@ dictionary MLGatherOptions {
242
240
  };
243
241
 
244
242
  partial interface MLGraphBuilder {
245
- MLOperand gather(MLOperand input, MLOperand indices, optional MLGatherOptions options = {});
243
+ MLOperand gather(MLOperand input,
244
+ MLOperand indices,
245
+ optional MLGatherOptions options = {});
246
+ };
247
+
248
+ partial interface MLGraphBuilder {
249
+ MLOperand gelu(MLOperand input);
250
+ MLActivation gelu();
246
251
  };
247
252
 
248
253
  dictionary MLGemmOptions {
@@ -329,7 +334,7 @@ dictionary MLInstanceNormalizationOptions {
329
334
 
330
335
  partial interface MLGraphBuilder {
331
336
  MLOperand instanceNormalization(MLOperand input,
332
- optional MLInstanceNormalizationOptions options = {});
337
+ optional MLInstanceNormalizationOptions options = {});
333
338
  };
334
339
 
335
340
  dictionary MLLayerNormalizationOptions {
@@ -340,7 +345,8 @@ dictionary MLLayerNormalizationOptions {
340
345
  };
341
346
 
342
347
  partial interface MLGraphBuilder {
343
- MLOperand layerNormalization(MLOperand input, optional MLLayerNormalizationOptions options = {});
348
+ MLOperand layerNormalization(MLOperand input,
349
+ optional MLLayerNormalizationOptions options = {});
344
350
  };
345
351
 
346
352
  dictionary MLLeakyReluOptions {
@@ -532,9 +538,10 @@ dictionary MLSplitOptions {
532
538
  };
533
539
 
534
540
  partial interface MLGraphBuilder {
535
- sequence<MLOperand> split(MLOperand input,
536
- ([EnforceRange] unsigned long or sequence<[EnforceRange] unsigned long>) splits,
537
- optional MLSplitOptions options = {});
541
+ sequence<MLOperand> split(
542
+ MLOperand input,
543
+ ([EnforceRange] unsigned long or sequence<[EnforceRange] unsigned long>) splits,
544
+ optional MLSplitOptions options = {});
538
545
  };
539
546
 
540
547
  partial interface MLGraphBuilder {
package/webrtc.idl CHANGED
@@ -368,6 +368,7 @@ interface RTCRtpReceiver {
368
368
  sequence<RTCRtpContributingSource> getContributingSources();
369
369
  sequence<RTCRtpSynchronizationSource> getSynchronizationSources();
370
370
  Promise<RTCStatsReport> getStats();
371
+ attribute DOMHighResTimeStamp? jitterBufferTarget;
371
372
  };
372
373
 
373
374
  dictionary RTCRtpContributingSource {
@@ -434,8 +435,8 @@ dictionary RTCIceParameters {
434
435
  };
435
436
 
436
437
  dictionary RTCIceCandidatePair {
437
- RTCIceCandidate local;
438
- RTCIceCandidate remote;
438
+ required RTCIceCandidate local;
439
+ required RTCIceCandidate remote;
439
440
  };
440
441
 
441
442
  enum RTCIceGathererState {
package/webxr.idl CHANGED
@@ -263,8 +263,8 @@ interface XRInputSourcesChangeEvent : Event {
263
263
 
264
264
  dictionary XRInputSourcesChangeEventInit : EventInit {
265
265
  required XRSession session;
266
- required FrozenArray<XRInputSource> added;
267
- required FrozenArray<XRInputSource> removed;
266
+ required sequence<XRInputSource> added;
267
+ required sequence<XRInputSource> removed;
268
268
 
269
269
  };
270
270