Skip to content
AnswerWell geo Documentation

Research · 6 min read · Answerwell

system.display: Display Metadata, Layout, and Multi-Monitor Bounds

How Chrome extensions use system.display to read monitor size, position, work area, and layout—and how that differs from the Window Management API.

This page summarises Chrome Extensions documentation for the system.display API: reading connected monitors’ pixel dimensions, on-screen position, usable work area, and (on ChromeOS) modes, rotation, and mirroring. For positioning app UI, legacy Chrome Apps use chrome.app.window; for ordinary web pages, Chrome documents the separate Window Management API under “Managing several displays.”

system.display permission: what you need to query monitors

Section titled “system.display permission: what you need to query monitors”

system.display is declared in the extension manifest so the runtime can expose display metadata to your background or service worker code.

Use the system.display API to query display metadata.

— Chrome, system.display

The permission name is exactly system.display (see the Permissions section of the same reference). Without it, calls such as getInfo() are not available to the extension.

Display size and position: width, height, left, and top

Section titled “Display size and position: width, height, left, and top”

DisplayLayout describes how a monitor sits in the virtual desktop: width and height in pixels, plus the upper-left corner as left (x) and top (y).

Field Meaning
width Width of the display in pixels
height Height of the display in pixels
left X-coordinate of the upper-left corner
top Y-coordinate of the upper-left corner

Each layout entry also carries identity and arrangement fields used when several panels are chained: id (unique string), offset along the connected edge (0 means aligned corners), parentId (empty for the root display), and position (LayoutPosition relative to the parent; ignored for the root).

For video or media pipelines that only need upload dimensions (outside the extension API but often confused with “display height”), Cloudflare Stream’s StreamVideoInput metadata uses the same names—width and height in pixels for the original upload—documented under Bind to Workers API. That is upload metadata, not monitor layout.

DisplayInfo: bounds, workArea, and what “usable screen” means

Section titled “DisplayInfo: bounds, workArea, and what “usable screen” means”

After getInfo(), each monitor is a DisplayInfo object. The fields people usually need first are logical bounds, the smaller workArea, and flags such as isPrimary and isEnabled.

The usable work area of the display within the display bounds. The work area excludes areas of the display reserved for OS, for example taskbar and launcher.

— Chrome, system.display — workArea

bounds is the full logical rectangle; workArea is where you should place windows if you want them unobstructed by OS chrome. Always prefer workArea when opening popups or sizing panels on the primary monitor.

Other commonly used read-only fields include:

  • id and name (for example "HP LCD monitor")
  • isPrimary, dpiX / dpiY, displayZoomFactor (1 = 100%, 1.5 = 150%)
  • availableDisplayZoomFactors (Chrome 67+)
  • hasTouchSupport (Chrome 57+)
  • activeState (Chrome 117+): active when the display is detected and used by the system
  • rotation: documented as clockwise degrees on ChromeOS; 0 on other platforms; -1 can mean auto-rotate in tablet state on ChromeOS

Platform limits: modes, detailed overscan, and non-zero rotation behavior are ChromeOS-oriented in the reference (for example modes is an empty array off ChromeOS). Do not assume every field is populated on Windows, macOS, or Linux.

DisplayMode: resolution, scale, and refresh rate

Section titled “DisplayMode: resolution, scale, and refresh rate”

Each DisplayMode describes one timing/size option. The selected mode has isSelected: true. Important properties:

Property Role
width / height Size in device-independent (user-visible) pixels
widthInNativePixels / heightInNativePixels Native pixel dimensions
deviceScaleFactor Device scale factor for the mode
refreshRate Refresh rate in hertz (Chrome 67+)
isNative Whether this is the display’s native mode
isInterlaced Optional (Chrome 74+)

On non-ChromeOS platforms, treat mode lists as unreliable; use bounds and workArea for layout logic instead.

ChromeOS layout and mirroring (kiosk-only writers)

Section titled “ChromeOS layout and mirroring (kiosk-only writers)”

On ChromeOS, kiosk apps can rearrange the virtual desktop and mirror panels.

