This repo holds some of the sources for the Screen Orientation API, an interface for Web applications to be able to:
The latest editor’s draft is at https://w3c.github.io/screen-orientation/
Try it out in the demo page.