https://github.com/web-platform-tests/wpt
Raw File
Tip revision: aa5f597d05c9429f4513b490b03f13e8b2e10742 authored by Stephen Chenney on 12 December 2018, 20:34:28 UTC
Snap the snapped_dest_rect for backgrounds
Tip revision: aa5f597
screen-orientation.idl
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into reffy-reports
// (https://github.com/tidoust/reffy-reports)
// Source: The Screen Orientation API (https://w3c.github.io/screen-orientation/)

partial interface Screen {
  [SameObject] readonly attribute ScreenOrientation orientation;
};

[Exposed=Window]
interface ScreenOrientation : EventTarget {
  Promise<void> lock(OrientationLockType orientation);
  void unlock();
  readonly attribute OrientationType type;
  readonly attribute unsigned short angle;
  attribute EventHandler onchange;
};

enum OrientationType {
  "portrait-primary",
  "portrait-secondary",
  "landscape-primary",
  "landscape-secondary"
};

enum OrientationLockType {
  "any",
  "natural",
  "landscape",
  "portrait",
  "portrait-primary",
  "portrait-secondary",
  "landscape-primary",
  "landscape-secondary"
};
back to top