diff options
author | alattalatta <alattalatta@sorto.me> | 2022-02-21 10:04:22 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-21 10:04:22 +0900 |
commit | 201f55848d4b15e4e59ab32b2bd1a4e1caa4db3a (patch) | |
tree | 863ddc787ec9219f452ab577d399439ffe66c51b /files/ko/web/api/screen/index.md | |
parent | 0ea2400f310ae8ebb2bfd6579d5e812547360061 (diff) | |
download | translated-content-201f55848d4b15e4e59ab32b2bd1a4e1caa4db3a.tar.gz translated-content-201f55848d4b15e4e59ab32b2bd1a4e1caa4db3a.tar.bz2 translated-content-201f55848d4b15e4e59ab32b2bd1a4e1caa4db3a.zip |
Remove {{page}} macro from API docs (#3913)
* Update BatteryManager
* Update BiquadFilterNode
* Update DataTransfer.getData
* Update DragEvent
* Update FileReader.result
* Update Geolocation API
* Update Network Information API
* Update Notification.permission
* Update Screen
* Remove {{page}} from Document
* Remove {{page}} from Navigator.battery
* Remove {{page}} from Using the Notifications API
* Add {{Compat}} to Navigator.battery
Diffstat (limited to 'files/ko/web/api/screen/index.md')
-rw-r--r-- | files/ko/web/api/screen/index.md | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/files/ko/web/api/screen/index.md b/files/ko/web/api/screen/index.md new file mode 100644 index 0000000000..2d61c9408a --- /dev/null +++ b/files/ko/web/api/screen/index.md @@ -0,0 +1,75 @@ +--- +title: Screen +slug: Web/API/Screen +tags: + - API + - CSSOM View + - Interface + - Reference +browser-compat: api.Screen +translation_of: Web/API/Screen +--- +{{APIRef("CSSOM")}} + +The `Screen` interface represents a screen, usually the one on which the current window is being rendered, and is obtained using {{DOMxRef("window.screen")}}. + +Note that browsers determine which screen to report as current by detecting which screen has the center of the browser window. + +## Properties + +- {{DOMxRef("Screen.availTop")}} {{Non-standard_Inline}} + - : Specifies the y-coordinate of the first pixel that is not allocated to permanent or semipermanent user interface features. +- {{DOMxRef("Screen.availLeft")}} {{Non-standard_Inline}} + - : Returns the first available pixel available from the left side of the screen. +- {{DOMxRef("Screen.availHeight")}} + - : Specifies the height of the screen, in pixels, minus permanent or semipermanent user interface features displayed by the operating system, such as the Taskbar on Windows. +- {{DOMxRef("Screen.availWidth")}} + - : Returns the amount of horizontal space in pixels available to the window. +- {{DOMxRef("Screen.colorDepth")}} + - : Returns the color depth of the screen. +- {{DOMxRef("Screen.height")}} + - : Returns the height of the screen in pixels. +- {{DOMxRef("Screen.left")}} {{Non-standard_Inline}} + - : Returns the distance in pixels from the left side of the main screen to the left side of the current screen. +- {{DOMxRef("Screen.orientation")}} + - : Returns the {{DOMxRef("ScreenOrientation")}} instance associated with this screen. +- {{DOMxRef("Screen.pixelDepth")}} + - : Gets the bit depth of the screen. +- {{DOMxRef("Screen.top")}} {{deprecated_inline}}{{Non-standard_Inline}} + - : Returns the distance in pixels from the top side of the current screen. +- {{DOMxRef("Screen.width")}} + - : Returns the width of the screen. +- {{DOMxRef("Screen.mozEnabled")}} {{Non-standard_Inline}} {{Deprecated_Inline}} + - : Boolean. Setting to false will turn off the device's screen. +- {{DOMxRef("Screen.mozBrightness")}} {{Non-standard_Inline}} {{Deprecated_Inline}} + - : Controls the brightness of a device's screen. A double between 0 and 1.0 is expected. + +### Events handler + +- {{DOMxRef("Screen.onorientationchange")}} {{Deprecated_Inline}} + - : A handler for the {{Event("orientationchange")}} event. + +## Methods + +- {{DOMxRef("Screen.lockOrientation")}} {{Non-standard_Inline}} {{Deprecated_Inline}} + - : Lock the screen orientation (only works in fullscreen or for installed apps) +- {{DOMxRef("Screen.unlockOrientation")}} {{Non-standard_Inline}} {{Deprecated_Inline}} + - : Unlock the screen orientation (only works in fullscreen or for installed apps) + +## Example + +```js +if (screen.pixelDepth < 8) { + // use low-color version of page +} else { + // use regular, colorful page +} +``` + +## Specifications + +{{Specifications}} + +## Browser compatibility + +{{Compat}} |