https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 37940982e9e57da55d0bc3cfde5b699761406271 authored by Hwanseung Lee on 27 March 2018, 23:07:16 UTC
[css-typed-om] support r and rx and ry properties
Tip revision: 3794098
sensors.idl
[SecureContext, Exposed=Window]
interface Sensor : EventTarget {
  readonly attribute boolean activated;
  readonly attribute boolean hasReading;
  readonly attribute DOMHighResTimeStamp? timestamp;
  void start();
  void stop();
  attribute EventHandler onreading;
  attribute EventHandler onactivate;
  attribute EventHandler onerror;
};

dictionary SensorOptions {
  double frequency;
};

[Constructor(DOMString type, SensorErrorEventInit errorEventInitDict),
 SecureContext, Exposed=Window]
interface SensorErrorEvent : Event {
  readonly attribute DOMException error;
};

dictionary SensorErrorEventInit : EventInit {
  required DOMException error;
};
back to top