https://github.com/web-platform-tests/wpt
Raw File
Tip revision: ef805cb3832c2deaf1ab8fc4f3353b65671e6f32 authored by Anthony Ramine on 13 March 2018, 19:31:50 UTC
Remove HTMLIFrameElement.allowvr test
Tip revision: ef805cb
screen-orientation.idl
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