@webref/idl 3.31.0 → 3.32.0
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/device-posture.idl +1 -2
- package/dom.idl +36 -0
- package/orientation-event.idl +2 -0
- package/package.json +1 -1
- package/scheduling-apis.idl +52 -6
- package/scroll-animations.idl +1 -0
- package/ua-client-hints.idl +4 -3
- package/wasm-js-api.idl +6 -0
- package/web-animations-2.idl +10 -0
- package/webcodecs-av1-codec-registration.idl +12 -0
- package/window-placement.idl +1 -1
package/device-posture.idl
CHANGED
package/dom.idl
CHANGED
|
@@ -41,9 +41,11 @@ dictionary EventInit {
|
|
|
41
41
|
boolean cancelable = false;
|
|
42
42
|
boolean composed = false;
|
|
43
43
|
};
|
|
44
|
+
|
|
44
45
|
partial interface Window {
|
|
45
46
|
[Replaceable] readonly attribute (Event or undefined) event; // legacy
|
|
46
47
|
};
|
|
48
|
+
|
|
47
49
|
[Exposed=*]
|
|
48
50
|
interface CustomEvent : Event {
|
|
49
51
|
constructor(DOMString type, optional CustomEventInit eventInitDict = {});
|
|
@@ -56,6 +58,7 @@ interface CustomEvent : Event {
|
|
|
56
58
|
dictionary CustomEventInit : EventInit {
|
|
57
59
|
any detail = null;
|
|
58
60
|
};
|
|
61
|
+
|
|
59
62
|
[Exposed=*]
|
|
60
63
|
interface EventTarget {
|
|
61
64
|
constructor();
|
|
@@ -78,6 +81,7 @@ dictionary AddEventListenerOptions : EventListenerOptions {
|
|
|
78
81
|
boolean once = false;
|
|
79
82
|
AbortSignal signal;
|
|
80
83
|
};
|
|
84
|
+
|
|
81
85
|
[Exposed=*]
|
|
82
86
|
interface AbortController {
|
|
83
87
|
constructor();
|
|
@@ -86,6 +90,7 @@ interface AbortController {
|
|
|
86
90
|
|
|
87
91
|
undefined abort(optional any reason);
|
|
88
92
|
};
|
|
93
|
+
|
|
89
94
|
[Exposed=*]
|
|
90
95
|
interface AbortSignal : EventTarget {
|
|
91
96
|
[NewObject] static AbortSignal abort(optional any reason);
|
|
@@ -102,10 +107,12 @@ interface mixin NonElementParentNode {
|
|
|
102
107
|
};
|
|
103
108
|
Document includes NonElementParentNode;
|
|
104
109
|
DocumentFragment includes NonElementParentNode;
|
|
110
|
+
|
|
105
111
|
interface mixin DocumentOrShadowRoot {
|
|
106
112
|
};
|
|
107
113
|
Document includes DocumentOrShadowRoot;
|
|
108
114
|
ShadowRoot includes DocumentOrShadowRoot;
|
|
115
|
+
|
|
109
116
|
interface mixin ParentNode {
|
|
110
117
|
[SameObject] readonly attribute HTMLCollection children;
|
|
111
118
|
readonly attribute Element? firstElementChild;
|
|
@@ -122,12 +129,14 @@ interface mixin ParentNode {
|
|
|
122
129
|
Document includes ParentNode;
|
|
123
130
|
DocumentFragment includes ParentNode;
|
|
124
131
|
Element includes ParentNode;
|
|
132
|
+
|
|
125
133
|
interface mixin NonDocumentTypeChildNode {
|
|
126
134
|
readonly attribute Element? previousElementSibling;
|
|
127
135
|
readonly attribute Element? nextElementSibling;
|
|
128
136
|
};
|
|
129
137
|
Element includes NonDocumentTypeChildNode;
|
|
130
138
|
CharacterData includes NonDocumentTypeChildNode;
|
|
139
|
+
|
|
131
140
|
interface mixin ChildNode {
|
|
132
141
|
[CEReactions, Unscopable] undefined before((Node or DOMString)... nodes);
|
|
133
142
|
[CEReactions, Unscopable] undefined after((Node or DOMString)... nodes);
|
|
@@ -137,23 +146,27 @@ interface mixin ChildNode {
|
|
|
137
146
|
DocumentType includes ChildNode;
|
|
138
147
|
Element includes ChildNode;
|
|
139
148
|
CharacterData includes ChildNode;
|
|
149
|
+
|
|
140
150
|
interface mixin Slottable {
|
|
141
151
|
readonly attribute HTMLSlotElement? assignedSlot;
|
|
142
152
|
};
|
|
143
153
|
Element includes Slottable;
|
|
144
154
|
Text includes Slottable;
|
|
155
|
+
|
|
145
156
|
[Exposed=Window]
|
|
146
157
|
interface NodeList {
|
|
147
158
|
getter Node? item(unsigned long index);
|
|
148
159
|
readonly attribute unsigned long length;
|
|
149
160
|
iterable<Node>;
|
|
150
161
|
};
|
|
162
|
+
|
|
151
163
|
[Exposed=Window, LegacyUnenumerableNamedProperties]
|
|
152
164
|
interface HTMLCollection {
|
|
153
165
|
readonly attribute unsigned long length;
|
|
154
166
|
getter Element? item(unsigned long index);
|
|
155
167
|
getter Element? namedItem(DOMString name);
|
|
156
168
|
};
|
|
169
|
+
|
|
157
170
|
[Exposed=Window]
|
|
158
171
|
interface MutationObserver {
|
|
159
172
|
constructor(MutationCallback callback);
|
|
@@ -174,6 +187,7 @@ dictionary MutationObserverInit {
|
|
|
174
187
|
boolean characterDataOldValue;
|
|
175
188
|
sequence<DOMString> attributeFilter;
|
|
176
189
|
};
|
|
190
|
+
|
|
177
191
|
[Exposed=Window]
|
|
178
192
|
interface MutationRecord {
|
|
179
193
|
readonly attribute DOMString type;
|
|
@@ -186,6 +200,7 @@ interface MutationRecord {
|
|
|
186
200
|
readonly attribute DOMString? attributeNamespace;
|
|
187
201
|
readonly attribute DOMString? oldValue;
|
|
188
202
|
};
|
|
203
|
+
|
|
189
204
|
[Exposed=Window]
|
|
190
205
|
interface Node : EventTarget {
|
|
191
206
|
const unsigned short ELEMENT_NODE = 1;
|
|
@@ -247,6 +262,7 @@ interface Node : EventTarget {
|
|
|
247
262
|
dictionary GetRootNodeOptions {
|
|
248
263
|
boolean composed = false;
|
|
249
264
|
};
|
|
265
|
+
|
|
250
266
|
[Exposed=Window]
|
|
251
267
|
interface Document : Node {
|
|
252
268
|
constructor();
|
|
@@ -295,6 +311,7 @@ interface XMLDocument : Document {};
|
|
|
295
311
|
dictionary ElementCreationOptions {
|
|
296
312
|
DOMString is;
|
|
297
313
|
};
|
|
314
|
+
|
|
298
315
|
[Exposed=Window]
|
|
299
316
|
interface DOMImplementation {
|
|
300
317
|
[NewObject] DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId, DOMString systemId);
|
|
@@ -303,16 +320,19 @@ interface DOMImplementation {
|
|
|
303
320
|
|
|
304
321
|
boolean hasFeature(); // useless; always returns true
|
|
305
322
|
};
|
|
323
|
+
|
|
306
324
|
[Exposed=Window]
|
|
307
325
|
interface DocumentType : Node {
|
|
308
326
|
readonly attribute DOMString name;
|
|
309
327
|
readonly attribute DOMString publicId;
|
|
310
328
|
readonly attribute DOMString systemId;
|
|
311
329
|
};
|
|
330
|
+
|
|
312
331
|
[Exposed=Window]
|
|
313
332
|
interface DocumentFragment : Node {
|
|
314
333
|
constructor();
|
|
315
334
|
};
|
|
335
|
+
|
|
316
336
|
[Exposed=Window]
|
|
317
337
|
interface ShadowRoot : DocumentFragment {
|
|
318
338
|
readonly attribute ShadowRootMode mode;
|
|
@@ -324,6 +344,7 @@ interface ShadowRoot : DocumentFragment {
|
|
|
324
344
|
|
|
325
345
|
enum ShadowRootMode { "open", "closed" };
|
|
326
346
|
enum SlotAssignmentMode { "manual", "named" };
|
|
347
|
+
|
|
327
348
|
[Exposed=Window]
|
|
328
349
|
interface Element : Node {
|
|
329
350
|
readonly attribute DOMString? namespaceURI;
|
|
@@ -375,6 +396,7 @@ dictionary ShadowRootInit {
|
|
|
375
396
|
boolean delegatesFocus = false;
|
|
376
397
|
SlotAssignmentMode slotAssignment = "named";
|
|
377
398
|
};
|
|
399
|
+
|
|
378
400
|
[Exposed=Window,
|
|
379
401
|
LegacyUnenumerableNamedProperties]
|
|
380
402
|
interface NamedNodeMap {
|
|
@@ -387,6 +409,7 @@ interface NamedNodeMap {
|
|
|
387
409
|
[CEReactions] Attr removeNamedItem(DOMString qualifiedName);
|
|
388
410
|
[CEReactions] Attr removeNamedItemNS(DOMString? namespace, DOMString localName);
|
|
389
411
|
};
|
|
412
|
+
|
|
390
413
|
[Exposed=Window]
|
|
391
414
|
interface Attr : Node {
|
|
392
415
|
readonly attribute DOMString? namespaceURI;
|
|
@@ -409,6 +432,7 @@ interface CharacterData : Node {
|
|
|
409
432
|
undefined deleteData(unsigned long offset, unsigned long count);
|
|
410
433
|
undefined replaceData(unsigned long offset, unsigned long count, DOMString data);
|
|
411
434
|
};
|
|
435
|
+
|
|
412
436
|
[Exposed=Window]
|
|
413
437
|
interface Text : CharacterData {
|
|
414
438
|
constructor(optional DOMString data = "");
|
|
@@ -416,6 +440,7 @@ interface Text : CharacterData {
|
|
|
416
440
|
[NewObject] Text splitText(unsigned long offset);
|
|
417
441
|
readonly attribute DOMString wholeText;
|
|
418
442
|
};
|
|
443
|
+
|
|
419
444
|
[Exposed=Window]
|
|
420
445
|
interface CDATASection : Text {
|
|
421
446
|
};
|
|
@@ -427,6 +452,7 @@ interface ProcessingInstruction : CharacterData {
|
|
|
427
452
|
interface Comment : CharacterData {
|
|
428
453
|
constructor(optional DOMString data = "");
|
|
429
454
|
};
|
|
455
|
+
|
|
430
456
|
[Exposed=Window]
|
|
431
457
|
interface AbstractRange {
|
|
432
458
|
readonly attribute Node startContainer;
|
|
@@ -435,6 +461,7 @@ interface AbstractRange {
|
|
|
435
461
|
readonly attribute unsigned long endOffset;
|
|
436
462
|
readonly attribute boolean collapsed;
|
|
437
463
|
};
|
|
464
|
+
|
|
438
465
|
dictionary StaticRangeInit {
|
|
439
466
|
required Node startContainer;
|
|
440
467
|
required unsigned long startOffset;
|
|
@@ -446,6 +473,7 @@ dictionary StaticRangeInit {
|
|
|
446
473
|
interface StaticRange : AbstractRange {
|
|
447
474
|
constructor(StaticRangeInit init);
|
|
448
475
|
};
|
|
476
|
+
|
|
449
477
|
[Exposed=Window]
|
|
450
478
|
interface Range : AbstractRange {
|
|
451
479
|
constructor();
|
|
@@ -484,6 +512,7 @@ interface Range : AbstractRange {
|
|
|
484
512
|
|
|
485
513
|
stringifier;
|
|
486
514
|
};
|
|
515
|
+
|
|
487
516
|
[Exposed=Window]
|
|
488
517
|
interface NodeIterator {
|
|
489
518
|
[SameObject] readonly attribute Node root;
|
|
@@ -497,6 +526,7 @@ interface NodeIterator {
|
|
|
497
526
|
|
|
498
527
|
undefined detach();
|
|
499
528
|
};
|
|
529
|
+
|
|
500
530
|
[Exposed=Window]
|
|
501
531
|
interface TreeWalker {
|
|
502
532
|
[SameObject] readonly attribute Node root;
|
|
@@ -536,6 +566,7 @@ callback interface NodeFilter {
|
|
|
536
566
|
|
|
537
567
|
unsigned short acceptNode(Node node);
|
|
538
568
|
};
|
|
569
|
+
|
|
539
570
|
[Exposed=Window]
|
|
540
571
|
interface DOMTokenList {
|
|
541
572
|
readonly attribute unsigned long length;
|
|
@@ -549,6 +580,7 @@ interface DOMTokenList {
|
|
|
549
580
|
[CEReactions] stringifier attribute DOMString value;
|
|
550
581
|
iterable<DOMString>;
|
|
551
582
|
};
|
|
583
|
+
|
|
552
584
|
[Exposed=Window]
|
|
553
585
|
interface XPathResult {
|
|
554
586
|
const unsigned short ANY_TYPE = 0;
|
|
@@ -573,11 +605,13 @@ interface XPathResult {
|
|
|
573
605
|
Node? iterateNext();
|
|
574
606
|
Node? snapshotItem(unsigned long index);
|
|
575
607
|
};
|
|
608
|
+
|
|
576
609
|
[Exposed=Window]
|
|
577
610
|
interface XPathExpression {
|
|
578
611
|
// XPathResult.ANY_TYPE = 0
|
|
579
612
|
XPathResult evaluate(Node contextNode, optional unsigned short type = 0, optional XPathResult? result = null);
|
|
580
613
|
};
|
|
614
|
+
|
|
581
615
|
callback interface XPathNSResolver {
|
|
582
616
|
DOMString? lookupNamespaceURI(DOMString? prefix);
|
|
583
617
|
};
|
|
@@ -589,12 +623,14 @@ interface mixin XPathEvaluatorBase {
|
|
|
589
623
|
XPathResult evaluate(DOMString expression, Node contextNode, optional XPathNSResolver? resolver = null, optional unsigned short type = 0, optional XPathResult? result = null);
|
|
590
624
|
};
|
|
591
625
|
Document includes XPathEvaluatorBase;
|
|
626
|
+
|
|
592
627
|
[Exposed=Window]
|
|
593
628
|
interface XPathEvaluator {
|
|
594
629
|
constructor();
|
|
595
630
|
};
|
|
596
631
|
|
|
597
632
|
XPathEvaluator includes XPathEvaluatorBase;
|
|
633
|
+
|
|
598
634
|
[Exposed=Window]
|
|
599
635
|
interface XSLTProcessor {
|
|
600
636
|
constructor();
|
package/orientation-event.idl
CHANGED
|
@@ -24,9 +24,11 @@ dictionary DeviceOrientationEventInit : EventInit {
|
|
|
24
24
|
double? gamma = null;
|
|
25
25
|
boolean absolute = false;
|
|
26
26
|
};
|
|
27
|
+
|
|
27
28
|
partial interface Window {
|
|
28
29
|
[SecureContext] attribute EventHandler ondeviceorientationabsolute;
|
|
29
30
|
};
|
|
31
|
+
|
|
30
32
|
partial interface Window {
|
|
31
33
|
[SecureContext] attribute EventHandler ondevicemotion;
|
|
32
34
|
};
|
package/package.json
CHANGED
package/scheduling-apis.idl
CHANGED
|
@@ -3,9 +3,55 @@
|
|
|
3
3
|
// (https://github.com/w3c/webref)
|
|
4
4
|
// Source: Prioritized Task Scheduling (https://wicg.github.io/scheduling-apis/)
|
|
5
5
|
|
|
6
|
-
enum TaskPriority {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
enum TaskPriority {
|
|
7
|
+
"user-blocking",
|
|
8
|
+
"user-visible",
|
|
9
|
+
"background"
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
dictionary SchedulerPostTaskOptions {
|
|
13
|
+
AbortSignal signal;
|
|
14
|
+
TaskPriority priority;
|
|
15
|
+
[EnforceRange] unsigned long long delay = 0;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
callback SchedulerPostTaskCallback = any ();
|
|
19
|
+
|
|
20
|
+
[Exposed=(Window, Worker)]
|
|
21
|
+
interface Scheduler {
|
|
22
|
+
Promise<any> postTask(SchedulerPostTaskCallback callback,
|
|
23
|
+
optional SchedulerPostTaskOptions options = {});
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
[Exposed=(Window, Worker)]
|
|
27
|
+
interface TaskPriorityChangeEvent : Event {
|
|
28
|
+
constructor(DOMString type, TaskPriorityChangeEventInit priorityChangeEventInitDict);
|
|
29
|
+
|
|
30
|
+
readonly attribute TaskPriority previousPriority;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
dictionary TaskPriorityChangeEventInit : EventInit {
|
|
34
|
+
required TaskPriority previousPriority;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
dictionary TaskControllerInit {
|
|
38
|
+
TaskPriority priority = "user-visible";
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
[Exposed=(Window,Worker)]
|
|
42
|
+
interface TaskController : AbortController {
|
|
43
|
+
constructor(optional TaskControllerInit init = {});
|
|
44
|
+
|
|
45
|
+
undefined setPriority(TaskPriority priority);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
[Exposed=(Window, Worker)]
|
|
49
|
+
interface TaskSignal : AbortSignal {
|
|
50
|
+
readonly attribute TaskPriority priority;
|
|
51
|
+
|
|
52
|
+
attribute EventHandler onprioritychange;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
partial interface mixin WindowOrWorkerGlobalScope {
|
|
56
|
+
[Replaceable] readonly attribute Scheduler scheduler;
|
|
57
|
+
};
|
package/scroll-animations.idl
CHANGED
package/ua-client-hints.idl
CHANGED
|
@@ -9,16 +9,17 @@ dictionary NavigatorUABrandVersion {
|
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
dictionary UADataValues {
|
|
12
|
-
sequence<NavigatorUABrandVersion> brands;
|
|
13
|
-
boolean mobile;
|
|
14
12
|
DOMString architecture;
|
|
15
13
|
DOMString bitness;
|
|
14
|
+
sequence<NavigatorUABrandVersion> brands;
|
|
15
|
+
DOMString formFactor;
|
|
16
|
+
sequence<NavigatorUABrandVersion> fullVersionList;
|
|
16
17
|
DOMString model;
|
|
18
|
+
boolean mobile;
|
|
17
19
|
DOMString platform;
|
|
18
20
|
DOMString platformVersion;
|
|
19
21
|
DOMString uaFullVersion; // deprecated in favor of fullVersionList
|
|
20
22
|
boolean wow64;
|
|
21
|
-
sequence<NavigatorUABrandVersion> fullVersionList;
|
|
22
23
|
};
|
|
23
24
|
|
|
24
25
|
dictionary UALowEntropyJSON {
|
package/wasm-js-api.idl
CHANGED
|
@@ -19,6 +19,7 @@ namespace WebAssembly {
|
|
|
19
19
|
Promise<Instance> instantiate(
|
|
20
20
|
Module moduleObject, optional object importObject);
|
|
21
21
|
};
|
|
22
|
+
|
|
22
23
|
enum ImportExportKind {
|
|
23
24
|
"function",
|
|
24
25
|
"table",
|
|
@@ -45,11 +46,13 @@ interface Module {
|
|
|
45
46
|
static sequence<ModuleImportDescriptor> imports(Module moduleObject);
|
|
46
47
|
static sequence<ArrayBuffer> customSections(Module moduleObject, DOMString sectionName);
|
|
47
48
|
};
|
|
49
|
+
|
|
48
50
|
[LegacyNamespace=WebAssembly, Exposed=*]
|
|
49
51
|
interface Instance {
|
|
50
52
|
constructor(Module module, optional object importObject);
|
|
51
53
|
readonly attribute object exports;
|
|
52
54
|
};
|
|
55
|
+
|
|
53
56
|
dictionary MemoryDescriptor {
|
|
54
57
|
required [EnforceRange] unsigned long initial;
|
|
55
58
|
[EnforceRange] unsigned long maximum;
|
|
@@ -61,6 +64,7 @@ interface Memory {
|
|
|
61
64
|
unsigned long grow([EnforceRange] unsigned long delta);
|
|
62
65
|
readonly attribute ArrayBuffer buffer;
|
|
63
66
|
};
|
|
67
|
+
|
|
64
68
|
enum TableKind {
|
|
65
69
|
"externref",
|
|
66
70
|
"anyfunc",
|
|
@@ -82,6 +86,7 @@ interface Table {
|
|
|
82
86
|
undefined set([EnforceRange] unsigned long index, optional any value);
|
|
83
87
|
readonly attribute unsigned long length;
|
|
84
88
|
};
|
|
89
|
+
|
|
85
90
|
enum ValueType {
|
|
86
91
|
"i32",
|
|
87
92
|
"i64",
|
|
@@ -91,6 +96,7 @@ enum ValueType {
|
|
|
91
96
|
"externref",
|
|
92
97
|
"anyfunc",
|
|
93
98
|
};
|
|
99
|
+
|
|
94
100
|
dictionary GlobalDescriptor {
|
|
95
101
|
required ValueType value;
|
|
96
102
|
boolean mutable = false;
|
package/web-animations-2.idl
CHANGED
|
@@ -89,6 +89,16 @@ callback EffectCallback = undefined (double? progress,
|
|
|
89
89
|
(Element or CSSPseudoElement) currentTarget,
|
|
90
90
|
Animation animation);
|
|
91
91
|
|
|
92
|
+
dictionary TimelineRangeOffset {
|
|
93
|
+
CSSOMString? rangeName;
|
|
94
|
+
CSSNumericValue offset;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
partial dictionary KeyframeAnimationOptions {
|
|
98
|
+
(TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) rangeStart = "normal";
|
|
99
|
+
(TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) rangeEnd = "normal";
|
|
100
|
+
};
|
|
101
|
+
|
|
92
102
|
[Exposed=Window]
|
|
93
103
|
interface AnimationPlaybackEvent : Event {
|
|
94
104
|
constructor(DOMString type, optional AnimationPlaybackEventInit
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: AV1 WebCodecs Registration (https://w3c.github.io/webcodecs/av1_codec_registration.html)
|
|
5
|
+
|
|
6
|
+
partial dictionary VideoEncoderEncodeOptions {
|
|
7
|
+
VideoEncoderEncodeOptionsForAv1 av1;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
dictionary VideoEncoderEncodeOptionsForAv1 {
|
|
11
|
+
unsigned short? quantizer;
|
|
12
|
+
};
|
package/window-placement.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:
|
|
4
|
+
// Source: Window Management (https://w3c.github.io/window-management/)
|
|
5
5
|
|
|
6
6
|
partial interface Screen /* : EventTarget */ {
|
|
7
7
|
[SecureContext]
|