Issue 40880635 - Orientation Lock PWA
Install this page as a PWA, then enable system rotation lock (e.g. portrait), then physically rotate the device.
Manifest has
"orientation": "any"
.
--
window.innerWidth
-
window.innerHeight
-
screen.orientation.type
-
screen.orientation.angle
-
matchMedia portrait
-
display-mode standalone
-
screen.orientation.lock(...)
tests (only work in PWA):
lock('any')
lock('natural')
lock('portrait')
lock('landscape')
unlock()
Event log: