Definition
CSSOM View Module defines Screen
[Exposed=Window]
interface Screen {
readonly attribute long availWidth;
readonly attribute long availHeight;
readonly attribute long width;
readonly attribute long height;
readonly attribute unsigned long colorDepth;
readonly attribute unsigned long pixelDepth;
};
This interface is extended in the following specifications:
- Screen Orientation
partial interface Screen { [SameObject] readonly attribute ScreenOrientation orientation; };
- Window Management
partial interface Screen /* : EventTarget */ { [SecureContext] readonly attribute boolean isExtended; [SecureContext] attribute EventHandler onchange; };
Consolidated IDL (across mixin and partials)
[Exposed=Window]
interface Screen {
readonly attribute long availWidth;
readonly attribute long availHeight;
readonly attribute long width;
readonly attribute long height;
readonly attribute unsigned long colorDepth;
readonly attribute unsigned long pixelDepth;
[SameObject] readonly attribute ScreenOrientation orientation;
[SecureContext]
readonly attribute boolean isExtended;
[SecureContext]
attribute EventHandler onchange;
};
Methods and attributes that return objects implementing Screen
Referring IDL interfaces/dictionaries
Referring specifications
- Screen Orientation refers to
Screen
- Window Management refers to
Screen