-
Notifications
You must be signed in to change notification settings - Fork 199
Description
In #1363 (comment) @captainbrosset wrote:
We usually try to name the entry point of the feature in the description. In this case it would be ServiceWorkerRegistration.sync. Although it's a bit long, and devs don't actually write ServiceWorkerRegistration in their code, but instead get a registration object by doing
await navigator.serviceWorker.ready. So I'm not too sure what to do here.
I don't think we've dealt with this before, but it will happen quite a lot. This would be terrible:
The
(await navigator.serviceWorker.ready).syncAPI ...
Because it's extremely unlikely anyone would write the code like that.
This specific case is complicated by the fact that there are many ways to get a ServiceWorkerRegistration instance, see the backreferences from https://w3c.github.io/ServiceWorker/#get-the-service-worker-registration-object
Another case is properties on methods on elements. Some precedent from that:
The
showPicker()method for<input>elements shows the user interface for picking a value. For example, for<input type="date">it shows the interface for picking a date.
The
preservesPitchproperty for<audio>or<video>adjusts the pitch of audio to sound more natural when the playback rate is faster or slower than the default.
What should a guideline say?