@webref/idl 2.8.2 → 2.11.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.
@@ -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 {
@@ -7,6 +7,7 @@
7
7
  interface Credential {
8
8
  readonly attribute USVString id;
9
9
  readonly attribute DOMString type;
10
+ static boolean isConditionalMediationAvailable();
10
11
  };
11
12
 
12
13
  [SecureContext]
@@ -39,6 +40,7 @@ dictionary CredentialRequestOptions {
39
40
  enum CredentialMediationRequirement {
40
41
  "silent",
41
42
  "optional",
43
+ "conditional",
42
44
  "required"
43
45
  };
44
46
 
@@ -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: CSS Cascading and Inheritance Level 5 (https://drafts.csswg.org/css-cascade-5/)
5
+
6
+ partial interface CSSImportRule {
7
+ readonly attribute CSSOMString? layerName;
8
+ };
9
+
10
+ [Exposed=Window]
11
+ interface CSSLayerBlockRule : CSSGroupingRule {
12
+ readonly attribute CSSOMString name;
13
+ };
14
+
15
+ [Exposed=Window]
16
+ interface CSSLayerStatementRule : CSSRule {
17
+ readonly attribute FrozenArray<CSSOMString> nameList;
18
+ };
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 {
File without changes
package/html.idl CHANGED
@@ -933,6 +933,8 @@ interface HTMLInputElement : HTMLElement {
933
933
  undefined setRangeText(DOMString replacement, unsigned long start, unsigned long end, optional SelectionMode selectionMode = "preserve");
934
934
  undefined setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
935
935
 
936
+ undefined showPicker();
937
+
936
938
  // also has obsolete members
937
939
  };
938
940
 
@@ -1367,7 +1369,14 @@ interface mixin CanvasShadowStyles {
1367
1369
 
1368
1370
  interface mixin CanvasFilters {
1369
1371
  // filters
1370
- 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);
1371
1380
  };
1372
1381
 
1373
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,24 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Manifest Incubations (https://wicg.github.io/manifest-incubations/)
5
+
6
+ [Exposed=Window]
7
+ interface BeforeInstallPromptEvent : Event {
8
+ constructor(DOMString type, optional EventInit eventInitDict = {});
9
+ Promise<PromptResponseObject> prompt();
10
+ };
11
+
12
+ dictionary PromptResponseObject {
13
+ AppBannerPromptOutcome userChoice;
14
+ };
15
+
16
+ enum AppBannerPromptOutcome {
17
+ "accepted",
18
+ "dismissed"
19
+ };
20
+
21
+ partial interface Window {
22
+ attribute EventHandler onappinstalled;
23
+ attribute EventHandler onbeforeinstallprompt;
24
+ };
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.8.2",
4
+ "version": "2.11.1",
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
+ };
@@ -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: Secure Payment Confirmation (https://w3c.github.io/secure-payment-confirmation)
4
+ // Source: Secure Payment Confirmation (https://w3c.github.io/secure-payment-confirmation/)
5
5
 
6
6
  dictionary SecurePaymentConfirmationRequest {
7
7
  required BufferSource challenge;
package/web-nfc.idl CHANGED
@@ -51,6 +51,7 @@ interface NDEFReader : EventTarget {
51
51
  Promise<undefined> scan(optional NDEFScanOptions options={});
52
52
  Promise<undefined> write(NDEFMessageSource message,
53
53
  optional NDEFWriteOptions options={});
54
+ Promise<undefined> makeReadOnly(optional NDEFMakeReadOnlyOptions options={});
54
55
  };
55
56
 
56
57
  [SecureContext, Exposed=Window]
@@ -71,6 +72,10 @@ dictionary NDEFWriteOptions {
71
72
  AbortSignal? signal;
72
73
  };
73
74
 
75
+ dictionary NDEFMakeReadOnlyOptions {
76
+ AbortSignal? signal;
77
+ };
78
+
74
79
  dictionary NDEFScanOptions {
75
80
  AbortSignal signal;
76
81
  };
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
@@ -517,9 +517,14 @@ interface GPUShaderModule {
517
517
  };
518
518
  GPUShaderModule includes GPUObjectBase;
519
519
 
520
+ dictionary GPUShaderModuleCompilationHint {
521
+ required GPUPipelineLayout layout;
522
+ };
523
+
520
524
  dictionary GPUShaderModuleDescriptor : GPUObjectDescriptorBase {
521
525
  required USVString code;
522
526
  object sourceMap;
527
+ record<USVString, GPUShaderModuleCompilationHint> hints;
523
528
  };
524
529
 
525
530
  enum GPUCompilationMessageType {
@@ -777,6 +782,9 @@ GPUCommandBuffer includes GPUObjectBase;
777
782
  dictionary GPUCommandBufferDescriptor : GPUObjectDescriptorBase {
778
783
  };
779
784
 
785
+ interface mixin GPUCommandsMixin {
786
+ };
787
+
780
788
  [Exposed=(Window, DedicatedWorker), SecureContext]
781
789
  interface GPUCommandEncoder {
782
790
  GPURenderPassEncoder beginRenderPass(GPURenderPassDescriptor descriptor);
@@ -809,10 +817,6 @@ interface GPUCommandEncoder {
809
817
  optional GPUSize64 offset = 0,
810
818
  optional GPUSize64 size);
811
819
 
812
- undefined pushDebugGroup(USVString groupLabel);
813
- undefined popDebugGroup();
814
- undefined insertDebugMarker(USVString markerLabel);
815
-
816
820
  undefined writeTimestamp(GPUQuerySet querySet, GPUSize32 queryIndex);
817
821
 
818
822
  undefined resolveQuerySet(
@@ -825,6 +829,8 @@ interface GPUCommandEncoder {
825
829
  GPUCommandBuffer finish(optional GPUCommandBufferDescriptor descriptor = {});
826
830
  };
827
831
  GPUCommandEncoder includes GPUObjectBase;
832
+ GPUCommandEncoder includes GPUCommandsMixin;
833
+ GPUCommandEncoder includes GPUDebugCommandsMixin;
828
834
 
829
835
  dictionary GPUCommandEncoderDescriptor : GPUObjectDescriptorBase {
830
836
  };
@@ -854,6 +860,7 @@ dictionary GPUImageCopyTextureTagged : GPUImageCopyTexture {
854
860
  dictionary GPUImageCopyExternalImage {
855
861
  required (ImageBitmap or HTMLCanvasElement or OffscreenCanvas) source;
856
862
  GPUOrigin2D origin = {};
863
+ boolean flipY = false;
857
864
  };
858
865
 
859
866
  interface mixin GPUProgrammablePassEncoder {
@@ -864,7 +871,9 @@ interface mixin GPUProgrammablePassEncoder {
864
871
  Uint32Array dynamicOffsetsData,
865
872
  GPUSize64 dynamicOffsetsDataStart,
866
873
  GPUSize32 dynamicOffsetsDataLength);
874
+ };
867
875
 
876
+ interface mixin GPUDebugCommandsMixin {
868
877
  undefined pushDebugGroup(USVString groupLabel);
869
878
  undefined popDebugGroup();
870
879
  undefined insertDebugMarker(USVString markerLabel);
@@ -879,6 +888,8 @@ interface GPUComputePassEncoder {
879
888
  undefined endPass();
880
889
  };
881
890
  GPUComputePassEncoder includes GPUObjectBase;
891
+ GPUComputePassEncoder includes GPUCommandsMixin;
892
+ GPUComputePassEncoder includes GPUDebugCommandsMixin;
882
893
  GPUComputePassEncoder includes GPUProgrammablePassEncoder;
883
894
 
884
895
  enum GPUComputePassTimestampLocation {
@@ -934,6 +945,8 @@ interface GPURenderPassEncoder {
934
945
  undefined endPass();
935
946
  };
936
947
  GPURenderPassEncoder includes GPUObjectBase;
948
+ GPURenderPassEncoder includes GPUCommandsMixin;
949
+ GPURenderPassEncoder includes GPUDebugCommandsMixin;
937
950
  GPURenderPassEncoder includes GPUProgrammablePassEncoder;
938
951
  GPURenderPassEncoder includes GPURenderEncoderBase;
939
952
 
@@ -1005,6 +1018,8 @@ interface GPURenderBundleEncoder {
1005
1018
  GPURenderBundle finish(optional GPURenderBundleDescriptor descriptor = {});
1006
1019
  };
1007
1020
  GPURenderBundleEncoder includes GPUObjectBase;
1021
+ GPURenderBundleEncoder includes GPUCommandsMixin;
1022
+ GPURenderBundleEncoder includes GPUDebugCommandsMixin;
1008
1023
  GPURenderBundleEncoder includes GPUProgrammablePassEncoder;
1009
1024
  GPURenderBundleEncoder includes GPURenderEncoderBase;
1010
1025
 
@@ -1123,7 +1138,7 @@ interface GPUUncapturedErrorEvent : Event {
1123
1138
  DOMString type,
1124
1139
  GPUUncapturedErrorEventInit gpuUncapturedErrorEventInitDict
1125
1140
  );
1126
- [SameObject] readonly attribute GPUError error;
1141
+ readonly attribute GPUError error;
1127
1142
  };
1128
1143
 
1129
1144
  dictionary GPUUncapturedErrorEventInit : EventInit {
package/webtransport.idl CHANGED
@@ -46,8 +46,8 @@ dictionary WebTransportOptions {
46
46
  };
47
47
 
48
48
  dictionary WebTransportCloseInfo {
49
- unsigned long closeCode;
50
- DOMString reason;
49
+ unsigned long closeCode = 0;
50
+ DOMString reason = "";
51
51
  };
52
52
 
53
53
  dictionary WebTransportStats {
@@ -11,18 +11,18 @@ partial interface Navigator {
11
11
  [Exposed=Window]
12
12
  interface WindowControlsOverlay : EventTarget {
13
13
  readonly attribute boolean visible;
14
- DOMRect getBoundingClientRect();
14
+ DOMRect getTitlebarAreaRect();
15
15
  attribute EventHandler ongeometrychange;
16
16
  };
17
17
 
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
  };