ScreenOrientation.type
Baseline 2023Newly available
Since March 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
ScreenOrientation
の読み取り専用プロパティ type
は、文書の現在の向きのタイプを返します。"portrait-primary"
、"portrait-secondary"
、"landscape-primary"
、"landscape-secondary"
のいずれかです。
値
String
です。
仕様書
Specification |
---|
Screen Orientation # dom-screenorientation-type |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
type |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.