WPT details: A test suite is currently impossible due to the lack of an API to get the theme color (https://github.com/web-platform-tests/wpt/issues/29309). However some reflection tests are added (https://github.com/web-platform-tests/wpt/pull/28876). It is fully tested in Chromium using browser tests.
The meta element’s “media” attribute will be honored for meta[name="theme-color"] so that web developers can adjust the theme color of their site based on a media query (dark and light modes for instance). The first one that matches will be picked.
Docs: https://web.dev/add-manifest/#theme-color
Samples: https://media-meta-theme-color.glitch.me/
Explainers: https://github.com/whatwg/html/issues/6495 https://photos.app.goo.gl/kmhABhbVqVzneKxN6