Re: [w3c/manifest] Add support for defining a theme color for both light & dark modes (prefers color scheme) (#975)

from [my earlier comment](https://github.com/w3c/manifest/issues/975#issuecomment-852349871_)
> basically prevents any combination with some other form of "only apply this when X" system that could get added in the future

this actually exists right now in `@supports`.  Using a `<media-query-list>` as the key means that `@supports` wouldn't be allowed.  Especially since we're dealing with CSS colors I think it'd perhaps be useful for a developer to be able to do something along the lines of
```
{
    "conditions": ["@media (prefers-color-scheme: dark)", "@supports (color: color(display-p3 1 1 1 1))"],
    "theme_color": "color(display-p3 1 1 1 1)",
    ...
}
```
(i.e. check that the exact color they want to use is supported before attempting to use it)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/issues/975#issuecomment-852587720

Received on Wednesday, 2 June 2021 00:20:44 UTC