@webref/idl 2.5.0 → 2.6.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,30 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Compute Pressure API (https://wicg.github.io/compute-pressure/)
5
+
6
+ callback ComputePressureUpdateCallback = undefined (
7
+ ComputePressureObserverUpdate update,
8
+ ComputePressureObserver observer
9
+ );
10
+
11
+ [Exposed=Window]
12
+ interface ComputePressureObserver {
13
+ constructor(
14
+ ComputePressureUpdateCallback callback,
15
+ optional ComputePressureObserverOptions options = {}
16
+ );
17
+ undefined observe();
18
+ undefined unobserve();
19
+ };
20
+
21
+ dictionary ComputePressureObserverUpdate {
22
+ double cpuSpeed;
23
+ double cpuUtilization;
24
+ ComputePressureObserverOptions options;
25
+ };
26
+
27
+ dictionary ComputePressureObserverOptions {
28
+ sequence<double> cpuUtilizationThresholds = [];
29
+ sequence<double> cpuSpeedThresholds = [];
30
+ };
package/css-fonts.idl CHANGED
@@ -28,12 +28,9 @@ interface CSSFontFeatureValuesMap {
28
28
  (unsigned long or sequence<unsigned long>) values);
29
29
  };
30
30
 
31
- partial interface CSSRule { const unsigned short FONT_PALETTE_VALUES_RULE = 15;
32
- };
33
-
34
- [Exposed=Window]
35
- interface CSSFontPaletteValuesRule : CSSRule {
36
- maplike<unsigned long, CSSOMString>;
37
- attribute CSSOMString fontFamily;
38
- attribute CSSOMString basePalette;
31
+ [Exposed=Window]interface CSSFontPaletteValuesRule : CSSRule {
32
+ readonly attribute CSSOMString name;
33
+ readonly attribute CSSOMString fontFamily;
34
+ readonly attribute CSSOMString basePalette;
35
+ readonly attribute CSSOMString overrideColors;
39
36
  };
@@ -11,7 +11,7 @@ dictionary ColorSelectionOptions {
11
11
  AbortSignal signal;
12
12
  };
13
13
 
14
- [Exposed=Window]
14
+ [Exposed=Window, SecureContext]
15
15
  interface EyeDropper {
16
16
  constructor();
17
17
  Promise<ColorSelectionResult> open(optional ColorSelectionOptions options = {});
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.5.0",
4
+ "version": "2.6.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -30,6 +30,7 @@ partial interface AnimationEffect {
30
30
 
31
31
  partial dictionary EffectTiming {
32
32
  double playbackRate = 1.0;
33
+ (unrestricted double or CSSNumericValue or DOMString) duration = "auto";
33
34
  };
34
35
 
35
36
  partial dictionary OptionalEffectTiming {
@@ -85,3 +86,15 @@ enum IterationCompositeOperation { "replace", "accumulate" };
85
86
  callback EffectCallback = undefined (double? progress,
86
87
  (Element or CSSPseudoElement) currentTarget,
87
88
  Animation animation);
89
+
90
+ [Exposed=Window]
91
+ interface AnimationPlaybackEvent : Event {
92
+ constructor(DOMString type, optional AnimationPlaybackEventInit
93
+ eventInitDict = {});
94
+ readonly attribute CSSNumberish? currentTime;
95
+ readonly attribute CSSNumberish? timelineTime;
96
+ };
97
+ dictionary AnimationPlaybackEventInit : EventInit {
98
+ CSSNumberish? currentTime = null;
99
+ CSSNumberish? timelineTime = null;
100
+ };
@@ -63,7 +63,6 @@ dictionary EffectTiming {
63
63
  FillMode fill = "auto";
64
64
  double iterationStart = 0.0;
65
65
  unrestricted double iterations = 1.0;
66
- (unrestricted double or DOMString) duration = "auto";
67
66
  PlaybackDirection direction = "normal";
68
67
  DOMString easing = "linear";
69
68
  };
@@ -152,14 +151,3 @@ partial interface mixin DocumentOrShadowRoot {
152
151
  };
153
152
 
154
153
  Element includes Animatable;
155
-
156
- [Exposed=Window]
157
- interface AnimationPlaybackEvent : Event {
158
- constructor(DOMString type, optional AnimationPlaybackEventInit eventInitDict = {});
159
- readonly attribute double? currentTime;
160
- readonly attribute double? timelineTime;
161
- };
162
- dictionary AnimationPlaybackEventInit : EventInit {
163
- double? currentTime = null;
164
- double? timelineTime = null;
165
- };
package/webnn.idl CHANGED
@@ -317,6 +317,11 @@ partial interface MLGraphBuilder {
317
317
  MLOperand pad(MLOperand input, MLOperand padding, optional MLPadOptions options = {});
318
318
  };
319
319
 
320
+ enum MLRoundingType {
321
+ "floor",
322
+ "ceil"
323
+ };
324
+
320
325
  dictionary MLPool2dOptions {
321
326
  sequence<long> windowDimensions;
322
327
  sequence<long> padding;
@@ -324,6 +329,8 @@ dictionary MLPool2dOptions {
324
329
  sequence<long> dilations;
325
330
  MLAutoPad autoPad = "explicit";
326
331
  MLInputOperandLayout layout = "nchw";
332
+ MLRoundingType roundingType = "floor";
333
+ sequence<long> outputSizes;
327
334
  };
328
335
 
329
336
  partial interface MLGraphBuilder {
@@ -360,14 +367,15 @@ enum MLInterpolationMode {
360
367
  "linear"
361
368
  };
362
369
 
363
- dictionary MLResampleOptions {
370
+ dictionary MLResample2dOptions {
364
371
  MLInterpolationMode mode = "nearest-neighbor";
365
372
  sequence<float> scales;
366
373
  sequence<long> sizes;
374
+ sequence<long> axes;
367
375
  };
368
376
 
369
377
  partial interface MLGraphBuilder {
370
- MLOperand resample(MLOperand input, optional MLResampleOptions options = {});
378
+ MLOperand resample2d(MLOperand input, optional MLResample2dOptions options = {});
371
379
  };
372
380
 
373
381
  partial interface MLGraphBuilder {
package/webtransport.idl CHANGED
@@ -35,13 +35,18 @@ interface WebTransport {
35
35
  readonly attribute ReadableStream incomingUnidirectionalStreams;
36
36
  };
37
37
 
38
+ dictionary WebTransportHash {
39
+ DOMString algorithm;
40
+ BufferSource value;
41
+ };
42
+
38
43
  dictionary WebTransportOptions {
39
44
  boolean allowPooling;
40
- sequence<RTCDtlsFingerprint> serverCertificateFingerprints;
45
+ sequence<WebTransportHash> serverCertificateHashes;
41
46
  };
42
47
 
43
48
  dictionary WebTransportCloseInfo {
44
- unsigned long errorCode;
49
+ unsigned long closeCode;
45
50
  DOMString reason;
46
51
  };
47
52