You are here

Mozilla Screen Orientation API MASTER RECORD

Unlike devices, screens have inbuilt capacity for detecting changes in orientation. But devices are not equipped with automated mechanisms for controlling screen orientation. The Mozilla Screen Orientation API provides CSS and JavaScript mechanisms for controlling screen orientations. It enables a device to implement content adjustment using CSS relative to either landscape or portrait mode of a screen. Developers can alternatively use JavaScript screen orientation to get and lock a screen's current orientation. The API currently supports only Firefox OS and Firefox Android mobile browsers. It is still a beta release and subject to future changes.