A look at the HTML element and how it works. Daniel Schwarz explains the Chrome ...
Web Standards @webstandards_dev@mastodon.social
A look at the <geolocation> HTML element and how it works. Daniel Schwarz explains the Chrome 144 element that replaces the Geolocation API with markup: autolocate reuses a previously granted permission, watch tracks position continuously, and onlocation handles the result. The browser manages timeout and maximumAge. A :granted pseudo-class styles the button, isValid and invalidReason report blockers, and strict styling rules prevent clickjacking. #html #chrome
https://piccalil.li/blog/a-look-at-the-geolocation-html-element-and-how-it-works/