Skip to content

Commit

Permalink
Merge gravity-sensor.yaml into accelerometer.yml (#1873)
Browse files Browse the repository at this point in the history
The GravitySensor interface is part of the Accelerometer specification and is another view over the accelerometer data, just like LinearAccelerationSensor.

---------

Co-authored-by: Patrick Brosset <[email protected]>
  • Loading branch information
reillyeon and captainbrosset authored Oct 4, 2024
1 parent 04484b9 commit f608be4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 26 deletions.
10 changes: 7 additions & 3 deletions features/accelerometer.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
name: Accelerometer
description: The `Accelerometer` and `LinearAccelerationSensor` APIs read the acceleration applied to a device in three dimensions, either including the effect of gravity or not, respectively.
spec: https://w3c.github.io/accelerometer/#accelerometer-interface
description: The `Accelerometer`, `LinearAccelerationSensor` and `GravitySensor` APIs read the acceleration applied to a device in three dimensions, either including the effect of gravity, without its effect, or only its effect, respectively.
spec: https://w3c.github.io/accelerometer/
group: sensors
status:
compute_from: api.Accelerometer.Accelerometer
compute_from:
- api.Accelerometer.Accelerometer
- api.GravitySensor
compat_features:
- api.Accelerometer
- api.Accelerometer.Accelerometer
- api.Accelerometer.x
- api.Accelerometer.y
- api.Accelerometer.z
- api.GravitySensor
- api.GravitySensor.GravitySensor
- api.LinearAccelerationSensor
- api.LinearAccelerationSensor.LinearAccelerationSensor
- api.Permissions.permission_accelerometer
Expand Down
16 changes: 12 additions & 4 deletions features/accelerometer.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
status:
baseline: false
support:
chrome: "67"
chrome_android: "67"
edge: "79"
chrome: "91"
chrome_android: "91"
edge: "91"
compat_features:
# baseline: false
# support:
Expand All @@ -15,7 +15,6 @@ compat_features:
# edge: "79"
- api.Permissions.permission_accelerometer

# ⬇️ Same status as overall feature ⬇️
# baseline: false
# support:
# chrome: "67"
Expand All @@ -35,3 +34,12 @@ compat_features:
# chrome_android: "88"
# edge: "88"
- http.headers.Permissions-Policy.accelerometer

# ⬇️ Same status as overall feature ⬇️
# baseline: false
# support:
# chrome: "91"
# chrome_android: "91"
# edge: "91"
- api.GravitySensor
- api.GravitySensor.GravitySensor
7 changes: 0 additions & 7 deletions features/gravity-sensor.yml

This file was deleted.

12 changes: 0 additions & 12 deletions features/gravity-sensor.yml.dist

This file was deleted.

0 comments on commit f608be4

Please sign in to comment.