setDisplayLayout(layouts) applies a DisplayLayout[] for all displays; any display omitted gets a default layout. Invalid or overlapping layouts are adjusted; then onDisplayChanged fires.

Set the layout for all displays. Any display not included will use the default layout. If a layout would overlap or be otherwise invalid it will be adjusted to a valid layout.

— Chrome, setDisplayLayout

setDisplayProperties(id, info) updates only fields present in info. Failure sets runtime.lastError. Notable constraints from the reference:

  • boundsOriginX / boundsOriginY: cannot change origin on the primary display; final origin may differ after constraints—re-read with getInfo
  • rotation: legal values 0, 90, 180, 270 (clockwise)
  • displayZoomFactor: re-layout zoom, not naive stretch
  • isUnified: ChromeOS only, primary only; conflicts with mirroring fields
  • overscan: not on internal monitor; inset values cannot be negative or larger than a quarter of the screen size (Manifest V3 reference)

Use setMirrorMode(info) instead of deprecated mirroring via setDisplayProperties. Mirroring destination displays cannot be updated with setDisplayProperties().

Touch and overscan calibration APIs (startCustomTouchCalibration, overscanCalibrationStart, and related) are likewise kiosk-only; edid on DisplayInfo is kiosk-only as well.

The Manifest V2 reference at chrome.system.display describes the same surface with the chrome.* namespace and callback-style promises; semantics match, but always check the MV3 browser.system.display page when targeting Manifest V3.

Window Management API vs system.display: which API when?

Section titled “Window Management API vs system.display: which API when?”

system.display is for extensions (and kiosk tooling) that need OS-level display lists, DPI, work area, and ChromeOS display control.

For web content in a normal tab, Chrome’s capabilities doc points to the Window Management API:

Get information about connected displays and position windows relative to those displays.

— Chrome, Managing several displays with the Window Management API

Use Window Management when your product is a site or PWA that requests window-management permission and uses Screen Detailed / placement APIs. Use system.display when the code runs inside an extension with the system.display permission.

chrome.app.window: legacy window size and screen coordinates

Section titled “chrome.app.window: legacy window size and screen coordinates”

Deprecated Chrome Apps position windows with chrome.app.window: read/write width, height, left, top, plus optional min/max constraints. Imperative helpers include setPosition(left, top), setSize(width, height), setMinimumSize, and setMaximumSize.

That API moves the app window, not the monitor layout. Combine extension getInfo() (for workArea) with setPosition/setSize if you must support a legacy app; new work should use extensions plus MV3 APIs or the Window Management API on the open web.

If you embed a guest page in a <webview>, find-in-page results expose a selectionRect in screen coordinates (left, top, width, height)—see webviewTag. That rectangle is about match highlighting, not monitor enumeration; still useful when mapping UI from guest content to physical screen position.

  1. Using full bounds instead of workArea — taskbars and launchers cause clipped or hidden UI.
  2. Assuming modes and rotation off ChromeOS — empty or zero defaults; layout logic should use bounds/workArea.
  3. Calling kiosk setDisplayProperties from a normal extension — documented kiosk-only; expect failure or no-ops outside that context.
  4. Mixing APIs — tabs use Window Management; extensions use system.display; Chrome Apps use app.window.
  5. Ignoring zoom — displayZoomFactor changes effective layout; pair with availableDisplayZoomFactors when offering zoom UI on ChromeOS.
  6. Confusing “display” in themes — extension theme docs refer to kDisplayProperties for browser chrome theming (MV3 themes), not monitor geometry.
  1. Add "permissions": ["system.display"] to manifest.json (MV3) and load the unpacked extension; confirm the permission appears in chrome://extensions.
  2. From a background or service worker, call chrome.system.display.getInfo() (or browser.system.display.getInfo() per system.display) and log bounds, workArea, and isPrimary for each id.
  3. Move the OS taskbar or dock (where allowed) and call getInfo() again to verify workArea shrinks while bounds stays full-screen on that monitor.
  4. If you also ship a web client, prototype the same layout read with the Window Management API in a secure context and compare primary monitor dimensions to extension output.
  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact passage you are asking about, and we will correct or clarify it.