Screen Orientation API

E856219

The Screen Orientation API is a web standard that lets websites programmatically read and control the orientation of a device’s screen to improve layout and user experience.

Jump to: Surface forms Statements Referenced by

Observed surface forms (1)

Surface form Occurrences
Screen Wake Lock API 1

Statements (48)

Predicate Object
instanceOf Web API
Web standard
alsoUsedOn Some desktop environments
Tablets
definesAttribute ScreenOrientation.angle NERFINISHED
ScreenOrientation.type
definesEvent orientationchange event on ScreenOrientation
definesMethod screen.orientation.lock()
screen.orientation.unlock()
definesProperty screen.orientation
designGoal Integrate with device’s native orientation behavior
Provide a simple promise-based locking API
exposedIn Web browsers
hasSpecificationURL https://www.w3.org/TR/screen-orientation/
improves Layout adaptability
User experience
initiallyImplementedBy Android WebView NERFINISHED
Chrome NERFINISHED
Firefox NERFINISHED
notFullySupportedIn Some legacy desktop browsers
orientationLockExample any
landscape
natural
portrait
orientationTypeExample landscape-primary
landscape-secondary
portrait-primary
portrait-secondary
partOf HTML Living Standard ecosystem
primarilyUsedOn Mobile devices
primaryGoal Allow web pages to lock screen orientation
Allow web pages to read screen orientation
privacyConsideration Exposes limited device state information
providesInterface Screen interface extension
ScreenOrientation interface
relatedTo CSS orientation media features
Device Orientation Events
Fullscreen API NERFINISHED
requires Secure context
User gesture for locking orientation in many browsers
securityConsideration Can affect user experience if misused
standardizedBy W3C NERFINISHED
subjectTo User permission or engagement heuristics
supportedIn Most modern mobile browsers
useCase Full-screen web apps
Games
Reading applications
Video players

Referenced by (3)

Full triples — surface form annotated when it differs from this entity's canonical label.

Open Web Platform hasComponent Screen Orientation API
Chrome Web Platform features includesAPI Screen Orientation API
this entity surface form: Screen Wake Lock API
W3C Web Application technologies includesStandard Screen Orientation API