ScreenOrientation: type-Eigenschaft
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since März 2023.
Die schreibgeschützte type-Eigenschaft des ScreenOrientation-Interface gibt den aktuellen Orientedokumenttyp zurück, einer von portrait-primary, portrait-secondary, landscape-primary oder landscape-secondary.