Re: Rendering notifications with different pixel densities

Icon size information isn't actually sufficient to do both.  This is the
reason that srcset contains both viewport constraints and scaling factor
constraints. Frequently, a 32x32 @1x icon is not the same bitmap as a
16x16@2x icon.  The smaller the icon the more dramatic the effect.

See http://usecases.responsiveimages.org/#device-pixel-ratio-based-selection
:
"completely different images may need to be used for different
device-pixel-ratios"

It's possible I don't fully understand how a manifest would work with the
notifications API.  Do you reference the json format only, or somehow think
that the notification should be able to reference icons specified in a
manifest?

Justin


On Wed, Apr 30, 2014 at 4:18 AM, Anne van Kesteren <annevk@annevk.nl> wrote:

> On Wed, Apr 30, 2014 at 10:10 AM, Mounir Lamouri <mounir@lamouri.fr>
> wrote:
> > Manifest does something very similar to <link rel=icon> though it's
> > using JSON format.
> > Please, have a look at the manifest specification:
> > https://w3c.github.io/manifest/
> > I believe Notifications could definitely be interested in re-using that.
>
> Yeah, Justin, what do you think? It seems for icons in addition to
> being interested in pixel density, icon sizing is also very important.
> Given that just icon size information is sufficient to do both, maybe
> srcset is not such a good match after all.
>
>
> --
> http://annevankesteren.nl/
>

Received on Wednesday, 30 April 2014 22:05:49 UTC