Overview / Web Technology
Web technology reference for developers
HTML
Structure of content on the web
CSS
Code used to describe document style
JavaScript
General-purpose scripting language
HTTP
Protocol for transmitting web resources
Web APIs
Interfaces for building web applications
Web Extensions
Developing extensions for web browsers
Accessibility
Build web projects usable for all
Web Technology
Web technology reference for developers
Filter sidebar
In this articleScreen
availHeight
availWidth
colorDepth
height
isExtended
ExperimentalmozBrightness
Non-standard DeprecatedmozEnabled
Non-standard Deprecatedorientation
pixelDepth
width
lockOrientation()
DeprecatedunlockOrientation()
Deprecatedchange
Experimentalorientationchange
Non-standard DeprecatedCSS
CSSConditionRule
CSSFontFeatureValuesRule
CSSFontPaletteValuesRule
CSSGroupingRule
CSSImportRule
CSSKeyframeRule
CSSKeyframesRule
CSSLayerBlockRule
CSSLayerStatementRule
CSSMediaRule
CSSNamespaceRule
CSSPageDescriptors
CSSPageRule
CSSPropertyRule
CSSRule
CSSRuleList
CSSStartingStyleRule
CSSStyleDeclaration
CSSStyleRule
CSSStyleSheet
CSSSupportsRule
CaretPosition
MediaList
MediaQueryList
StyleSheet
StyleSheetList
Baseline Widely available
This feature is well established and works across many devices and browser versions. Itâs been available across browsers since July 2015.
Returns the bit depth of the screen. Per the CSSOM, some implementations return 24
for compatibility reasons. See the browser compatibility section for those that don't.
A number.
Examplesjs
// if there is not adequate bit depth
// choose a simpler color
document.style.color = window.screen.pixelDepth > 8 ? "#FAEBD7" : "white";
Specifications Specification CSSOM View Module .
This page was last modified on Aug 8, 2025 by MDN contributors.
View this page on GitHubâ¢
Report a problem with this contentRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4