ScreenOrientation.type
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2023年3月.
ScreenOrientation
の読み取り専用プロパティ type
は、文書の現在の向きのタイプを返します。"portrait-primary"
、"portrait-secondary"
、"landscape-primary"
、"landscape-secondary"
のいずれかです。