Viewport
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The Viewport interface of the Viewport Segments API represents the device's viewport.
Instance properties
Specifications
| Specification |
|---|
| CSS Viewport Module Level 1 # the-viewport-interface |
Browser compatibility
| desktop | mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
Viewport
|
|
|
|
|
|
|
|
|
|
|
|
|
segments
|
|
|
|
|
|
|
|
|
|
|
|
|
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.
See also
- Using the Viewport Segments API
- Viewport Segments API
- CSSOM view API
- Device Posture API
- Origin trial for Foldable APIs via developer.chrome.com (2024)