@webref/idl 3.59.0 → 3.59.2

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.
@@ -25,3 +25,11 @@ partial namespace CSS {
25
25
  interface HighlightRegistry {
26
26
  maplike<DOMString, Highlight>;
27
27
  };
28
+
29
+ partial interface HighlightRegistry {
30
+ sequence<Highlight> highlightsFromPoint(float x, float y, optional HighlightsFromPointOptions options = {});
31
+ };
32
+
33
+ dictionary HighlightsFromPointOptions {
34
+ sequence<ShadowRoot> shadowRoots = [];
35
+ };
package/html.idl CHANGED
@@ -1320,9 +1320,8 @@ enum ImageSmoothingQuality { "low", "medium", "high" };
1320
1320
  interface CanvasRenderingContext2D {
1321
1321
  // back-reference to the canvas
1322
1322
  readonly attribute HTMLCanvasElement canvas;
1323
-
1324
- CanvasRenderingContext2DSettings getContextAttributes();
1325
1323
  };
1324
+ CanvasRenderingContext2D includes CanvasSettings;
1326
1325
  CanvasRenderingContext2D includes CanvasState;
1327
1326
  CanvasRenderingContext2D includes CanvasTransform;
1328
1327
  CanvasRenderingContext2D includes CanvasCompositing;
@@ -1340,6 +1339,11 @@ CanvasRenderingContext2D includes CanvasPathDrawingStyles;
1340
1339
  CanvasRenderingContext2D includes CanvasTextDrawingStyles;
1341
1340
  CanvasRenderingContext2D includes CanvasPath;
1342
1341
 
1342
+ interface mixin CanvasSettings {
1343
+ // settings
1344
+ CanvasRenderingContext2DSettings getContextAttributes();
1345
+ };
1346
+
1343
1347
  interface mixin CanvasState {
1344
1348
  // state
1345
1349
  undefined save(); // push state on state stack
@@ -1594,6 +1598,7 @@ interface OffscreenCanvasRenderingContext2D {
1594
1598
  readonly attribute OffscreenCanvas canvas;
1595
1599
  };
1596
1600
 
1601
+ OffscreenCanvasRenderingContext2D includes CanvasSettings;
1597
1602
  OffscreenCanvasRenderingContext2D includes CanvasState;
1598
1603
  OffscreenCanvasRenderingContext2D includes CanvasTransform;
1599
1604
  OffscreenCanvasRenderingContext2D includes CanvasCompositing;
@@ -1987,6 +1992,7 @@ interface NavigateEvent : Event {
1987
1992
  readonly attribute DOMString? downloadRequest;
1988
1993
  readonly attribute any info;
1989
1994
  readonly attribute boolean hasUAVisualTransition;
1995
+ readonly attribute Element? sourceElement;
1990
1996
 
1991
1997
  undefined intercept(optional NavigationInterceptOptions options = {});
1992
1998
  undefined scroll();
@@ -2119,10 +2125,10 @@ interface NotRestoredReasonDetails {
2119
2125
 
2120
2126
  [Exposed=Window]
2121
2127
  interface NotRestoredReasons {
2122
- readonly attribute DOMString? src;
2128
+ readonly attribute USVString? src;
2123
2129
  readonly attribute DOMString? id;
2124
2130
  readonly attribute DOMString? name;
2125
- readonly attribute DOMString? url;
2131
+ readonly attribute USVString? url;
2126
2132
  readonly attribute FrozenArray<NotRestoredReasonDetails>? reasons;
2127
2133
  readonly attribute FrozenArray<NotRestoredReasons>? children;
2128
2134
  [Default] object toJSON();
@@ -6,8 +6,10 @@
6
6
  partial interface CaptureController {
7
7
  sequence<long> getSupportedZoomLevels();
8
8
  long getZoomLevel();
9
- Promise<undefined> setZoomLevel(long zoomLevel);
10
- attribute EventHandler oncapturedzoomlevelchange;
9
+ Promise<undefined> increaseZoomLevel();
10
+ Promise<undefined> decreaseZoomLevel();
11
+ Promise<undefined> resetZoomLevel();
12
+ attribute EventHandler onzoomlevelchange;
11
13
  };
12
14
 
13
15
  partial interface CaptureController {
package/observable.idl CHANGED
@@ -74,7 +74,7 @@ interface Observable {
74
74
  //
75
75
  // takeUntil() can consume promises, iterables, async iterables, and other
76
76
  // observables.
77
- Observable takeUntil(any notifier);
77
+ Observable takeUntil(any value);
78
78
  Observable map(Mapper mapper);
79
79
  Observable filter(Predicate predicate);
80
80
  Observable take(unsigned long long amount);
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.59.0",
4
+ "version": "3.59.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -114,6 +114,7 @@ dictionary SharedStoragePrivateAggregationConfig {
114
114
  USVString aggregationCoordinatorOrigin;
115
115
  USVString contextId;
116
116
  [EnforceRange] unsigned long long filteringIdMaxBytes;
117
+ [EnforceRange] unsigned long long maxContributions;
117
118
  };
118
119
 
119
120
  dictionary SharedStorageRunOperationMethodOptions {
package/speech-api.idl CHANGED
@@ -13,11 +13,15 @@ interface SpeechRecognition : EventTarget {
13
13
  attribute boolean continuous;
14
14
  attribute boolean interimResults;
15
15
  attribute unsigned long maxAlternatives;
16
+ attribute SpeechRecognitionMode mode;
16
17
 
17
18
  // methods to drive the speech interaction
18
19
  undefined start();
20
+ undefined start(MediaStreamTrack audioTrack);
19
21
  undefined stop();
20
22
  undefined abort();
23
+ boolean onDeviceWebSpeechAvailable(DOMString lang);
24
+ boolean installOnDeviceSpeechRecognition(DOMString lang);
21
25
 
22
26
  // event methods
23
27
  attribute EventHandler onaudiostart;
@@ -44,6 +48,12 @@ enum SpeechRecognitionErrorCode {
44
48
  "language-not-supported"
45
49
  };
46
50
 
51
+ enum SpeechRecognitionMode {
52
+ "ondevice-preferred", // On-device speech recognition if available, otherwise use Cloud speech recognition as a fallback.
53
+ "ondevice-only", // On-device speech recognition only. Returns an error if on-device speech recognition is not available.
54
+ "cloud-only", // Cloud speech recognition only.
55
+ };
56
+
47
57
  [Exposed=Window]
48
58
  interface SpeechRecognitionErrorEvent : Event {
49
59
  constructor(DOMString type, SpeechRecognitionErrorEventInit eventInitDict);
package/webcodecs.idl CHANGED
@@ -154,6 +154,8 @@ dictionary VideoDecoderConfig {
154
154
  VideoColorSpaceInit colorSpace;
155
155
  HardwareAcceleration hardwareAcceleration = "no-preference";
156
156
  boolean optimizeForLatency;
157
+ double rotation = 0;
158
+ boolean flip = false;
157
159
  };
158
160
 
159
161
  dictionary AudioEncoderConfig {
package/webgpu.idl CHANGED
@@ -62,6 +62,8 @@ interface GPUAdapterInfo {
62
62
  readonly attribute DOMString architecture;
63
63
  readonly attribute DOMString device;
64
64
  readonly attribute DOMString description;
65
+ readonly attribute unsigned long subgroupMinSize;
66
+ readonly attribute unsigned long subgroupMaxSize;
65
67
  };
66
68
 
67
69
  interface mixin NavigatorGPU {
@@ -123,6 +125,7 @@ enum GPUFeatureName {
123
125
  "float32-blendable",
124
126
  "clip-distances",
125
127
  "dual-source-blending",
128
+ "subgroups",
126
129
  };
127
130
 
128
131
  [Exposed=(Window, Worker), SecureContext]