Contact emails
Spec
https://notifications.spec.whatwg.org/#image-resource
There was recently a TAG review for the overall notifications spec (before |image| was added). The feedback from that is mostly unrelated to images/icons, except for the suggestion to allow specifying multiple image sizes for icons, which is being discussed in issue 28. The plan there is to define image/icon inputs as a typedef (USVString or sequence<NotificationIcon>), so this change is forward-compatible with that.
Summary
Allows developers to show a large image as part of the content of a notification (whereas the existing |icon| and |badge| properties tend to be icons and are rendered smaller). This allows for richer notifications.
Link to “Intent to Implement” blink-dev discussion
https://groups.google.com/a/chromium.org/d/topic/blink-dev/FQxPB5GEQjo/discussion
Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
Demo link
https://tests.peter.sh/notification-generator/#image=1 (set the "Image" field)
Debuggability
As usual, the image property is reflected on the Notification object. Support can be feature-detected using Notification.prototype.hasOwnProperty('image');
Interoperability and Compatibility Risk
OWP launch tracking bug
None yet. https://crbug.com/614456 tracks implementation.
Entry on the feature dashboard
https://www.chromestatus.com/features/5190797599178752
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.