Skip to content

Commit 3b22aab

Browse files
authored
Add more device motion keys and update desc (#2407)
* Add more device motion/orientation keys * update desc * update desc
1 parent 0c2aa0d commit 3b22aab

File tree

2 files changed

+89
-2
lines changed

2 files changed

+89
-2
lines changed
Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,33 @@
11
name: Device orientation events
2-
# TODO: Add a note that coordinates can differ noticeably between platforms and devices
3-
description: The `DeviceMotion` and `DeviceOrientation` events report the movement and orientation of the browser's device in physical space.
2+
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.
43
spec: https://w3c.github.io/deviceorientation/
54
caniuse: deviceorientation
65
group: sensors
6+
status:
7+
compute_from: api.DeviceMotionEvent
8+
compat_features:
9+
- api.DeviceMotionEvent
10+
- api.DeviceMotionEvent.DeviceMotionEvent
11+
- api.DeviceMotionEvent.acceleration
12+
- api.DeviceMotionEvent.accelerationIncludingGravity
13+
- api.DeviceMotionEvent.interval
14+
- api.DeviceMotionEvent.requestPermission_static
15+
- api.DeviceMotionEvent.rotationRate
16+
- api.DeviceMotionEventAcceleration
17+
- api.DeviceMotionEventAcceleration.x
18+
- api.DeviceMotionEventAcceleration.y
19+
- api.DeviceMotionEventAcceleration.z
20+
- api.DeviceMotionEventRotationRate
21+
- api.DeviceMotionEventRotationRate.alpha
22+
- api.DeviceMotionEventRotationRate.beta
23+
- api.DeviceMotionEventRotationRate.gamma
24+
- api.DeviceOrientationEvent
25+
- api.DeviceOrientationEvent.DeviceOrientationEvent
26+
- api.DeviceOrientationEvent.absolute
27+
- api.DeviceOrientationEvent.alpha
28+
- api.DeviceOrientationEvent.beta
29+
- api.DeviceOrientationEvent.gamma
30+
- api.DeviceOrientationEvent.requestPermission_static
31+
- api.Window.devicemotion_event
32+
- api.Window.deviceorientation_event
33+
- api.Window.deviceorientationabsolute_event

features/device-orientation-events.yml.dist

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,63 @@ compat_features:
4646
- api.DeviceMotionEvent.interval
4747
- api.DeviceMotionEvent.rotationRate
4848
- api.Window.devicemotion_event
49+
50+
# baseline: false
51+
# support:
52+
# chrome: "7"
53+
# chrome_android: "18"
54+
# edge: "12"
55+
# firefox: "6"
56+
# firefox_android: "6"
57+
# safari: "17"
58+
- api.DeviceOrientationEvent.absolute
59+
60+
# baseline: false
61+
# support:
62+
# chrome: "31"
63+
# chrome_android: "31"
64+
# edge: "12"
65+
# firefox: "6"
66+
# firefox_android: "6"
67+
# safari_ios: "4.2"
68+
- api.DeviceMotionEventAcceleration
69+
- api.DeviceMotionEventAcceleration.x
70+
- api.DeviceMotionEventAcceleration.y
71+
- api.DeviceMotionEventAcceleration.z
72+
- api.DeviceMotionEventRotationRate
73+
- api.DeviceMotionEventRotationRate.alpha
74+
- api.DeviceMotionEventRotationRate.beta
75+
- api.DeviceMotionEventRotationRate.gamma
76+
77+
# baseline: false
78+
# support:
79+
# chrome: "50"
80+
# chrome_android: "50"
81+
# edge: "79"
82+
# firefox: "110"
83+
# firefox_android: "110"
84+
- api.Window.deviceorientationabsolute_event
85+
86+
# baseline: false
87+
# support:
88+
# chrome: "59"
89+
# chrome_android: "59"
90+
# edge: "14"
91+
# firefox: "17"
92+
# firefox_android: "17"
93+
- api.DeviceOrientationEvent.DeviceOrientationEvent
94+
95+
# baseline: false
96+
# support:
97+
# chrome: "59"
98+
# chrome_android: "59"
99+
# edge: "14"
100+
# firefox: "29"
101+
# firefox_android: "29"
102+
- api.DeviceMotionEvent.DeviceMotionEvent
103+
104+
# baseline: false
105+
# support:
106+
# safari_ios: "14.5"
107+
- api.DeviceMotionEvent.requestPermission_static
108+
- api.DeviceOrientationEvent.requestPermission_static

0 commit comments

Comments
 (0)