From 2e743fd352773d533207e04cfd152a7d998a4901 Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Wed, 18 Dec 2024 14:45:07 +0100 Subject: [PATCH] Add the device memory api --- features/device-memory.yml | 7 +++++++ features/device-memory.yml.dist | 31 +++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 features/device-memory.yml create mode 100644 features/device-memory.yml.dist diff --git a/features/device-memory.yml b/features/device-memory.yml new file mode 100644 index 00000000000..98572082476 --- /dev/null +++ b/features/device-memory.yml @@ -0,0 +1,7 @@ +name: Device memory +description: The `Navigator.deviceMemory` API exposes the approximate amount of device memory available, in gigabytes. +spec: https://www.w3.org/TR/device-memory/ +compat_features: + - api.Navigator.deviceMemory + - api.WorkerNavigator.deviceMemory + - http.headers.Device-Memory diff --git a/features/device-memory.yml.dist b/features/device-memory.yml.dist new file mode 100644 index 00000000000..69ba1f09692 --- /dev/null +++ b/features/device-memory.yml.dist @@ -0,0 +1,31 @@ +# Generated from: device-memory.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: false + support: + chrome: "65" + chrome_android: "65" + edge: "79" +compat_features: + # baseline: false + # support: + # chrome: "61" + # chrome_android: "61" + # edge: ≤79 + - http.headers.Device-Memory + + # baseline: false + # support: + # chrome: "63" + # chrome_android: "63" + # edge: "79" + - api.Navigator.deviceMemory + + # ⬇️ Same status as overall feature ⬇️ + # baseline: false + # support: + # chrome: "65" + # chrome_android: "65" + # edge: "79" + - api.WorkerNavigator.deviceMemory