@webref/idl 3.50.0 → 3.51.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.
@@ -0,0 +1,13 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: CSS Viewport Module Level 1 (https://drafts.csswg.org/css-viewport/)
5
+
6
+ partial interface Window {
7
+ [SameObject, Replaceable] readonly attribute Viewport? viewport;
8
+ };
9
+
10
+ [Exposed=Window]
11
+ interface Viewport : EventTarget {
12
+ readonly attribute double zoom;
13
+ };
package/cssom.idl CHANGED
@@ -122,7 +122,8 @@ interface CSSPageDescriptors : CSSStyleDeclaration {
122
122
  attribute [LegacyNullToEmptyString] CSSOMString margin-bottom;
123
123
  attribute [LegacyNullToEmptyString] CSSOMString margin-left;
124
124
  attribute [LegacyNullToEmptyString] CSSOMString size;
125
- attribute [LegacyNullToEmptyString] CSSOMString orientation;
125
+ attribute [LegacyNullToEmptyString] CSSOMString pageOrientation;
126
+ attribute [LegacyNullToEmptyString] CSSOMString page-orientation;
126
127
  attribute [LegacyNullToEmptyString] CSSOMString marks;
127
128
  attribute [LegacyNullToEmptyString] CSSOMString bleed;
128
129
  };
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.50.0",
4
+ "version": "3.51.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -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: Payment Request API 1.1 (https://w3c.github.io/payment-request/)
4
+ // Source: Payment Request API (https://w3c.github.io/payment-request/)
5
5
 
6
6
  [SecureContext, Exposed=Window]
7
7
  interface PaymentRequest : EventTarget {
package/touch-events.idl CHANGED
@@ -53,9 +53,9 @@ interface TouchList {
53
53
  };
54
54
 
55
55
  dictionary TouchEventInit : EventModifierInit {
56
- sequence<Touch> touches = [];
57
- sequence<Touch> targetTouches = [];
58
- sequence<Touch> changedTouches = [];
56
+ sequence<Touch> touches = [];
57
+ sequence<Touch> targetTouches = [];
58
+ sequence<Touch> changedTouches = [];
59
59
  };
60
60
 
61
61
  [Exposed=Window]
package/webmidi.idl CHANGED
@@ -17,22 +17,22 @@ dictionary MIDIOptions {
17
17
  boolean software;
18
18
  };
19
19
 
20
- [SecureContext, Exposed=Window] interface MIDIInputMap {
20
+ [SecureContext, Exposed=(Window,Worker)] interface MIDIInputMap {
21
21
  readonly maplike <DOMString, MIDIInput>;
22
22
  };
23
23
 
24
- [SecureContext, Exposed=Window] interface MIDIOutputMap {
24
+ [SecureContext, Exposed=(Window,Worker)] interface MIDIOutputMap {
25
25
  readonly maplike <DOMString, MIDIOutput>;
26
26
  };
27
27
 
28
- [SecureContext, Exposed=Window] interface MIDIAccess: EventTarget {
28
+ [SecureContext, Exposed=(Window,Worker), Transferable] interface MIDIAccess: EventTarget {
29
29
  readonly attribute MIDIInputMap inputs;
30
30
  readonly attribute MIDIOutputMap outputs;
31
31
  attribute EventHandler onstatechange;
32
32
  readonly attribute boolean sysexEnabled;
33
33
  };
34
34
 
35
- [SecureContext, Exposed=Window] interface MIDIPort: EventTarget {
35
+ [SecureContext, Exposed=(Window,Worker)] interface MIDIPort: EventTarget {
36
36
  readonly attribute DOMString id;
37
37
  readonly attribute DOMString? manufacturer;
38
38
  readonly attribute DOMString? name;
@@ -45,11 +45,11 @@ dictionary MIDIOptions {
45
45
  Promise <MIDIPort> close();
46
46
  };
47
47
 
48
- [SecureContext, Exposed=Window] interface MIDIInput: MIDIPort {
48
+ [SecureContext, Exposed=(Window,Worker)] interface MIDIInput: MIDIPort {
49
49
  attribute EventHandler onmidimessage;
50
50
  };
51
51
 
52
- [SecureContext, Exposed=Window] interface MIDIOutput : MIDIPort {
52
+ [SecureContext, Exposed=(Window,Worker)] interface MIDIOutput : MIDIPort {
53
53
  undefined send(sequence<octet> data, optional DOMHighResTimeStamp timestamp = 0);
54
54
  undefined clear();
55
55
  };
@@ -70,7 +70,7 @@ enum MIDIPortConnectionState {
70
70
  "pending",
71
71
  };
72
72
 
73
- [SecureContext, Exposed=Window]
73
+ [SecureContext, Exposed=(Window,Worker)]
74
74
  interface MIDIMessageEvent : Event {
75
75
  constructor(DOMString type, optional MIDIMessageEventInit eventInitDict = {});
76
76
  readonly attribute Uint8Array? data;
@@ -80,7 +80,7 @@ dictionary MIDIMessageEventInit: EventInit {
80
80
  Uint8Array data;
81
81
  };
82
82
 
83
- [SecureContext, Exposed=Window]
83
+ [SecureContext, Exposed=(Window,Worker)]
84
84
  interface MIDIConnectionEvent : Event {
85
85
  constructor(DOMString type, optional MIDIConnectionEventInit eventInitDict = {});
86
86
  readonly attribute MIDIPort? port;
package/webnn.idl CHANGED
@@ -32,7 +32,7 @@ interface ML {
32
32
  Promise<MLContext> createContext(GPUDevice gpuDevice);
33
33
  };
34
34
 
35
- typedef record<DOMString, ArrayBufferView> MLNamedArrayBufferViews;
35
+ typedef record<USVString, ArrayBufferView> MLNamedArrayBufferViews;
36
36
 
37
37
  dictionary MLComputeResult {
38
38
  MLNamedArrayBufferViews inputs;
@@ -75,10 +75,12 @@ interface MLOperand {
75
75
  sequence<unsigned long> shape();
76
76
  };
77
77
 
78
+ typedef (bigint or unrestricted double) MLNumber;
79
+
78
80
  [SecureContext, Exposed=(Window, DedicatedWorker)]
79
81
  interface MLActivation {};
80
82
 
81
- typedef record<DOMString, MLOperand> MLNamedOperands;
83
+ typedef record<USVString, MLOperand> MLNamedOperands;
82
84
 
83
85
  [SecureContext, Exposed=(Window, DedicatedWorker)]
84
86
  interface MLGraphBuilder {
@@ -86,13 +88,13 @@ interface MLGraphBuilder {
86
88
  constructor(MLContext context);
87
89
 
88
90
  // Create an operand for a graph input.
89
- MLOperand input(DOMString name, MLOperandDescriptor descriptor);
91
+ MLOperand input(USVString name, MLOperandDescriptor descriptor);
90
92
 
91
93
  // Create an operand for a graph constant.
92
94
  MLOperand constant(MLOperandDescriptor descriptor, ArrayBufferView bufferView);
93
95
 
94
96
  // Create a scalar operand from the specified number of the specified type.
95
- MLOperand constant(MLOperandDataType type, double value);
97
+ MLOperand constant(MLOperandDataType type, MLNumber value);
96
98
 
97
99
  // Compile the graph up to the specified output operands asynchronously.
98
100
  Promise<MLGraph> build(MLNamedOperands outputs);
@@ -113,7 +115,7 @@ dictionary MLBatchNormalizationOptions {
113
115
  MLOperand scale;
114
116
  MLOperand bias;
115
117
  [EnforceRange] unsigned long axis = 1;
116
- float epsilon = 1e-5;
118
+ double epsilon = 1e-5;
117
119
  };
118
120
 
119
121
  partial interface MLGraphBuilder {
@@ -126,8 +128,8 @@ partial interface MLGraphBuilder {
126
128
  };
127
129
 
128
130
  dictionary MLClampOptions {
129
- float minValue;
130
- float maxValue;
131
+ MLNumber minValue;
132
+ MLNumber maxValue;
131
133
  };
132
134
 
133
135
  partial interface MLGraphBuilder {
@@ -220,7 +222,7 @@ partial interface MLGraphBuilder {
220
222
  };
221
223
 
222
224
  dictionary MLEluOptions {
223
- float alpha = 1;
225
+ double alpha = 1;
224
226
  };
225
227
 
226
228
  partial interface MLGraphBuilder {
@@ -249,8 +251,8 @@ partial interface MLGraphBuilder {
249
251
 
250
252
  dictionary MLGemmOptions {
251
253
  MLOperand c;
252
- float alpha = 1.0;
253
- float beta = 1.0;
254
+ double alpha = 1.0;
255
+ double beta = 1.0;
254
256
  boolean aTranspose = false;
255
257
  boolean bTranspose = false;
256
258
  };
@@ -308,8 +310,8 @@ partial interface MLGraphBuilder {
308
310
  };
309
311
 
310
312
  dictionary MLHardSigmoidOptions {
311
- float alpha = 0.2;
312
- float beta = 0.5;
313
+ double alpha = 0.2;
314
+ double beta = 0.5;
313
315
  };
314
316
 
315
317
  partial interface MLGraphBuilder {
@@ -325,7 +327,7 @@ partial interface MLGraphBuilder {
325
327
  dictionary MLInstanceNormalizationOptions {
326
328
  MLOperand scale;
327
329
  MLOperand bias;
328
- float epsilon = 1e-5;
330
+ double epsilon = 1e-5;
329
331
  MLInputOperandLayout layout = "nchw";
330
332
  };
331
333
 
@@ -338,7 +340,7 @@ dictionary MLLayerNormalizationOptions {
338
340
  MLOperand scale;
339
341
  MLOperand bias;
340
342
  sequence<[EnforceRange] unsigned long> axes;
341
- float epsilon = 1e-5;
343
+ double epsilon = 1e-5;
342
344
  };
343
345
 
344
346
  partial interface MLGraphBuilder {
@@ -347,7 +349,7 @@ partial interface MLGraphBuilder {
347
349
  };
348
350
 
349
351
  dictionary MLLeakyReluOptions {
350
- float alpha = 0.01;
352
+ double alpha = 0.01;
351
353
  };
352
354
 
353
355
  partial interface MLGraphBuilder {
@@ -356,8 +358,8 @@ partial interface MLGraphBuilder {
356
358
  };
357
359
 
358
360
  dictionary MLLinearOptions {
359
- float alpha = 1;
360
- float beta = 0;
361
+ double alpha = 1;
362
+ double beta = 0;
361
363
  };
362
364
 
363
365
  partial interface MLGraphBuilder {
@@ -422,7 +424,7 @@ enum MLPaddingMode {
422
424
 
423
425
  dictionary MLPadOptions {
424
426
  MLPaddingMode mode = "constant";
425
- float value = 0;
427
+ MLNumber value = 0;
426
428
  };
427
429
 
428
430
  partial interface MLGraphBuilder {