@webref/idl 3.43.1 → 3.44.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/CSP.idl CHANGED
@@ -41,16 +41,16 @@ interface SecurityPolicyViolationEvent : Event {
41
41
  };
42
42
 
43
43
  dictionary SecurityPolicyViolationEventInit : EventInit {
44
- required USVString documentURI;
45
- USVString referrer = "";
46
- USVString blockedURI = "";
47
- required DOMString violatedDirective;
48
- required DOMString effectiveDirective;
49
- required DOMString originalPolicy;
50
- USVString sourceFile = "";
51
- DOMString sample = "";
52
- required SecurityPolicyViolationEventDisposition disposition;
53
- required unsigned short statusCode;
54
- unsigned long lineNumber = 0;
55
- unsigned long columnNumber = 0;
44
+ USVString documentURI = "";
45
+ USVString referrer = "";
46
+ USVString blockedURI = "";
47
+ DOMString violatedDirective = "";
48
+ DOMString effectiveDirective = "";
49
+ DOMString originalPolicy = "";
50
+ USVString sourceFile = "";
51
+ DOMString sample = "";
52
+ SecurityPolicyViolationEventDisposition disposition = "enforce";
53
+ unsigned short statusCode = 0;
54
+ unsigned long lineNumber = 0;
55
+ unsigned long columnNumber = 0;
56
56
  };
@@ -37,7 +37,7 @@ dictionary ContactsSelectOptions {
37
37
  boolean multiple = false;
38
38
  };
39
39
 
