From baafc9c7959356bd26c2d2fb2a0949dd9b30ca22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Thu, 6 Jun 2024 23:02:22 +0000 Subject: [PATCH] Remove problematic icon matching algorithm (#1120) SHA: 2f54efe6f1cfcf3e90d8e6eb234640492e88c655 Reason: push, by marcoscaceres Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- index.html | 55 +++++++++++++++++++++++------------------------------- 1 file changed, 23 insertions(+), 32 deletions(-) diff --git a/index.html b/index.html index 97178b58..1b4339f4 100644 --- a/index.html +++ b/index.html @@ -163,7 +163,7 @@ .mdn .samsunginternet_android::before{background-image:url(https://www.w3.org/assets/logos/browser-logos/samsung-internet/samsung-internet.svg)} .mdn .webview_android::before{background-image:url(https://www.w3.org/assets/logos/browser-logos/android-webview/android-webview.png)} - + @@ -1249,20 +1249,10 @@

Web Application Manifest

an OS's task switcher and/or system preferences.

-

- If there are multiple equally appropriate images in - icons, a user agent MUST use the last one declared in - order at the time that the user agent collected the list of - icons. If the user agent tries to use an icon but that - icon is determined, upon closer examination, to be inappropriate - (e.g. because its content type is unsupported), then the user agent - MUST try the next-most-appropriate icon as determined by examining - the manifest image resource's members. -

Note
@@ -2510,7 +2500,7 @@

Web Application Manifest

  1. short_name,
  2. -
  3. icons +
  4. icons
  5. name,
  6. @@ -2555,11 +2545,11 @@

    Web Application Manifest

    object (e.g., an icon that is part of an application menu, etc.).

    - A manifest image resource differs from a image resource in that + A manifest image resource differs from a image resource in that it can have an additional purpose member.

    - User agents MAY modify the images associated with an manifest image resource to better match the platform’s visual style before + User agents MAY modify the images associated with an manifest image resource to better match the platform’s visual style before displaying it to the user, for example by rounding the corners or painting it in a specific color. It is recommended that developers prepare their image resources for such scenarios to avoid losing @@ -2576,7 +2566,7 @@

    Web Application Manifest

    values are the icon purposes.

    - When a manifest image resource is used as an icon, a + When a manifest image resource is used as an icon, a developer can hint that the image is intended to serve some special purpose in the context of the host OS (i.e., for better integration). User agents SHOULD NOT use an icon other than for its stated icon @@ -2616,11 +2606,14 @@

    Web Application Manifest

    any (default)
    - The user agent is free to display the icon in any context. + The user agent is free to display the icon where no purpose is required. For example, a + manifest image resource with a "any" purpose + wouldn't be used in a context where "monochrome" + is required.

    - The icon purposes list is the list « "monochrome", "maskable", "any" ». + The icon purposes list is the list « "monochrome", "maskable", "any" ».

    Note

    If an icon contains multiple purposes, it could be used for any of @@ -2841,13 +2834,13 @@

    Web Application Manifest

    icon can be declared in a manifest. As web applications need to work across multiple platforms, it is possible to indicate that an icon can have an user-agent-specified color applied by adding the - monochrome purpose. This allows the platform to + monochrome purpose. This allows the platform to ensure that the icon looks well integrated with the platform, and even apply different colors and padding in different places throughout the platform.

    - When presenting a monochrome icon, the user agent + When presenting a monochrome icon, the user agent MUST NOT independently display the red component, green component, or blue component of a pixel. The user agent SHOULD display each pixel with its original alpha value, but with a red, green, and blue value @@ -2855,7 +2848,7 @@

    Web Application Manifest

    use the same color value for all pixels.

    Note

    - Designers of monochrome icons could set all pixels + Designers of monochrome icons could set all pixels to black and only use transparency to create a silhouette of their icon.

    @@ -4259,7 +4252,7 @@

    Web Application Manifest

    Public Working Draft: