Re: [csswg-drafts] [mediaqueries-5] Dark Mode in CSS (#2735)

> For that to work, a web app would need to be able to "turn off" inverted colour mode and communicate to the OS/browser that it takes full responsibility for dark mode. Such signal could in addition to this media query (e.g. some kind of header or meta tag indicating ahead of time to the browser that the page takes responsibility and will provide a dark mode). Anyhow, this example is just clarify the intended outcome. I have no preference for what technique we'd use.

I also think browser should communicate this preference via http header, which enables the server to get involved and allows for more logic based implementation.

Request header:
X-Prefer-Interface-Style: dark

Response header:
X-General-Interface-Style: dark

-- 
GitHub Notification of comment by nuts-n-bits
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2735#issuecomment-509434293 using your GitHub account

Received on Monday, 8 July 2019 23:53:20 UTC