w3c / screen-orientation

The screen orientation lock specification
https://w3c.github.io/screen-orientation/
Other
27 stars 29 forks source link

Specify .lock() / .unlock() dependency on fullscreen API #209

Closed marcoscaceres closed 2 years ago

marcoscaceres commented 2 years ago

It's currently not possible to use this API without first requesting fullscreen across all user agents, so we should just codify this in the spec.

The advantage would be to allow fullscreen API to unlock the screen automatically when full screen is lost.

marcoscaceres commented 2 years ago

Duplicate of https://github.com/whatwg/fullscreen/issues/202

The lock() dependency is also handled in https://w3c.github.io/screen-orientation/#fullscreen-interaction

A user agent SHOULD restrict the use of lock() to simple fullscreen documents as a pre-lock condition.