From 7d5bb3f79df3297c55e438d5f8e6a25bbc6a6779 Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Wed, 4 Dec 2024 14:50:13 +0000 Subject: [PATCH 1/3] Add more device motion/orientation keys --- features/device-orientation-events.yml | 28 ++++++++++ features/device-orientation-events.yml.dist | 60 +++++++++++++++++++++ 2 files changed, 88 insertions(+) diff --git a/features/device-orientation-events.yml b/features/device-orientation-events.yml index 4ec1f5bd62c..8a2e392b37c 100644 --- a/features/device-orientation-events.yml +++ b/features/device-orientation-events.yml @@ -4,3 +4,31 @@ description: The `DeviceMotion` and `DeviceOrientation` events report the moveme spec: https://w3c.github.io/deviceorientation/ caniuse: deviceorientation group: sensors +status: + compute_from: api.DeviceMotionEvent +compat_features: + - api.DeviceMotionEvent + - api.DeviceMotionEvent.DeviceMotionEvent + - api.DeviceMotionEvent.acceleration + - api.DeviceMotionEvent.accelerationIncludingGravity + - api.DeviceMotionEvent.interval + - api.DeviceMotionEvent.requestPermission_static + - api.DeviceMotionEvent.rotationRate + - api.DeviceMotionEventAcceleration + - api.DeviceMotionEventAcceleration.x + - api.DeviceMotionEventAcceleration.y + - api.DeviceMotionEventAcceleration.z + - api.DeviceMotionEventRotationRate + - api.DeviceMotionEventRotationRate.alpha + - api.DeviceMotionEventRotationRate.beta + - api.DeviceMotionEventRotationRate.gamma + - api.DeviceOrientationEvent + - api.DeviceOrientationEvent.DeviceOrientationEvent + - api.DeviceOrientationEvent.absolute + - api.DeviceOrientationEvent.alpha + - api.DeviceOrientationEvent.beta + - api.DeviceOrientationEvent.gamma + - api.DeviceOrientationEvent.requestPermission_static + - api.Window.devicemotion_event + - api.Window.deviceorientation_event + - api.Window.deviceorientationabsolute_event diff --git a/features/device-orientation-events.yml.dist b/features/device-orientation-events.yml.dist index 4c254260c58..a7341aa8647 100644 --- a/features/device-orientation-events.yml.dist +++ b/features/device-orientation-events.yml.dist @@ -46,3 +46,63 @@ compat_features: - api.DeviceMotionEvent.interval - api.DeviceMotionEvent.rotationRate - api.Window.devicemotion_event + + # baseline: false + # support: + # chrome: "7" + # chrome_android: "18" + # edge: "12" + # firefox: "6" + # firefox_android: "6" + # safari: "17" + - api.DeviceOrientationEvent.absolute + + # baseline: false + # support: + # chrome: "31" + # chrome_android: "31" + # edge: "12" + # firefox: "6" + # firefox_android: "6" + # safari_ios: "4.2" + - api.DeviceMotionEventAcceleration + - api.DeviceMotionEventAcceleration.x + - api.DeviceMotionEventAcceleration.y + - api.DeviceMotionEventAcceleration.z + - api.DeviceMotionEventRotationRate + - api.DeviceMotionEventRotationRate.alpha + - api.DeviceMotionEventRotationRate.beta + - api.DeviceMotionEventRotationRate.gamma + + # baseline: false + # support: + # chrome: "50" + # chrome_android: "50" + # edge: "79" + # firefox: "110" + # firefox_android: "110" + - api.Window.deviceorientationabsolute_event + + # baseline: false + # support: + # chrome: "59" + # chrome_android: "59" + # edge: "14" + # firefox: "17" + # firefox_android: "17" + - api.DeviceOrientationEvent.DeviceOrientationEvent + + # baseline: false + # support: + # chrome: "59" + # chrome_android: "59" + # edge: "14" + # firefox: "29" + # firefox_android: "29" + - api.DeviceMotionEvent.DeviceMotionEvent + + # baseline: false + # support: + # safari_ios: "14.5" + - api.DeviceMotionEvent.requestPermission_static + - api.DeviceOrientationEvent.requestPermission_static From efd6fc20d86f8cd7e26fc56aa6412f92eb034774 Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Fri, 6 Dec 2024 17:21:35 +0000 Subject: [PATCH 2/3] update desc --- features/device-orientation-events.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/features/device-orientation-events.yml b/features/device-orientation-events.yml index 8a2e392b37c..bd5bba21c4c 100644 --- a/features/device-orientation-events.yml +++ b/features/device-orientation-events.yml @@ -1,6 +1,5 @@ name: Device orientation events -# TODO: Add a note that coordinates can differ noticeably between platforms and devices -description: The `DeviceMotion` and `DeviceOrientation` events report the movement and orientation of the browser's device in physical space. +description: The `DeviceMotion` and `DeviceOrientation` events report the movement and orientation of the browser's device in physical space. Note that coordinates can differ noticeably between platforms and devices spec: https://w3c.github.io/deviceorientation/ caniuse: deviceorientation group: sensors From b866a129360711a6d744d016073be8efdbeb750c Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Fri, 6 Dec 2024 17:22:20 +0000 Subject: [PATCH 3/3] update desc --- features/device-orientation-events.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/device-orientation-events.yml b/features/device-orientation-events.yml index bd5bba21c4c..23b4811472c 100644 --- a/features/device-orientation-events.yml +++ b/features/device-orientation-events.yml @@ -1,5 +1,5 @@ name: Device orientation events -description: The `DeviceMotion` and `DeviceOrientation` events report the movement and orientation of the browser's device in physical space. Note that coordinates can differ noticeably between platforms and devices +description: The `DeviceMotion` and `DeviceOrientation` events report the movement and orientation of the browser's device in physical space. Note that coordinates can differ noticeably between platforms and devices. spec: https://w3c.github.io/deviceorientation/ caniuse: deviceorientation group: sensors