v150 · Device Orientation
Feature-detect the gate
WebKit on iOS already requires requestPermission(), and Chrome is now adopting it. Correct code must therefore branch on whether the method exists — not on the browser. This page probes your browser's exact surface and prints the progressive-enhancement snippet: call the gate if present, otherwise attach listeners directly.
Probing…
| Surface | This browser | Detail |
|---|
What your browser needs
—
Copy this — works on Safari, Chrome-with-gate, and legacy Chrome
see also
implementation reference
Need the exact API surface, compatibility boundaries, errors, lifecycle, and source links? Read the matching gendn reference ↗