@webref/idl 3.1.2 → 3.1.3

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.
@@ -3,8 +3,10 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: Compute Pressure API (https://wicg.github.io/compute-pressure/)
5
5
 
6
+ enum PressureState { "nominal", "fair", "serious", "critical" };
7
+
6
8
  callback ComputePressureUpdateCallback = undefined (
7
- ComputePressureEntry update,
9
+ sequence<ComputePressureEntry> entries,
8
10
  ComputePressureObserver observer
9
11
  );
10
12
 
@@ -13,20 +15,20 @@ enum ComputePressureTarget { "cpu" };
13
15
  [Exposed=Window]
14
16
  interface ComputePressureObserver {
15
17
  constructor(ComputePressureUpdateCallback callback);
18
+
16
19
  undefined observe(ComputePressureTarget target, optional ComputePressureObserverOptions options = {});
17
20
  undefined unobserve(ComputePressureTarget target);
18
21
  undefined disconnect();
19
22
  sequence<ComputePressureEntry> takeRecords();
23
+
20
24
  [SameObject] static readonly attribute FrozenArray<DOMString> supportedTargetTypes;
21
25
  };
22
26
 
23
27
  dictionary ComputePressureEntry {
24
- double cpuSpeed;
25
- double cpuUtilization;
28
+ PressureState state;
26
29
  ComputePressureObserverOptions options;
27
30
  };
28
31
 
29
32
  dictionary ComputePressureObserverOptions {
30
- sequence<double> cpuUtilizationThresholds = [];
31
- sequence<double> cpuSpeedThresholds = [];
33
+ // For future-proofing - expect things to be added here later.
32
34
  };
package/html.idl CHANGED
@@ -201,6 +201,7 @@ interface HTMLLinkElement : HTMLElement {
201
201
  [CEReactions] attribute USVString imageSrcset;
202
202
  [CEReactions] attribute DOMString imageSizes;
203
203
  [CEReactions] attribute DOMString referrerPolicy;
204
+ [SameObject, PutForwards=value] readonly attribute DOMTokenList blocking;
204
205
  [CEReactions] attribute boolean disabled;
205
206
 
206
207
  // also has obsolete members
@@ -224,6 +225,7 @@ interface HTMLStyleElement : HTMLElement {
224
225
  [HTMLConstructor] constructor();
225
226
 
226
227
  [CEReactions] attribute DOMString media;
228
+ [SameObject, PutForwards=value] readonly attribute DOMTokenList blocking;
227
229
 
228
230
  // also has obsolete members
229
231
  };
@@ -1221,6 +1223,7 @@ interface HTMLScriptElement : HTMLElement {
1221
1223
  [CEReactions] attribute DOMString text;
1222
1224
  [CEReactions] attribute DOMString integrity;
1223
1225
  [CEReactions] attribute DOMString referrerPolicy;
1226
+ [SameObject, PutForwards=value] readonly attribute DOMTokenList blocking;
1224
1227
 
1225
1228
  static boolean supports(DOMString type);
1226
1229
 
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.1.2",
4
+ "version": "3.1.3",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
package/permissions.idl CHANGED
@@ -19,13 +19,13 @@ interface Permissions {
19
19
  };
20
20
 
21
21
  dictionary PermissionDescriptor {
22
- required PermissionName name;
22
+ required DOMString name;
23
23
  };
24
24
 
25
25
  [Exposed=(Window,Worker)]
26
26
  interface PermissionStatus : EventTarget {
27
27
  readonly attribute PermissionState state;
28
- readonly attribute PermissionName name;
28
+ readonly attribute DOMString name;
29
29
  attribute EventHandler onchange;
30
30
  };
31
31
 
@@ -35,24 +35,8 @@ enum PermissionState {
35
35
  "prompt",
36
36
  };
37
37
 
38
- enum PermissionName {
39
- "accelerometer",
40
- "ambient-light-sensor",
41
- "background-fetch",
42
- "background-sync",
43
- "bluetooth",
44
- "camera",
45
- "display-capture",
46
- "geolocation",
47
- "gyroscope",
48
- "magnetometer",
49
- "microphone",
50
- "midi",
51
- "nfc",
52
- "notifications",
53
- "persistent-storage",
54
- "push",
55
- "screen-wake-lock",
56
- "speaker-selection",
57
- "xr-spatial-tracking",
38
+ dictionary PermissionSetParameters {
39
+ required PermissionDescriptor descriptor;
40
+ required PermissionState state;
41
+ boolean oneRealm = false;
58
42
  };
package/webtransport.idl CHANGED
@@ -54,6 +54,7 @@ dictionary WebTransportStats {
54
54
  DOMHighResTimeStamp timestamp;
55
55
  unsigned long long bytesSent;
56
56
  unsigned long long packetsSent;
57
+ unsigned long long packetsLost;
57
58
  unsigned long numOutgoingStreamsCreated;
58
59
  unsigned long numIncomingStreamsCreated;
59
60
  unsigned long long bytesReceived;