Re: [w3c/manifest] feat: add support for adaptive icons (#563)

kenchris commented on this pull request.



> @@ -2347,7 +2429,9 @@ <h2>
       </h2>
       <pre class="idl">
         dictionary ImageResource {
-          required USVString src;
+          USVString foreground;
+          USVString background;
+          USVString src;          

I had example like this, where background is inferred. When I discussed the feature with some devs, I got a request for that. Background is often very simple and not pixel optimized, so people like using a SVG for that.

```
+                {
 +                  "foreground": "icon/fg.png",
 +                  "sizes": "108x108",
 +                  "type": "image/png"
 +                },
 +                {
 +                  "background": "icon/shared-bg.svg",
 +                  "sizes": "any",
 +                  "type": "image/svg"
 +                }
 +              ]
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/pull/563#discussion_r155477306

Received on Thursday, 7 December 2017 10:07:00 UTC