| Summary: | Web app installed to home screen receives a black border in the icon | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Jesper van den Ende <jespertheend> | ||||
| Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | NEW --- | ||||||
| Severity: | Normal | CC: | jberlin, timothy, webkit-bug-importer, webkit | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | Safari 16 | ||||||
| Hardware: | iPhone / iPad | ||||||
| OS: | iOS 16 | ||||||
| Attachments: |
|
||||||
|
Description
Jesper van den Ende
2023-04-18 06:20:53 PDT
Hmm I'm guessing the black border is caused by the png being transparent. I'm not sure why it picks the png only now, and not in previous versions. I suppose this can be considered a feature request for maskable app icons. It's a difficult situation. If I remove the transparency, the icon will not get rounded corners on some android devices, but if I keep it, it gets black borders on iOS. <link rel="apple-touch-icon" href="solid-color-icon.png"> Use this meta tag for iOS. I think in previous iOS the border was white in light mode and black in dark mode. Now it looks like it is always black. Thanks, the meta tag seems to work. We already had a jpeg icon without transparency, I think previous versions used to pick up this icon instead of the pngs with transparency. I think it would be best if iOS preferred 'maskable' icons when available, with the appropriate cropping, since the behaviour iOS is showing is exactly what the maskable purpose was made for. |