@webref/idl 3.46.2 → 3.47.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
@@ -8,12 +8,3 @@ interface XMLSerializer {
8
8
  constructor();
9
9
  DOMString serializeToString(Node root);
10
10
  };
11
-
12
- partial interface Element {
13
- [CEReactions] attribute [LegacyNullToEmptyString] HTMLString outerHTML;
14
- [CEReactions] undefined insertAdjacentHTML(DOMString position, HTMLString text);
15
- };
16
-
17
- partial interface Range {
18
- [CEReactions, NewObject] DocumentFragment createContextualFragment(HTMLString fragment);
19
- };
@@ -0,0 +1,9 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: CSS Nesting Module (https://drafts.csswg.org/css-nesting-1/)
5
+
6
+ [Exposed=Window]
7
+ interface CSSNestRule : CSSGroupingRule {
8
+ [SameObject, PutForwards=cssText] readonly attribute CSSStyleProperties style;
9
+ };
@@ -16,8 +16,8 @@ partial namespace CSS {
16
16
 
17
17
  [Exposed=Window]
18
18
  interface CSSPropertyRule : CSSRule {
19
- readonly attribute CSSOMString name;
20
- readonly attribute CSSOMString syntax;
21
- readonly attribute boolean inherits;
22
- readonly attribute CSSOMString? initialValue;
19
+ readonly attribute CSSOMString name;
20
+ readonly attribute CSSOMString syntax;
21
+ readonly attribute boolean inherits;
22
+ readonly attribute CSSOMString? initialValue;
23
23
  };
package/dom.idl CHANGED
@@ -120,9 +120,9 @@ interface mixin ParentNode {
120
120
  readonly attribute Element? lastElementChild;
121
121
  readonly attribute unsigned long childElementCount;
122
122
 
123
- [CEReactions, Unscopable] undefined prepend((Node or DOMString)... nodes);
124
- [CEReactions, Unscopable] undefined append((Node or DOMString)... nodes);
125
- [CEReactions, Unscopable] undefined replaceChildren((Node or DOMString)... nodes);
123
+ [CEReactions, Unscopable] undefined prepend((Node or TrustedScript or DOMString)... nodes);
124
+ [CEReactions, Unscopable] undefined append((Node or TrustedScript or DOMString)... nodes);
125
+ [CEReactions, Unscopable] undefined replaceChildren((Node or TrustedScript or DOMString)... nodes);
126
126
 
127
127
  Element? querySelector(DOMString selectors);
128
128
  [NewObject] NodeList querySelectorAll(DOMString selectors);
@@ -139,9 +139,9 @@ Element includes NonDocumentTypeChildNode;
139
139
  CharacterData includes NonDocumentTypeChildNode;
140
140
 
141
141
  interface mixin ChildNode {
142
- [CEReactions, Unscopable] undefined before((Node or DOMString)... nodes);
143
- [CEReactions, Unscopable] undefined after((Node or DOMString)... nodes);
144
- [CEReactions, Unscopable] undefined replaceWith((Node or DOMString)... nodes);
142
+ [CEReactions, Unscopable] undefined before((Node or TrustedScript or DOMString)... nodes);
143
+ [CEReactions, Unscopable] undefined after((Node or TrustedScript or DOMString)... nodes);
144
+ [CEReactions, Unscopable] undefined replaceWith((Node or TrustedScript or DOMString)... nodes);
145
145
  [CEReactions, Unscopable] undefined remove();
146
146
  };
147
147
  DocumentType includes ChildNode;
package/geolocation.idl CHANGED
@@ -42,6 +42,7 @@ dictionary PositionOptions {
42
42
  interface GeolocationPosition {
43
43
  readonly attribute GeolocationCoordinates coords;
44
44
  readonly attribute EpochTimeStamp timestamp;
45
+ [Default] object toJSON();
45
46
  };
46
47
 
47
48
  [Exposed=Window, SecureContext]
@@ -53,6 +54,7 @@ interface GeolocationCoordinates {
53
54
  readonly attribute double? altitudeAccuracy;
54
55
  readonly attribute double? heading;
55
56
  readonly attribute double? speed;
57
+ [Default] object toJSON();
56
58
  };
57
59
 
58
60
  [Exposed=Window]
package/html.idl CHANGED
@@ -1580,7 +1580,6 @@ interface OffscreenCanvas : EventTarget {
1580
1580
 
1581
1581
  [Exposed=(Window,Worker)]
1582
1582
  interface OffscreenCanvasRenderingContext2D {
1583
- undefined commit();
1584
1583
  readonly attribute OffscreenCanvas canvas;
1585
1584
  };
1586
1585
 
@@ -2298,6 +2297,8 @@ partial interface Element {
2298
2297
  DOMString getHTML(optional GetHTMLOptions options = {});
2299
2298
 
2300
2299
  [CEReactions] attribute [LegacyNullToEmptyString] HTMLString innerHTML;
2300
+ [CEReactions] attribute [LegacyNullToEmptyString] HTMLString outerHTML;
2301
+ [CEReactions] undefined insertAdjacentHTML(DOMString position, HTMLString string);
2301
2302
  };
2302
2303
 
2303
2304
  partial interface ShadowRoot {
@@ -2327,6 +2328,10 @@ enum DOMParserSupportedType {
2327
2328
  "image/svg+xml"
2328
2329
  };
2329
2330
 
2331
+ partial interface Range {
2332
+ [CEReactions, NewObject] DocumentFragment createContextualFragment(HTMLString string);
2333
+ };
2334
+
2330
2335
  [Exposed=Window]
2331
2336
  interface Navigator {
2332
2337
  // objects implementing this interface also implement the interfaces given below
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.46.2",
4
+ "version": "3.47.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -3,40 +3,30 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: Shared Storage API (https://wicg.github.io/shared-storage/)
5
5
 
6
+ typedef (USVString or FencedFrameConfig) SharedStorageResponse;
7
+
6
8
  [Exposed=(Window)]
7
9
  interface SharedStorageWorklet : Worklet {
10
+ Promise<SharedStorageResponse> selectURL(DOMString name,
11
+ FrozenArray<SharedStorageUrlWithMetadata> urls,
12
+ optional SharedStorageRunOperationMethodOptions options = {});
13
+ Promise<any> run(DOMString name,
14
+ optional SharedStorageRunOperationMethodOptions options = {});
8
15
  };
9
16
 
17
+ callback RunFunctionForSharedStorageSelectURLOperation = Promise<unsigned long>(sequence<USVString> urls, optional any data);
18
+
10
19
  [Exposed=SharedStorageWorklet, Global=SharedStorageWorklet]
11
20
  interface SharedStorageWorkletGlobalScope : WorkletGlobalScope {
12
21
  undefined register(DOMString name,
13
- SharedStorageOperationConstructor operationCtor);
22
+ Function operationCtor);
14
23
 
15
24
  readonly attribute WorkletSharedStorage sharedStorage;
16
25
  };
17
26
 
18
- callback SharedStorageOperationConstructor =
19
- SharedStorageOperation(optional SharedStorageRunOperationMethodOptions options);
20
-
21
- [Exposed=SharedStorageWorklet]
22
- interface SharedStorageOperation {
23
- };
24
-
25
- dictionary SharedStorageRunOperationMethodOptions {
26
- object data;
27
- boolean resolveToConfig = false;
28
- boolean keepAlive = false;
29
- };
30
-
31
- [Exposed=SharedStorageWorklet]
32
- interface SharedStorageRunOperation : SharedStorageOperation {
33
- Promise<undefined> run(object data);
34
- };
35
-
36
- [Exposed=SharedStorageWorklet]
37
- interface SharedStorageSelectURLOperation : SharedStorageOperation {
38
- Promise<long> run(object data,
39
- FrozenArray<SharedStorageUrlWithMetadata> urls);
27
+ dictionary SharedStorageUrlWithMetadata {
28
+ required USVString url;
29
+ object reportingMetadata;
40
30
  };
41
31
 
42
32
  [Exposed=(Window,SharedStorageWorklet)]
@@ -54,22 +44,23 @@ dictionary SharedStorageSetMethodOptions {
54
44
  boolean ignoreIfPresent = false;
55
45
  };
56
46
 
57
- typedef (USVString or FencedFrameConfig) SharedStorageResponse;
58
-
59
47
  [Exposed=(Window)]
60
48
  interface WindowSharedStorage : SharedStorage {
61
- Promise<any> run(DOMString name,
62
- optional SharedStorageRunOperationMethodOptions options = {});
63
49
  Promise<SharedStorageResponse> selectURL(DOMString name,
64
50
  FrozenArray<SharedStorageUrlWithMetadata> urls,
65
51
  optional SharedStorageRunOperationMethodOptions options = {});
52
+ Promise<any> run(DOMString name,
53
+ optional SharedStorageRunOperationMethodOptions options = {});
54
+
55
+ Promise<SharedStorageWorklet> createWorklet(USVString moduleURL, optional WorkletOptions options = {});
66
56
 
67
57
  readonly attribute SharedStorageWorklet worklet;
68
58
  };
69
59
 
70
- dictionary SharedStorageUrlWithMetadata {
71
- required USVString url;
72
- object reportingMetadata;
60
+ dictionary SharedStorageRunOperationMethodOptions {
61
+ object data;
62
+ boolean resolveToConfig = false;
63
+ boolean keepAlive = false;
73
64
  };
74
65
 
75
66
  partial interface Window {
package/webcodecs.idl CHANGED
@@ -382,6 +382,8 @@ dictionary VideoFrameMetadata {
382
382
  dictionary VideoFrameCopyToOptions {
383
383
  DOMRectInit rect;
384
384
  sequence<PlaneLayout> layout;
385
+ VideoPixelFormat format;
386
+ PredefinedColorSpace colorSpace;
385
387
  };
386
388
 
387
389
  dictionary PlaneLayout {
package/webgl1.idl CHANGED
@@ -37,6 +37,7 @@ dictionary WebGLContextAttributes {
37
37
 
38
38
  [Exposed=(Window,Worker)]
39
39
  interface WebGLObject {
40
+ attribute USVString label;
40
41
  };
41
42
 
42
43
  [Exposed=(Window,Worker)]
package/webnn.idl CHANGED
@@ -515,17 +515,13 @@ partial interface MLGraphBuilder {
515
515
  };
516
516
 
517
517
  partial interface MLGraphBuilder {
518
- MLOperand softmax(MLOperand input);
519
- MLActivation softmax();
520
- };
521
-
522
- dictionary MLSoftplusOptions {
523
- float steepness = 1;
518
+ MLOperand softmax(MLOperand input, unsigned long axis);
519
+ MLActivation softmax(unsigned long axis);
524
520
  };
525
521
 
526
522
  partial interface MLGraphBuilder {
527
- MLOperand softplus(MLOperand input, optional MLSoftplusOptions options = {});
528
- MLActivation softplus(optional MLSoftplusOptions options = {});
523
+ MLOperand softplus(MLOperand input);
524
+ MLActivation softplus();
529
525
  };
530
526
 
531
527
  partial interface MLGraphBuilder {
@@ -78,10 +78,15 @@ dictionary RTCEncodedVideoFrameMetadata {
78
78
  DOMString mimeType;
79
79
  };
80
80
 
81
+ dictionary RTCEncodedVideoFrameOptions {
82
+ RTCEncodedVideoFrameMetadata metadata;
83
+ };
84
+
81
85
  // New interfaces to define encoded video and audio frames. Will eventually
82
86
  // re-use or extend the equivalent defined in WebCodecs.
83
87
  [Exposed=(Window,DedicatedWorker), Serializable]
84
88
  interface RTCEncodedVideoFrame {
89
+ constructor(RTCEncodedVideoFrame originalFrame, optional RTCEncodedVideoFrameOptions options = {});
85
90
  readonly attribute RTCEncodedVideoFrameType type;
86
91
  attribute ArrayBuffer data;
87
92
  RTCEncodedVideoFrameMetadata getMetadata();
@@ -96,8 +101,13 @@ dictionary RTCEncodedAudioFrameMetadata {
96
101
  DOMString mimeType;
97
102
  };
98
103
 
104
+ dictionary RTCEncodedAudioFrameOptions {
105
+ RTCEncodedAudioFrameMetadata metadata;
106
+ };
107
+
99
108
  [Exposed=(Window,DedicatedWorker), Serializable]
100
109
  interface RTCEncodedAudioFrame {
110
+ constructor(RTCEncodedAudioFrame originalFrame, optional RTCEncodedAudioFrameOptions options = {});
101
111
  attribute ArrayBuffer data;
102
112
  RTCEncodedAudioFrameMetadata getMetadata();
103
113
  };
package/webrtc.idl CHANGED
@@ -388,7 +388,7 @@ interface RTCRtpTransceiver {
388
388
  attribute RTCRtpTransceiverDirection direction;
389
389
  readonly attribute RTCRtpTransceiverDirection? currentDirection;
390
390
  undefined stop();
391
- undefined setCodecPreferences(sequence<RTCRtpCodecCapability> codecs);
391
+ undefined setCodecPreferences(sequence<RTCRtpCodec> codecs);
392
392
  };
393
393
 
394
394
  [Exposed=Window]