https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 58c02cddac41bd8027ce5b31ace82ab47e13d89b authored by Darren Shen on 26 February 2018, 19:13:50 UTC
[css-typed-om] Make custom paint canvas work with <gradient>s.
Tip revision: 58c02cd
orientation-sensor.idl
typedef (Float32Array or Float64Array or DOMMatrix) RotationMatrixType;

[SecureContext, Exposed=Window]
interface OrientationSensor : Sensor {
  readonly attribute FrozenArray<double>? quaternion;
  void populateMatrix(RotationMatrixType targetMatrix);
};

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

dictionary OrientationSensorOptions : SensorOptions {
  LocalCoordinateSystem referenceFrame = "device";
};

[Constructor(optional OrientationSensorOptions sensorOptions), SecureContext, Exposed=Window]
interface AbsoluteOrientationSensor : OrientationSensor {
};

[Constructor(optional OrientationSensorOptions sensorOptions), SecureContext, Exposed=Window]
interface RelativeOrientationSensor : OrientationSensor {
};
back to top