Skip to content

Device Posture API #1439

Open
Open

Description

@bramus

Description

Foldable phones, tablets, and multi-posture laptops represent a growing segment of hardware. The Device Posture API enables web applications to query and react to the physical posture of a device (such as foldable or dual-screen devices in folded or continuous posture) using both JavaScript (navigator.devicePosture) and CSS media queries (@media (device-posture: ...)).

Demo: https://serene-limit-trout.codepen.app/

Specification

https://www.w3.org/TR/device-posture/

web-feature

device-posture

Test Links

https://github.com/web-platform-tests/wpt/tree/master/device-posture

Additional Signals

(This features goes hand-in-hand with the Viewport Segments API, but serves a different purpose)

Activity

  1. github-actions commented on Sep 22, 2026

    @github-actions

    This comment was automatically generated based on the information you provided. Please don't edit it.

    Below is additional information about the web feature (from the web-features project) which is referenced in your proposal.
    If this doesn't accurately correspond to your proposal, please update your initial comment to include web-features: <feature-id>.
    To find feature IDs, use the web-features explorer.

    Feature Device posture

    • ID: device-posture
    • Name: Device posture
    • Description: The device posture API and the device-posture CSS media feature reflect the physical posture of a device, such as whether a foldable device is folded or unfolded.
    • Baseline status: Limited Availability
    • Docs: Device Posture API
    • Standard positions: Mozilla, WebKit
    • Developer signals: 3 votes (details)
    • Chrome use counter: chromestatus.com (~2.426% of page loads)
    • WPT tests: wpt.fyi results
    • More information: See the web-features explorer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    focus-area-proposal

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions