display-mode: application
- Category
- Capabilities (Fugu)
- Type
- New or changed feature
- Status
- Proposed (Chrome Proposed)
- Intent stage
- None
Summary
The `display-mode` CSS media feature is extended so that multiple values can match simultaneously and adds the `application` value. `display-mode: application` matches when the document is running in an application context, independently of its current presentation mode. This lets developers reliably distinguish an application window from a browser tab without losing information about whether the application is displayed in standalone, minimal-ui, fullscreen, or any other simultaneous display mode.
Motivation
Web developers currently lack a reliable way to determine whether a document is running in an application context rather than a browser tab. Existing display-mode values describe the current presentation mode, which can change temporarily, such as when an application enters fullscreen. Because these values are mutually exclusive, developers cannot independently query both the application context and its current presentation mode. Making display-mode values non-mutually exclusive and adding the application value lets developers use (display-mode: application) as a stable application-context signal while continuing to query presentation values such as standalone, minimal-ui, and fullscreen.
Standards & signals
- Specification: https://drafts.csswg.org/mediaqueries-5/#display-modes
- Firefox: No signal
- Safari: Closed Without a Position
- Web developers: Positive
- Tracking bug: https://issues.chromium.org/issues/382114911
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=display-mode-application
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+display-mode%3A%20application
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=display-mode%3A%20application
- Baseline status: https://webstatus.dev/?q=display-mode%3A%20application
Explainers: https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/DisplayModeApplication/explainer.md