API stability is a browser-compatibility decision: build core behavior on APIs that are dependable across supported browsers, and treat limited or experimental support as a reason to provide a fallback. section 2.2.1
Use support status to guide implementation:
- Rely on stable APIs such as Fetch, Web Storage, and Geolocation for core behavior. section 2.2.1
- Add experimental APIs as progressive enhancements, and use feature detection when support may vary. section 2.2.1
if ('permissions' in navigator) {
navigator.permissions.query({name: "geolocation"})
.then(console.log);
}
Check for the Permissions API before querying it; feature detection lets the application handle its absence. section 2.2.1

