@webref/idl 2.9.0 → 2.12.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/autoplay.idl ADDED
@@ -0,0 +1,18 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Autoplay Policy Detection (https://w3c.github.io/autoplay/)
5
+
6
+ enum AutoplayPolicy {
7
+ "allowed",
8
+ "allowed-muted",
9
+ "disallowed"
10
+ };
11
+
12
+ partial interface Document {
13
+ readonly attribute AutoplayPolicy autoplayPolicy;
14
+ };
15
+
16
+ partial interface HTMLMediaElement {
17
+ readonly attribute AutoplayPolicy autoplayPolicy;
18
+ };
@@ -4,7 +4,7 @@
4
4
  // Source: Compute Pressure API (https://wicg.github.io/compute-pressure/)
5
5
 
6
6
  callback ComputePressureUpdateCallback = undefined (
7
- ComputePressureObserverUpdate update,
7
+ ComputePressureEntry update,
8
8
  ComputePressureObserver observer
9
9
  );
10
10
 
@@ -18,7 +18,7 @@ interface ComputePressureObserver {
18
18
  undefined unobserve();
19
19
  };
20
20
 
21
- dictionary ComputePressureObserverUpdate {
21
+ dictionary ComputePressureEntry {
22
22
  double cpuSpeed;
23
23
  double cpuUtilization;
24
24
  ComputePressureObserverOptions options;
package/contact-api.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: Contact Picker API (https://wicg.github.io/contact-api/spec/)
4
+ // Source: Contact Picker API (https://w3c.github.io/contact-api/spec/)
5
5
 
6
6
  [Exposed=Window]
7
7
  partial interface Navigator {
package/css-pseudo.idl CHANGED
@@ -7,6 +7,8 @@
7
7
  interface CSSPseudoElement : EventTarget {
8
8
  readonly attribute CSSOMString type;
9
9
  readonly attribute Element element;
10
+ readonly attribute (Element or CSSPseudoElement) parent;
11
+ CSSPseudoElement? pseudo(CSSOMString type);
10
12
  };
11
13
 
12
14
  partial interface Element {
package/css-typed-om.idl CHANGED
@@ -323,7 +323,7 @@ interface CSSImageValue : CSSStyleValue {
323
323
  interface CSSColorValue : CSSStyleValue {
324
324
  readonly attribute CSSKeywordValue colorSpace;
325
325
  CSSColorValue to(CSSKeywordish colorSpace);
326
- [Exposed=Window] static CSSColorValue parse(USVString cssText);
326
+ [Exposed=Window] static (CSSColorValue or CSSStyleValue) parse(USVString cssText);
327
327
  };
328
328
 
329
329
  [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
package/dom.idl CHANGED
@@ -97,6 +97,7 @@ interface AbortSignal : EventTarget {
97
97
 
98
98
  readonly attribute boolean aborted;
99
99
  readonly attribute any reason;
100
+ undefined throwIfAborted();
100
101
 
101
102
  attribute EventHandler onabort;
102
103
  };
@@ -0,0 +1,113 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: EditContext API (https://w3c.github.io/edit-context/)
5
+
6
+ partial interface Element {
7
+ attribute EditContext? editContext;
8
+ };
9
+
10
+ dictionary EditContextInit {
11
+ DOMString text;
12
+ unsigned long selectionStart;
13
+ unsigned long selectionEnd;
14
+ };
15
+
16
+ [Exposed=Window]
17
+ interface EditContext : EventTarget {
18
+ constructor(optional EditContextInit options = {});
19
+
20
+ undefined updateText(unsigned long rangeStart, unsigned long rangeEnd,
21
+ DOMString text);
22
+ undefined updateSelection(unsigned long start, unsigned long end);
23
+ undefined updateControlBound(DOMRect controlBound);
24
+ undefined updateSelectionBound(DOMRect selectionBound);
25
+ undefined updateCharacterBounds(unsigned long rangeStart, sequence<DOMRect> characterBounds);
26
+
27
+ sequence<Element> attachedElements();
28
+
29
+ readonly attribute DOMString text;
30
+ readonly attribute unsigned long selectionStart;
31
+ readonly attribute unsigned long selectionEnd;
32
+ readonly attribute unsigned long compositionRangeStart;
33
+ readonly attribute unsigned long compositionRangeEnd;
34
+ readonly attribute boolean isInComposition;
35
+ readonly attribute DOMRect controlBound;
36
+ readonly attribute DOMRect selectionBound;
37
+ readonly attribute unsigned long characterBoundsRangeStart;
38
+ sequence<DOMRect> characterBounds();
39
+
40
+ attribute EventHandler ontextupdate;
41
+ attribute EventHandler ontextformatupdate;
42
+ attribute EventHandler oncharacterboundsupdate;
43
+ attribute EventHandler oncompositionstart;
44
+ attribute EventHandler oncompositionend;
45
+ };
46
+
47
+ dictionary TextUpdateEventInit {
48
+ unsigned long updateRangeStart;
49
+ unsigned long updateRangeEnd;
50
+ DOMString text;
51
+ unsigned long selectionStart;
52
+ unsigned long selectionEnd;
53
+ unsigned long compositionStart;
54
+ unsigned long compositionEnd;
55
+ };
56
+
57
+ [Exposed=Window]
58
+ interface TextUpdateEvent : Event {
59
+ constructor(optional TextUpdateEventInit options = {});
60
+ readonly attribute unsigned long updateRangeStart;
61
+ readonly attribute unsigned long updateRangeEnd;
62
+ readonly attribute DOMString text;
63
+ readonly attribute unsigned long selectionStart;
64
+ readonly attribute unsigned long selectionEnd;
65
+ readonly attribute unsigned long compositionStart;
66
+ readonly attribute unsigned long compositionEnd;
67
+ };
68
+
69
+ dictionary TextFormatInit {
70
+ unsigned long rangeStart;
71
+ unsigned long rangeEnd;
72
+ DOMString textColor;
73
+ DOMString backgroundColor;
74
+ DOMString underlineStyle;
75
+ DOMString underlineThickness;
76
+ DOMString underlineColor;
77
+ };
78
+
79
+ [Exposed=Window]
80
+ interface TextFormat {
81
+ constructor(optional TextFormatInit options = {});
82
+ attribute unsigned long rangeStart;
83
+ attribute unsigned long rangeEnd;
84
+ attribute DOMString textColor;
85
+ attribute DOMString backgroundColor;
86
+ attribute DOMString underlineStyle;
87
+ attribute DOMString underlineThickness;
88
+ attribute DOMString underlineColor;
89
+ };
90
+
91
+ dictionary TextFormatUpdateEventInit {
92
+ sequence<TextFormat> textFormats;
93
+ };
94
+
95
+ [Exposed=Window]
96
+ interface TextFormatUpdateEvent : Event {
97
+ constructor(optional TextFormatUpdateEventInit options = {});
98
+
99
+ sequence<TextFormat> getTextFormats();
100
+ };
101
+
102
+ dictionary CharacterBoundsUpdateEventInit {
103
+ unsigned long rangeStart;
104
+ unsigned long rangeEnd;
105
+ };
106
+
107
+ [Exposed=Window]
108
+ interface CharacterBoundsUpdateEvent : Event {
109
+ constructor(optional CharacterBoundsUpdateEventInit options = {});
110
+
111
+ readonly attribute unsigned long rangeStart;
112
+ readonly attribute unsigned long rangeEnd;
113
+ };
package/event-timing.idl CHANGED
@@ -18,9 +18,15 @@ interface EventCounts {
18
18
  readonly maplike<DOMString, unsigned long long>;
19
19
  };
20
20
 
21
+ [Exposed=Window]
22
+ interface InteractionCounts {
23
+ readonly maplike<DOMString, unsigned long long>;
24
+ };
25
+
21
26
  [Exposed=Window]
22
27
  partial interface Performance {
23
28
  [SameObject] readonly attribute EventCounts eventCounts;
29
+ [SameObject] readonly attribute InteractionCounts interactionCounts;
24
30
  };
25
31
 
26
32
  partial dictionary PerformanceObserverInit {
package/html.idl CHANGED
@@ -1369,7 +1369,14 @@ interface mixin CanvasShadowStyles {
1369
1369
 
1370
1370
  interface mixin CanvasFilters {
1371
1371
  // filters
1372
- attribute DOMString filter; // (default "none")
1372
+ attribute (DOMString or CanvasFilter) filter; // (default "none")
1373
+ };
1374
+
1375
+ typedef record<DOMString, any> CanvasFilterInput;
1376
+
1377
+ [Exposed=(Window,Worker,PaintWorklet)]
1378
+ interface CanvasFilter {
1379
+ constructor(optional (CanvasFilterInput or sequence<CanvasFilterInput>) filters);
1373
1380
  };
1374
1381
 
1375
1382
  interface mixin CanvasRect {
@@ -8,20 +8,18 @@ interface mixin NavigatorFonts {
8
8
  [SameObject] readonly attribute FontManager fonts;
9
9
  };
10
10
  Navigator includes NavigatorFonts;
11
- WorkerNavigator includes NavigatorFonts;
12
11
 
13
12
  [SecureContext,
14
- Exposed=(Window,Worker)]
13
+ Exposed=Window]
15
14
  interface FontManager {
16
15
  Promise<sequence<FontMetadata>> query(optional QueryOptions options = {});
17
16
  };
18
17
 
19
18
  dictionary QueryOptions {
20
- boolean persistentAccess = false;
21
19
  sequence<DOMString> select = [];
22
20
  };
23
21
 
24
- [Exposed=(Window,Worker)]
22
+ [Exposed=Window]
25
23
  interface FontMetadata {
26
24
  Promise<Blob> blob();
27
25
 
@@ -0,0 +1,23 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: MediaStreamTrack Insertable Media Processing using Streams (https://w3c.github.io/mediacapture-transform/)
5
+
6
+ [Exposed=DedicatedWorker]
7
+ interface MediaStreamTrackProcessor {
8
+ constructor(MediaStreamTrackProcessorInit init);
9
+ attribute ReadableStream readable;
10
+ };
11
+
12
+ dictionary MediaStreamTrackProcessorInit {
13
+ required MediaStreamTrack track;
14
+ [EnforceRange] unsigned short maxBufferSize;
15
+ };
16
+
17
+ [Exposed=DedicatedWorker]
18
+ interface VideoTrackGenerator {
19
+ constructor();
20
+ readonly attribute WritableStream writable;
21
+ attribute boolean muted;
22
+ readonly attribute MediaStreamTrack track;
23
+ };
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": "2.9.0",
4
+ "version": "2.12.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -0,0 +1,30 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Priority Hints (https://wicg.github.io/priority-hints/)
5
+
6
+ enum Importance { "high", "low", "auto" };
7
+
8
+ partial interface Request {
9
+ readonly attribute Importance importance;
10
+ };
11
+
12
+ partial dictionary RequestInit {
13
+ Importance importance;
14
+ };
15
+
16
+ partial interface HTMLImageElement {
17
+ [CEReactions] attribute DOMString importance;
18
+ };
19
+
20
+ partial interface HTMLLinkElement {
21
+ [CEReactions] attribute DOMString importance;
22
+ };
23
+
24
+ partial interface HTMLScriptElement {
25
+ [CEReactions] attribute DOMString importance;
26
+ };
27
+
28
+ partial interface HTMLIFrameElement {
29
+ [CEReactions] attribute DOMString importance;
30
+ };
package/webauthn.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: Web Authentication: An API for accessing Public Key Credentials - Level 3 (https://w3c.github.io/webauthn/)
4
+ // Source: Web Authentication: An API for accessing Public Key Credentials - Level (https://w3c.github.io/webauthn/)
5
5
 
6
6
  [SecureContext, Exposed=Window]
7
7
  interface PublicKeyCredential : Credential {
package/webgpu.idl CHANGED
@@ -782,6 +782,9 @@ GPUCommandBuffer includes GPUObjectBase;
782
782
  dictionary GPUCommandBufferDescriptor : GPUObjectDescriptorBase {
783
783
  };
784
784
 
785
+ interface mixin GPUCommandsMixin {
786
+ };
787
+
785
788
  [Exposed=(Window, DedicatedWorker), SecureContext]
786
789
  interface GPUCommandEncoder {
787
790
  GPURenderPassEncoder beginRenderPass(GPURenderPassDescriptor descriptor);
@@ -814,10 +817,6 @@ interface GPUCommandEncoder {
814
817
  optional GPUSize64 offset = 0,
815
818
  optional GPUSize64 size);
816
819
 
817
- undefined pushDebugGroup(USVString groupLabel);
818
- undefined popDebugGroup();
819
- undefined insertDebugMarker(USVString markerLabel);
820
-
821
820
  undefined writeTimestamp(GPUQuerySet querySet, GPUSize32 queryIndex);
822
821
 
823
822
  undefined resolveQuerySet(
@@ -830,6 +829,8 @@ interface GPUCommandEncoder {
830
829
  GPUCommandBuffer finish(optional GPUCommandBufferDescriptor descriptor = {});
831
830
  };
832
831
  GPUCommandEncoder includes GPUObjectBase;
832
+ GPUCommandEncoder includes GPUCommandsMixin;
833
+ GPUCommandEncoder includes GPUDebugCommandsMixin;
833
834
 
834
835
  dictionary GPUCommandEncoderDescriptor : GPUObjectDescriptorBase {
835
836
  };
@@ -859,6 +860,7 @@ dictionary GPUImageCopyTextureTagged : GPUImageCopyTexture {
859
860
  dictionary GPUImageCopyExternalImage {
860
861
  required (ImageBitmap or HTMLCanvasElement or OffscreenCanvas) source;
861
862
  GPUOrigin2D origin = {};
863
+ boolean flipY = false;
862
864
  };
863
865
 
864
866
  interface mixin GPUProgrammablePassEncoder {
@@ -869,7 +871,9 @@ interface mixin GPUProgrammablePassEncoder {
869
871
  Uint32Array dynamicOffsetsData,
870
872
  GPUSize64 dynamicOffsetsDataStart,
871
873
  GPUSize32 dynamicOffsetsDataLength);
874
+ };
872
875
 
876
+ interface mixin GPUDebugCommandsMixin {
873
877
  undefined pushDebugGroup(USVString groupLabel);
874
878
  undefined popDebugGroup();
875
879
  undefined insertDebugMarker(USVString markerLabel);
@@ -884,6 +888,8 @@ interface GPUComputePassEncoder {
884
888
  undefined endPass();
885
889
  };
886
890
  GPUComputePassEncoder includes GPUObjectBase;
891
+ GPUComputePassEncoder includes GPUCommandsMixin;
892
+ GPUComputePassEncoder includes GPUDebugCommandsMixin;
887
893
  GPUComputePassEncoder includes GPUProgrammablePassEncoder;
888
894
 
889
895
  enum GPUComputePassTimestampLocation {
@@ -939,6 +945,8 @@ interface GPURenderPassEncoder {
939
945
  undefined endPass();
940
946
  };
941
947
  GPURenderPassEncoder includes GPUObjectBase;
948
+ GPURenderPassEncoder includes GPUCommandsMixin;
949
+ GPURenderPassEncoder includes GPUDebugCommandsMixin;
942
950
  GPURenderPassEncoder includes GPUProgrammablePassEncoder;
943
951
  GPURenderPassEncoder includes GPURenderEncoderBase;
944
952
 
@@ -1010,6 +1018,8 @@ interface GPURenderBundleEncoder {
1010
1018
  GPURenderBundle finish(optional GPURenderBundleDescriptor descriptor = {});
1011
1019
  };
1012
1020
  GPURenderBundleEncoder includes GPUObjectBase;
1021
+ GPURenderBundleEncoder includes GPUCommandsMixin;
1022
+ GPURenderBundleEncoder includes GPUDebugCommandsMixin;
1013
1023
  GPURenderBundleEncoder includes GPUProgrammablePassEncoder;
1014
1024
  GPURenderBundleEncoder includes GPURenderEncoderBase;
1015
1025
 
@@ -1128,7 +1138,7 @@ interface GPUUncapturedErrorEvent : Event {
1128
1138
  DOMString type,
1129
1139
  GPUUncapturedErrorEventInit gpuUncapturedErrorEventInitDict
1130
1140
  );
1131
- [SameObject] readonly attribute GPUError error;
1141
+ readonly attribute GPUError error;
1132
1142
  };
1133
1143
 
1134
1144
  dictionary GPUUncapturedErrorEventInit : EventInit {
@@ -18,11 +18,11 @@ interface WindowControlsOverlay : EventTarget {
18
18
  [Exposed=Window]
19
19
  interface WindowControlsOverlayGeometryChangeEvent : Event {
20
20
  constructor(DOMString type, WindowControlsOverlayGeometryChangeEventInit eventInitDict);
21
- [SameObject] readonly attribute DOMRect boundingRect;
21
+ [SameObject] readonly attribute DOMRect titlebarAreaRect;
22
22
  readonly attribute boolean visible;
23
23
  };
24
24
 
25
25
  dictionary WindowControlsOverlayGeometryChangeEventInit : EventInit {
26
- required DOMRect boundingRect;
26
+ required DOMRect titlebarAreaRect;
27
27
  boolean visible = false;
28
28
  };