Skip to content

Commit ef5c14e

Browse files
committed
Add Screen API
1 parent 00f04c5 commit ef5c14e

1 file changed

Lines changed: 70 additions & 0 deletions

File tree

content/Browser/screen.jsdoc

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
Screen : Object
2+
3+
Provides details about the screen/monitor that the browser appears on.
4+
5+
Spec:
6+
https://drafts.csswg.org/cssom-view/#screen
7+
8+
----
9+
instance.availHeight : Number
10+
11+
Height in pixels available for applications on this screen. Excludes any
12+
areas reserved by the operating system such as the Windows task
13+
bar or Mac menu bar.
14+
15+
<example>
16+
console.log(screen.availHeight);
17+
</example>
18+
19+
ReadOnly:
20+
true
21+
22+
Spec:
23+
https://drafts.csswg.org/cssom-view/#dom-screen-availheight
24+
25+
----
26+
instance.availWidth : Number
27+
28+
Width in pixels available for applications on this screen. Excludes any
29+
areas reserved by the operating system such as the Windows task
30+
bar or Mac menu bar.
31+
32+
<example>
33+
console.log(screen.availWidth);
34+
</example>
35+
36+
ReadOnly:
37+
true
38+
39+
Spec:
40+
https://drafts.csswg.org/cssom-view/#dom-screen-availwidth
41+
42+
----
43+
instance.height : Number
44+
45+
Height of the screen in pixels.
46+
47+
<example>
48+
console.log(screen.height);
49+
</example>
50+
51+
ReadOnly:
52+
true
53+
54+
Spec:
55+
https://drafts.csswg.org/cssom-view/#dom-screen-height
56+
57+
----
58+
instance.width : Number
59+
60+
Width of the screen in pixels.
61+
62+
<example>
63+
console.log(screen.width);
64+
</example>
65+
66+
ReadOnly:
67+
true
68+
69+
Spec:
70+
https://drafts.csswg.org/cssom-view/#dom-screen-width

0 commit comments

Comments
 (0)