@webref/idl 3.59.3 → 3.60.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/cssom-view.idl CHANGED
@@ -103,8 +103,11 @@ enum ScrollLogicalPosition { "start", "center", "end", "nearest" };
103
103
  dictionary ScrollIntoViewOptions : ScrollOptions {
104
104
  ScrollLogicalPosition block = "start";
105
105
  ScrollLogicalPosition inline = "nearest";
106
+ ScrollIntoViewContainer container = "all";
106
107
  };
107
108
 
109
+ enum ScrollIntoViewContainer { "all", "nearest" };
110
+
108
111
  dictionary CheckVisibilityOptions {
109
112
  boolean checkOpacity = false;
110
113
  boolean checkVisibilityCSS = false;
package/fedcm.idl CHANGED
@@ -9,7 +9,7 @@ dictionary IdentityCredentialDisconnectOptions : IdentityProviderConfig {
9
9
 
10
10
  [Exposed=Window, SecureContext]
11
11
  interface IdentityCredential : Credential {
12
- static Promise<undefined> disconnect(optional IdentityCredentialDisconnectOptions options = {});
12
+ static Promise<undefined> disconnect(IdentityCredentialDisconnectOptions options);
13
13
  readonly attribute USVString? token;
14
14
  readonly attribute boolean isAutoSelected;
15
15
  };
@@ -22,19 +22,10 @@ interface GamepadPose {
22
22
  readonly attribute Float32Array? angularAcceleration;
23
23
  };
24
24
 
25
- [Exposed=Window, SecureContext]
26
- interface GamepadTouch {
27
- readonly attribute unsigned long touchId;
28
- readonly attribute octet surfaceId;
29
- readonly attribute Float32Array position;
30
- readonly attribute Uint32Array? surfaceDimensions;
31
- };
32
-
33
25
  partial interface Gamepad {
34
26
  readonly attribute GamepadHand hand;
35
27
  readonly attribute FrozenArray<GamepadHapticActuator> hapticActuators;
36
28
  readonly attribute GamepadPose? pose;
37
- readonly attribute FrozenArray<GamepadTouch>? touchEvents;
38
29
  };
39
30
 
40
31
  [Exposed=Window]
package/gamepad.idl CHANGED
@@ -12,6 +12,7 @@ interface Gamepad {
12
12
  readonly attribute GamepadMappingType mapping;
13
13
  readonly attribute FrozenArray<double> axes;
14
14
  readonly attribute FrozenArray<GamepadButton> buttons;
15
+ readonly attribute FrozenArray<GamepadTouch> touches;
15
16
  [SameObject] readonly attribute GamepadHapticActuator vibrationActuator;
16
17
  };
17
18
 
@@ -22,6 +23,13 @@ interface GamepadButton {
22
23
  readonly attribute double value;
23
24
  };
24
25
 
26
+ dictionary GamepadTouch {
27
+ unsigned long touchId;
28
+ octet surfaceId;
29
+ DOMPointReadOnly position;
30
+ DOMRectReadOnly? surfaceDimensions;
31
+ };
32
+
25
33
  enum GamepadMappingType {
26
34
  "",
27
35
  "standard",
package/html.idl CHANGED
@@ -1305,12 +1305,15 @@ typedef (HTMLOrSVGImageElement or
1305
1305
 
1306
1306
  enum PredefinedColorSpace { "srgb", "display-p3" };
1307
1307
 
1308
+ enum CanvasColorType { "unorm8", "float16" };
1309
+
1308
1310
  enum CanvasFillRule { "nonzero", "evenodd" };
1309
1311
 
1310
1312
  dictionary CanvasRenderingContext2DSettings {
1311
1313
  boolean alpha = true;
1312
1314
  boolean desynchronized = false;
1313
1315
  PredefinedColorSpace colorSpace = "srgb";
1316
+ CanvasColorType colorType = "unorm8";
1314
1317
  boolean willReadFrequently = false;
1315
1318
  };
1316
1319
 
@@ -90,7 +90,7 @@ dictionary MediaCapabilitiesInfo {
90
90
  };
91
91
 
92
92
  dictionary MediaCapabilitiesDecodingInfo : MediaCapabilitiesInfo {
93
- required MediaKeySystemAccess keySystemAccess;
93
+ required MediaKeySystemAccess? keySystemAccess;
94
94
  MediaDecodingConfiguration configuration;
95
95
  };
96
96
 
@@ -110,6 +110,8 @@ partial interface WorkerNavigator {
110
110
 
111
111
  [Exposed=(Window, Worker)]
112
112
  interface MediaCapabilities {
113
- [NewObject] Promise<MediaCapabilitiesDecodingInfo> decodingInfo(MediaDecodingConfiguration configuration);
114
- [NewObject] Promise<MediaCapabilitiesEncodingInfo> encodingInfo(MediaEncodingConfiguration configuration);
113
+ [NewObject] Promise<MediaCapabilitiesDecodingInfo> decodingInfo(
114
+ MediaDecodingConfiguration configuration);
115
+ [NewObject] Promise<MediaCapabilitiesEncodingInfo> encodingInfo(
116
+ MediaEncodingConfiguration configuration);
115
117
  };
@@ -5,7 +5,7 @@
5
5
 
6
6
  partial interface CaptureController {
7
7
  sequence<long> getSupportedZoomLevels();
8
- long getZoomLevel();
8
+ readonly attribute long? zoomLevel;
9
9
  Promise<undefined> increaseZoomLevel();
10
10
  Promise<undefined> decreaseZoomLevel();
11
11
  Promise<undefined> resetZoomLevel();
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.3",
4
+ "version": "3.60.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -28,4 +28,5 @@ interface PermissionsPolicyViolationReportBody : ReportBody {
28
28
  readonly attribute long? columnNumber;
29
29
  readonly attribute DOMString disposition;
30
30
  readonly attribute DOMString? allowAttribute;
31
+ readonly attribute DOMString? srcAttribute;
31
32
  };
package/ppa.idl ADDED
@@ -0,0 +1,66 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Privacy-Preserving Attribution: Level 1 (https://w3c.github.io/ppa/)
5
+
6
+ partial interface Navigator {
7
+ [SecureContext, SameObject] readonly attribute PrivateAttribution privateAttribution;
8
+ };
9
+
10
+ enum PrivateAttributionProtocol { "dap-12-histogram", "tee-00" };
11
+
12
+ dictionary PrivateAttributionAggregationService {
13
+ required DOMString url;
14
+ required DOMString protocol;
15
+ };
16
+
17
+ [SecureContext, Exposed=Window]
18
+ interface PrivateAttributionAggregationServices {
19
+ readonly setlike<PrivateAttributionAggregationService>;
20
+ };
21
+
22
+ [SecureContext, Exposed=Window]
23
+ interface PrivateAttribution {
24
+ readonly attribute PrivateAttributionAggregationServices aggregationServices;
25
+ };
26
+
27
+ dictionary PrivateAttributionImpressionOptions {
28
+ required unsigned long histogramIndex;
29
+ required unsigned long filterData;
30
+ required DOMString conversionSite;
31
+ unsigned long lifetimeDays = 30;
32
+ };
33
+
34
+ [SecureContext, Exposed=Window]
35
+ partial interface PrivateAttribution {
36
+ undefined saveImpression(PrivateAttributionImpressionOptions options);
37
+ };
38
+
39
+ dictionary PrivateAttributionConversionOptions {
40
+ required DOMString aggregationService;
41
+ double epsilon = 1.0;
42
+
43
+ required unsigned long histogramSize;
44
+
45
+ PrivateAttributionLogic logic = "last-touch";
46
+ unsigned long value = 1;
47
+ unsigned long maxValue = 1;
48
+
49
+ unsigned long lookbackDays;
50
+ unsigned long filterData;
51
+ sequence<DOMString> impressionSites = [];
52
+ sequence<DOMString> intermediarySites = [];
53
+ };
54
+
55
+ dictionary PrivateAttributionConversionResult {
56
+ required Uint8Array report;
57
+ };
58
+
59
+ [SecureContext, Exposed=Window]
60
+ partial interface PrivateAttribution {
61
+ Promise<PrivateAttributionConversionResult> measureConversion(PrivateAttributionConversionOptions options);
62
+ };
63
+
64
+ enum PrivateAttributionLogic {
65
+ "last-touch",
66
+ };
package/speech-api.idl CHANGED
@@ -8,7 +8,6 @@ interface SpeechRecognition : EventTarget {
8
8
  constructor();
9
9
 
10
10
  // recognition parameters
11
- attribute SpeechGrammarList grammars;
12
11
  attribute DOMString lang;
13
12
  attribute boolean continuous;
14
13
  attribute boolean interimResults;
@@ -20,8 +19,8 @@ interface SpeechRecognition : EventTarget {
20
19
  undefined start(MediaStreamTrack audioTrack);
21
20
  undefined stop();
22
21
  undefined abort();
23
- boolean onDeviceWebSpeechAvailable(DOMString lang);
24
- boolean installOnDeviceSpeechRecognition(DOMString lang);
22
+ static Promise<boolean> availableOnDevice(DOMString lang);
23
+ static Promise<boolean> installOnDevice(DOMString lang);
25
24
 
26
25
  // event methods
27
26
  attribute EventHandler onaudiostart;
@@ -44,7 +43,6 @@ enum SpeechRecognitionErrorCode {
44
43
  "network",
45
44
  "not-allowed",
46
45
  "service-not-allowed",
47
- "bad-grammar",
48
46
  "language-not-supported"
49
47
  };
50
48
 
@@ -101,25 +99,6 @@ dictionary SpeechRecognitionEventInit : EventInit {
101
99
  required SpeechRecognitionResultList results;
102
100
  };
103
101
 
104
- // The object representing a speech grammar
105
- [Exposed=Window]
106
- interface SpeechGrammar {
107
- attribute DOMString src;
108
- attribute float weight;
109
- };
110
-
111
- // The object representing a speech grammar collection
112
- [Exposed=Window]
113
- interface SpeechGrammarList {
114
- constructor();
115
- readonly attribute unsigned long length;
116
- getter SpeechGrammar item(unsigned long index);
117
- undefined addFromURI(DOMString src,
118
- optional float weight = 1.0);
119
- undefined addFromString(DOMString string,
120
- optional float weight = 1.0);
121
- };
122
-
123
102
  [Exposed=Window]
124
103
  interface SpeechSynthesis : EventTarget {
125
104
  readonly attribute boolean pending;
@@ -119,11 +119,19 @@ interface AnimationTrigger {
119
119
  constructor(optional AnimationTriggerOptions options = {});
120
120
  attribute AnimationTimeline timeline;
121
121
  attribute AnimationTriggerType type;
122
+ attribute any rangeStart;
123
+ attribute any rangeEnd;
124
+ attribute any exitRangeStart;
125
+ attribute any exitRangeEnd;
122
126
  };
123
127
 
124
128
  dictionary AnimationTriggerOptions {
125
129
  AnimationTimeline? timeline;
126
130
  AnimationTriggerType? type = "once";
131
+ (TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) rangeStart = "normal";
132
+ (TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) rangeEnd = "normal";
133
+ (TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) exitRangeStart = "auto";
134
+ (TimelineRangeOffset or CSSNumericValue or CSSKeywordValue or DOMString) exitRangeEnd = "auto";
127
135
  };
128
136
 
129
137
  enum AnimationTriggerType { "once", "repeat", "alternate", "state" };
package/webnn.idl CHANGED
@@ -9,12 +9,6 @@ interface mixin NavigatorML {
9
9
  Navigator includes NavigatorML;
10
10
  WorkerNavigator includes NavigatorML;
11
11
 
12
- enum MLDeviceType {
13
- "cpu",
14
- "gpu",
15
- "npu"
16
- };
17
-
18
12
  enum MLPowerPreference {
19
13
  "default",
20
14
  "high-performance",
@@ -22,7 +16,6 @@ enum MLPowerPreference {
22
16
  };
23
17
 
24
18
  dictionary MLContextOptions {
25
- MLDeviceType deviceType = "cpu";
26
19
  MLPowerPreference powerPreference = "default";
27
20
  };
28
21