The link element’s “media” attribute will be honored for link[rel="icon"] so that web developers can define multiple equally appropriate icons based on a media query (dark and light modes for instance). The last one that matches will be picked. Browsers don’t currently honor the media attribute for link[rel="icon"] even though the HTML specification says they should.

Motivation

This is a known and acknowledged bug in Chrome.

Specification

De-facto standard

Status in Chromium

Blink>HTML


Enabled by default (tracking bug) in:

  • Chrome for desktop release 91
  • Chrome for Android release 91
  • Android WebView release 91

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

Owner

Intent to Prototype url

Intent to Prototype thread

Last updated on 2021-07-17