40
- [Exposed=Window,SecureContext]
40
+ [Exposed=Window, SecureContext]
41
41
  interface ContactsManager {
42
42
  Promise<sequence<ContactProperty>> getProperties();
43
43
  Promise<sequence<ContactInfo>> select(sequence<ContactProperty> properties, optional ContactsSelectOptions options = {});
@@ -4,11 +4,7 @@
4
4
  // Source: CSS Anchor Positioning (https://drafts.csswg.org/css-anchor-position-1/)
5
5
 
6
6
  [Exposed=Window]
7
- interface CSSPositionFallbackRule : CSSGroupingRule {
7
+ interface CSSPositionTryRule : CSSRule {
8
8
  readonly attribute CSSOMString name;
9
- };
10
-
11
- [Exposed=Window]
12
- interface CSSTryRule : CSSRule {
13
9
  [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
14
10
  };
package/css-fonts.idl CHANGED
@@ -19,6 +19,7 @@ interface CSSFontFeatureValuesRule : CSSRule {
19
19
  readonly attribute CSSFontFeatureValuesMap swash;
20
20
  readonly attribute CSSFontFeatureValuesMap characterVariant;
21
21
  readonly attribute CSSFontFeatureValuesMap styleset;
22
+ readonly attribute CSSFontFeatureValuesMap historicalForms;
22
23
  };
23
24
 
24
25
  [Exposed=Window]
@@ -0,0 +1,27 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Digital Credentials (https://wicg.github.io/digital-identities/)
5
+
6
+ partial interface Navigator {
7
+ [SecureContext, SameObject] readonly attribute CredentialsContainer identity;
8
+ };
9
+
10
+ partial dictionary CredentialRequestOptions {
11
+ DigitalCredentialRequestOptions digital;
12
+ };
13
+
14
+ dictionary DigitalCredentialRequestOptions {
15
+ sequence<IdentityRequestProvider> providers;
16
+ };
17
+
18
+ dictionary IdentityRequestProvider {
19
+ required DOMString protocol;
20
+ required DOMString request;
21
+ };
22
+
23
+ [Exposed=Window, SecureContext]
24
+ interface DigitalCredential : Credential {
25
+ readonly attribute DOMString protocol;
26
+ readonly attribute DOMString data;
27
+ };
package/edit-context.idl CHANGED
@@ -59,7 +59,7 @@ interface TextUpdateEvent : Event {
59
59
  readonly attribute unsigned long selectionEnd;
60
60
  };
61
61
 
62
- enum UnderlineStyle { "none", "solid", "double", "dotted", "dashed", "wavy" };
62
+ enum UnderlineStyle { "none", "solid", "dotted", "dashed", "wavy" };
63
63
  enum UnderlineThickness { "none", "thin", "thick" };
64
64
 
65
65
  dictionary TextFormatInit {
package/gamepad.idl CHANGED
@@ -3,7 +3,7 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: Gamepad (https://w3c.github.io/gamepad/)
5
5
 
6
- [Exposed=Window, SecureContext]
6
+ [Exposed=Window]
7
7
  interface Gamepad {
8
8
  readonly attribute DOMString id;
9
9
  readonly attribute long index;
@@ -15,7 +15,7 @@ interface Gamepad {
15
15
  [SameObject] readonly attribute GamepadHapticActuator vibrationActuator;
16
16
  };
17
17
 
18
- [Exposed=Window, SecureContext]
18
+ [Exposed=Window]
19
19
  interface GamepadButton {
20
20
  readonly attribute boolean pressed;
21
21
  readonly attribute boolean touched;
@@ -59,7 +59,7 @@ partial interface Navigator {
59
59
  sequence<Gamepad?> getGamepads();
60
60
  };
61
61
 
62
- [Exposed=Window, SecureContext]
62
+ [Exposed=Window]
63
63
 
64
64
  interface GamepadEvent: Event {
65
65
  constructor(DOMString type, GamepadEventInit eventInitDict);
package/html.idl CHANGED
@@ -1243,6 +1243,7 @@ interface HTMLTemplateElement : HTMLElement {
1243
1243
  readonly attribute DocumentFragment content;
1244
1244
  [CEReactions] attribute DOMString shadowRootMode;
1245
1245
  [CEReactions] attribute boolean shadowRootDelegatesFocus;
1246
+ [CEReactions] attribute boolean shadowRootClonable;
1246
1247
  };
1247
1248
 
1248
1249
  [Exposed=Window]
@@ -2086,6 +2087,23 @@ interface BeforeUnloadEvent : Event {
2086
2087
  attribute DOMString returnValue;
2087
2088
  };
2088
2089
 
2090
+ [Exposed=Window]
2091
+ interface NotRestoredReasonDetails {
2092
+ readonly attribute DOMString reason;
2093
+ [Default] object toJSON();
2094
+ };
2095
+
2096
+ [Exposed=Window]
2097
+ interface NotRestoredReasons {
2098
+ readonly attribute DOMString? src;
2099
+ readonly attribute DOMString? id;
2100
+ readonly attribute DOMString? name;
2101
+ readonly attribute DOMString? url;
2102
+ readonly attribute FrozenArray<NotRestoredReasonDetails>? reasons;
2103
+ readonly attribute FrozenArray<NotRestoredReasons>? children;
2104
+ [Default] object toJSON();
2105
+ };
2106
+
2089
2107
  [Exposed=*]
2090
2108
  interface ErrorEvent : Event {
2091
2109
  constructor(DOMString type, optional ErrorEventInit eventInitDict = {});
package/longtasks.idl CHANGED
@@ -70,7 +70,9 @@ interface PerformanceScriptTiming : PerformanceEntry {
70
70
  readonly attribute ScriptInvokerType invokerType;
71
71
  readonly attribute DOMString invoker;
72
72
  readonly attribute DOMHighResTimeStamp executionStart;
73
- readonly attribute DOMString sourceLocation;
73
+ readonly attribute DOMString sourceURL;
74
+ readonly attribute DOMString sourceFunctionName;
75
+ readonly attribute long long sourceCharPosition;
74
76
  readonly attribute DOMHighResTimeStamp pauseDuration;
75
77
  readonly attribute DOMHighResTimeStamp forcedStyleAndLayoutDuration;
76
78
  readonly attribute Window? window;
package/mediasession.idl CHANGED
@@ -44,9 +44,9 @@ interface MediaSession {
44
44
 
45
45
  undefined setPositionState(optional MediaPositionState state = {});
46
46
 
47
- undefined setMicrophoneActive(boolean active);
47
+ Promise<undefined> setMicrophoneActive(boolean active);
48
48
 
49
- undefined setCameraActive(boolean active);
49
+ Promise<undefined> setCameraActive(boolean active);
50
50
  };
51
51
 
52
52
  [Exposed=Window]
@@ -79,7 +79,17 @@ dictionary MediaPositionState {
79
79
 
80
80
  dictionary MediaSessionActionDetails {
81
81
  required MediaSessionAction action;
82
+ };
83
+
84
+ dictionary MediaSessionSeekActionDetails : MediaSessionActionDetails {
82
85
  double seekOffset;
83
- double seekTime;
86
+ };
87
+
88
+ dictionary MediaSessionSeekToActionDetails : MediaSessionActionDetails {
89
+ required double seekTime;
84
90
  boolean fastSeek;
85
91
  };
92
+
93
+ dictionary MediaSessionCaptureActionDetails : MediaSessionActionDetails {
94
+ boolean isActivating;
95
+ };
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.43.1",
4
+ "version": "3.44.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -92,7 +92,7 @@ dictionary NavigationPreloadState {
92
92
  ByteString headerValue;
93
93
  };
94
94
 
95
- [Global=(Worker,ServiceWorker), Exposed=ServiceWorker]
95
+ [Global=(Worker,ServiceWorker), Exposed=ServiceWorker, SecureContext]
96
96
  interface ServiceWorkerGlobalScope : WorkerGlobalScope {
97
97
  [SameObject] readonly attribute Clients clients;
98
98
  [SameObject] readonly attribute ServiceWorkerRegistration registration;
@@ -165,6 +165,40 @@ dictionary ExtendableEventInit : EventInit {
165
165
  // Defined for the forward compatibility across the derived events
166
166
  };
167
167
 
168
+ [Exposed=ServiceWorker]
169
+ interface InstallEvent : ExtendableEvent {
170
+ Promise<undefined> addRoutes((RouterRule or sequence<RouterRule>) rules);
171
+ };
172
+
173
+ dictionary RouterRule {
174
+ required RouterCondition condition;
175
+ required RouterSource source;
176
+ };
177
+
178
+ dictionary RouterCondition {
179
+ URLPatternCompatible urlPattern;
180
+ ByteString requestMethod;
181
+ RequestMode requestMode;
182
+ RequestDestination requestDestination;
183
+ RunningStatus runningStatus;
184
+
185
+ sequence<RouterCondition> _or;
186
+ };
187
+
188
+ typedef (RouterSourceDict or RouterSourceEnum) RouterSource;
189
+
190
+ dictionary RouterSourceDict {
191
+ DOMString cacheName;
192
+ };
193
+
194
+ enum RunningStatus { "running", "not-running" };
195
+ enum RouterSourceEnum {
196
+ "cache",
197
+ "fetch-event",
198
+ "network",
199
+ "race-network-and-fetch-handler"
200
+ };
201
+
168
202
  [Exposed=ServiceWorker]
169
203
  interface FetchEvent : ExtendableEvent {
170
204
  constructor(DOMString type, FetchEventInit eventInitDict);
package/trusted-types.idl CHANGED
@@ -7,21 +7,18 @@
7
7
  interface TrustedHTML {
8
8
  stringifier;
9
9
  DOMString toJSON();
10
- static TrustedHTML fromLiteral(object templateStringsArray);
11
10
  };
12
11
 
13
12
  [Exposed=(Window,Worker)]
14
13
  interface TrustedScript {
15
14
  stringifier;
16
15
  DOMString toJSON();
17
- static TrustedScript fromLiteral(object templateStringsArray);
18
16
  };
19
17
 
20
18
  [Exposed=(Window,Worker)]
21
19
  interface TrustedScriptURL {
22
20
  stringifier;
23
21
  USVString toJSON();
24
- static TrustedScriptURL fromLiteral(object templateStringsArray);
25
22
  };
26
23
 
27
24
  [Exposed=(Window,Worker)] interface TrustedTypePolicyFactory {
package/turtledove.idl CHANGED
@@ -100,11 +100,24 @@ partial interface Navigator {
100
100
  interface InterestGroupScriptRunnerGlobalScope {
101
101
  };
102
102
 
103
+ [Exposed=InterestGroupBiddingAndScoringScriptRunnerGlobalScope]
104
+ interface ForDebuggingOnly {
105
+ undefined reportAdAuctionWin(USVString url);
106
+ undefined reportAdAuctionLoss(USVString url);
107
+ };
108
+
109
+ [Exposed=InterestGroupBiddingAndScoringScriptRunnerGlobalScope,
110
+ Global=InterestGroupBiddingAndScoringScriptRunnerGlobalScope]
111
+ interface InterestGroupBiddingAndScoringScriptRunnerGlobalScope : InterestGroupScriptRunnerGlobalScope {
112
+
113
+ readonly attribute ForDebuggingOnly forDebuggingOnly;
114
+ };
115
+
103
116
  [Exposed=InterestGroupBiddingScriptRunnerGlobalScope,
104
117
  Global=(InterestGroupScriptRunnerGlobalScope,
105
118
  InterestGroupBiddingScriptRunnerGlobalScope)]
106
119
  interface InterestGroupBiddingScriptRunnerGlobalScope
107
- : InterestGroupScriptRunnerGlobalScope {
120
+ : InterestGroupBiddingAndScoringScriptRunnerGlobalScope {
108
121
  boolean setBid(optional GenerateBidOutput generateBidOutput = {});
109
122
  undefined setPriority(double priority);
110
123
  undefined setPrioritySignalsOverride(DOMString key, optional double? priority);
@@ -131,7 +144,7 @@ dictionary GenerateBidOutput {
131
144
  Global=(InterestGroupScriptRunnerGlobalScope,
132
145
  InterestGroupScoringScriptRunnerGlobalScope)]
133
146
  interface InterestGroupScoringScriptRunnerGlobalScope
134
- : InterestGroupScriptRunnerGlobalScope {
147
+ : InterestGroupBiddingAndScoringScriptRunnerGlobalScope {
135
148
  };
136
149
 
137
150
  [Exposed=InterestGroupReportingScriptRunnerGlobalScope,
@@ -149,6 +162,16 @@ partial interface Navigator {
149
162
  undefined updateAdInterestGroups();
150
163
  };
151
164
 
165
+ [SecureContext]
166
+ partial interface Navigator {
167
+ [SameObject] readonly attribute ProtectedAudience protectedAudience;
168
+ };
169
+
170
+ [SecureContext, Exposed=Window]
171
+ interface ProtectedAudience {
172
+ any queryFeatureSupport(DOMString feature);
173
+ };
174
+
152
175
  partial dictionary RequestInit {
153
176
  boolean adAuctionHeaders;
154
177
  };
@@ -168,11 +191,13 @@ dictionary BiddingBrowserSignals {
168
191
  required long joinCount;
169
192
  required long bidCount;
170
193
  required long recency;
194
+ required long adComponentsLimit;
171
195
 
172
196
  USVString topLevelSeller;
173
197
  sequence<PreviousWin> prevWinsMs;
174
198
  object wasmHelper;
175
199
  unsigned long dataVersion;
200
+ boolean forDebuggingOnlyInCooldownOrLockout = false;
176
201
  };
177
202
 
178
203
  dictionary ScoringBrowserSignals {
@@ -184,6 +209,7 @@ dictionary ScoringBrowserSignals {
184
209
 
185
210
  unsigned long dataVersion;
186
211
  sequence<USVString> adComponents;
212
+ boolean forDebuggingOnlyInCooldownOrLockout = false;
187
213
  };
188
214
 
189
215
  dictionary ReportingBrowserSignals {
package/uievents.idl CHANGED
@@ -226,6 +226,16 @@ partial dictionary KeyboardEventInit {
226
226
  unsigned long keyCode = 0;
227
227
  };
228
228
 
229
+ [Exposed=Window]
230
+ interface TextEvent : UIEvent {
231
+ readonly attribute DOMString data;
232
+ undefined initTextEvent(DOMString type,
233
+ optional boolean bubbles = false,
234
+ optional boolean cancelable = false,
235
+ optional Window? view = null,
236
+ optional DOMString data = "undefined");
237
+ };
238
+
229
239
  [Exposed=Window]
230
240
  interface MutationEvent : Event {
231
241
  // attrChangeType
package/wai-aria.idl CHANGED
@@ -57,5 +57,4 @@ interface mixin ARIAMixin {
57
57
  [CEReactions] attribute DOMString? ariaValueNow;
58
58
  [CEReactions] attribute DOMString? ariaValueText;
59
59
  };
60
-
61
60
  Element includes ARIAMixin;
package/webgl1.idl CHANGED
@@ -518,6 +518,9 @@ interface mixin WebGLRenderingContextBase
518
518
  readonly attribute GLsizei drawingBufferWidth;
519
519
  readonly attribute GLsizei drawingBufferHeight;
520
520
  readonly attribute GLenum drawingBufferFormat;
521
+
522
+ /* Upon context creation, drawingBufferColorSpace and unpackColorSpace both
523
+ default to the value "srgb". */
521
524
  attribute PredefinedColorSpace drawingBufferColorSpace;
522
525
  attribute PredefinedColorSpace unpackColorSpace;
523
526
 
package/webnn.idl CHANGED
@@ -29,47 +29,17 @@ dictionary MLContextOptions {
29
29
  interface ML {
30
30
  Promise<MLContext> createContext(optional MLContextOptions options = {});
31
31
  Promise<MLContext> createContext(GPUDevice gpuDevice);
32
-
33
- [Exposed=(DedicatedWorker)]
34
- MLContext createContextSync(optional MLContextOptions options = {});
35
- [Exposed=(DedicatedWorker)]
36
- MLContext createContextSync(GPUDevice gpuDevice);
37
32
  };
38
33
 
39
34
  [SecureContext, Exposed=(Window, DedicatedWorker)]
40
35
  interface MLActivation {
41
36
  };
42
37
 
43
- typedef (GPUBuffer or GPUTexture) MLGPUResource;
44
-
45
- typedef record<DOMString, MLGPUResource> MLNamedGPUResources;
46
-
47
- [SecureContext, Exposed=(Window, DedicatedWorker)]
48
- interface MLCommandEncoder {};
49
-
50
- partial interface MLCommandEncoder {
51
- undefined initializeGraph(MLGraph graph);
52
- };
53
-
54
- partial interface MLCommandEncoder {
55
- undefined dispatch(MLGraph graph, MLNamedGPUResources inputs, MLNamedGPUResources outputs);
56
- };
57
-
58
- partial interface MLCommandEncoder {
59
- GPUCommandBuffer finish(optional GPUCommandBufferDescriptor descriptor = {});
60
- };
61
-
62
38
  typedef record<DOMString, ArrayBufferView> MLNamedArrayBufferViews;
63
39
 
64
40
  [SecureContext, Exposed=(Window, DedicatedWorker)]
65
41
  interface MLContext {};
66
42
 
67
- partial interface MLContext {
68
- [Exposed=(DedicatedWorker)]
69
- undefined computeSync(
70
- MLGraph graph, MLNamedArrayBufferViews inputs, MLNamedArrayBufferViews outputs);
71
- };
72
-
73
43
  dictionary MLComputeResult {
74
44
  MLNamedArrayBufferViews inputs;
75
45
  MLNamedArrayBufferViews outputs;
@@ -80,23 +50,11 @@ partial interface MLContext {
80
50
  MLGraph graph, MLNamedArrayBufferViews inputs, MLNamedArrayBufferViews outputs);
81
51
  };
82
52
 
83
- partial interface MLContext {
84
- MLCommandEncoder createCommandEncoder();
85
- };
86
-
87
53
  [SecureContext, Exposed=(Window, DedicatedWorker)]
88
54
  interface MLGraph {};
89
55
 
90
56
  typedef record<DOMString, MLOperand> MLNamedOperands;
91
57
 
92
- dictionary MLBufferResourceView {
93
- required GPUBuffer resource;
94
- unsigned long long offset = 0;
95
- unsigned long long size;
96
- };
97
-
98
- typedef (ArrayBufferView or MLBufferResourceView) MLBufferView;
99
-
100
58
  [SecureContext, Exposed=(Window, DedicatedWorker)]
101
59
  interface MLGraphBuilder {
102
60
  // Construct the graph builder from the context.
@@ -106,21 +64,17 @@ interface MLGraphBuilder {
106
64
  MLOperand input(DOMString name, MLOperandDescriptor descriptor);
107
65
 
108
66
  // Create an operand for a graph constant.
109
- MLOperand constant(MLOperandDescriptor descriptor, MLBufferView bufferView);
67
+ MLOperand constant(MLOperandDescriptor descriptor, ArrayBufferView bufferView);
110
68
 
111
69
  // Create a single-value operand from the specified number of the specified type.
112
70
  MLOperand constant(double value, optional MLOperandDataType type = "float32");
113
71
 
114
72
  // Compile the graph up to the specified output operands asynchronously.
115
73
  Promise<MLGraph> build(MLNamedOperands outputs);
116
-
117
- // Compile the graph up to the specified output operands synchronously.
118
- [Exposed=(DedicatedWorker)]
119
- MLGraph buildSync(MLNamedOperands outputs);
120
74
  };
121
75
 
122
76
  dictionary MLArgMinMaxOptions {
123
- sequence<unsigned long> axes = null;
77
+ sequence<unsigned long> axes;
124
78
  boolean keepDimensions = false;
125
79
  boolean selectLastIndex = false;
126
80
  };
@@ -469,7 +423,7 @@ partial interface MLGraphBuilder {
469
423
  };
470
424
 
471
425
  dictionary MLReduceOptions {
472
- sequence<unsigned long> axes = null;
426
+ sequence<unsigned long> axes;
473
427
  boolean keepDimensions = false;
474
428
  };
475
429
 
@@ -607,5 +561,5 @@ dictionary MLOperandDescriptor {
607
561
  required MLOperandDataType dataType;
608
562
 
609
563
  // The dimensions field is only required for tensor operands.
610
- sequence<unsigned long> dimensions;
564
+ sequence<unsigned long> dimensions = [];
611
565
  };