@webref/idl 2.12.1 → 3.0.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/autoplay.idl CHANGED
@@ -15,4 +15,4 @@ partial interface Document {
15
15
 
16
16
  partial interface HTMLMediaElement {
17
17
  readonly attribute AutoplayPolicy autoplayPolicy;
18
- };
18
+ };
package/compression.idl CHANGED
@@ -3,13 +3,13 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: Compression Streams (https://wicg.github.io/compression/)
5
5
 
6
- [Exposed=(Window,Worker)]
6
+ [Exposed=*]
7
7
  interface CompressionStream {
8
8
  constructor(DOMString format);
9
9
  };
10
10
  CompressionStream includes GenericTransformStream;
11
11
 
12
- [Exposed=(Window,Worker)]
12
+ [Exposed=*]
13
13
  interface DecompressionStream {
14
14
  constructor(DOMString format);
15
15
  };
@@ -8,14 +8,14 @@ callback ComputePressureUpdateCallback = undefined (
8
8
  ComputePressureObserver observer
9
9
  );
10
10
 
11
+ enum ComputePressureTarget { "cpu" };
12
+
11
13
  [Exposed=Window]
12
14
  interface ComputePressureObserver {
13
- constructor(
14
- ComputePressureUpdateCallback callback,
15
- optional ComputePressureObserverOptions options = {}
16
- );
17
- undefined observe();
18
- undefined unobserve();
15
+ constructor(ComputePressureUpdateCallback callback);
16
+ undefined observe(ComputePressureTarget target, optional ComputePressureObserverOptions options = {});
17
+ undefined unobserve(ComputePressureTarget target);
18
+ undefined disconnect();
19
19
  };
20
20
 
21
21
  dictionary ComputePressureEntry {
@@ -28,9 +28,4 @@ interface FontMetadata {
28
28
  readonly attribute USVString fullName;
29
29
  readonly attribute USVString family;
30
30
  readonly attribute USVString style;
31
-
32
- // Metrics
33
- readonly attribute boolean italic;
34
- readonly attribute float stretch;
35
- readonly attribute float weight;
36
31
  };
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.12.1",
4
+ "version": "3.0.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -17,6 +17,7 @@ dictionary UADataValues {
17
17
  DOMString platform;
18
18
  DOMString platformVersion;
19
19
  DOMString uaFullVersion; // deprecated in favor of fullVersionList
20
+ boolean wow64;
20
21
  sequence<NavigatorUABrandVersion> fullVersionList;
21
22
  };
22
23