https://github.com/web-platform-tests/wpt
Raw File
Tip revision: c781a3b87218ad3eadc4be13be2897ebb33aa88d authored by Zhuoyu Qian on 11 April 2018, 05:16:30 UTC
Background-size should not accept negative values.
Tip revision: c781a3b
accelerometer.idl
[Constructor(optional AccelerometerSensorOptions options), SecureContext,
  Exposed=Window]
interface Accelerometer : Sensor {
  readonly attribute double? x;
  readonly attribute double? y;
  readonly attribute double? z;
};

enum AccelerometerLocalCoordinateSystem { "device", "screen" };

dictionary AccelerometerSensorOptions : SensorOptions {
  AccelerometerLocalCoordinateSystem referenceFrame = "device";
};

[Constructor(optional AccelerometerSensorOptions options), SecureContext,
  Exposed=Window]
interface LinearAccelerationSensor : Accelerometer {
};

[Constructor(optional AccelerometerSensorOptions options), SecureContext,
  Exposed=Window]
interface GravitySensor : Accelerometer {
};
back to top