Browser.screen resolutionFrom MozillaZine Knowledge Base
[edit] BackgroundCSS can use a variety of units for specifying dimensions. These units are classified as either absolute or relative. Absolute units (inches, centimeters, millimeters, points, and picas) are intended for use when the final output medium is of known dimensions; for example, in a print stylesheet. When they are used onscreen, their actual values must be calculated based on the DPI of the screen. This preference used to determine what DPI should be used for calculating the dimensions of elements set using absolute width units. It is now replaced by browser.display.screen_resolution in Gecko 1.8.0.x (the rendering engine for Firefox 1.5.0.x) and layout.css.dpi in Gecko 1.8.1 and 1.9 (i.e., the rendering engines for Firefox 2.0 and 3.0). [edit] Possible values and their effects[edit] -1Use the host system’s logical resolution or 96, whichever is greater, for interpreting dimensions specified in absolute units. (Default) [edit] 0Use the host system’s logical resolution for interpreting dimensions specified in absolute units. This is the value used when the 'Display resolution' is set to 'System setting.' [edit] (any positive integer)Use this number for interpreting dimensions specified in absolute units. [edit] Caveats
[edit] UI[edit] Mozilla Suite“Edit → Preferences → Appearance → Fonts → Display resolution†[edit] Mozilla Firefox 1.0.x“Edit → Preferences → General → Fonts&Colors → Display Resolution†(non-Windows only) [edit] First checked in[edit] Has an effect in
[edit] Related bugs
[edit] Related preferences[edit] External links |