A partial archive of discourse.wicg.io as of Saturday February 24, 2024.

New Spec Request: Select most appropriate image

Jake_Archibald
2018-08-22

Manifest, Notifications, Payment Handler, Credential Management, and Background Fetch all have the concept of a list of icons + metadata, and the browser fetches the most appropriate one.

There’s a lot of repetition in these spec, so I’m proposing we abstract it out into its own spec.

The discussion started here https://github.com/w3c/manifest/pull/710.

I guess the spec could be “Image Resource”, and would cover:

  • The structure of an image resource.
  • Selecting an appropriate image resource from a list.
  • Fetching the resource.

Each of these will have hooks allowing specs to tweak the fetching, extend the interface, and tweak the criteria for selecting a resource.

marcosc
2018-08-22

I’d be super supportive of this. Seems like a great primitive to have.

marcosc
2018-08-22

Spun up https://github.com/WICG/imageresource as there are quite a few of us interested in working on this.

Jake_Archibald
2018-08-22

I guess I’m finally gonna have to learn respec :grinning: