-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
precedence with <meta name="color-scheme" ...> #34
Comments
Off the top of my head I think it works with the meta tag rather than overriding. So you'd say you support both values and then the API can switch which value is chosen. Just like you today say you support both values and the browser picks the correct value based on the UA value (browser > OS). |
Sure, that makes sense when you pass both <meta name="color-scheme" content="light only"> await navigator.preferences.colorScheme.requestOverride("dark") refresh page |
Yeah the case with a single value is interesting, and the case with a single value and only is potentially even more interesting. Needs thinking about. I think in all cases the media query would update at least. But potentially the used colour scheme wouldn't? Similar to #14 |
Moved to w3c/csswg-drafts#11576 |
Should this specification discuss the precedence with the color-scheme meta tag?
I assume the preferences API will override the color scheme tag (as its user driven) but it isn't mentioned in the docs/spec. I don't know if this would require an update to the color-scheme meta tag section?
My assumptions for now is:
Web Prefs Override -> color-scheme meta tag -> OS default
The text was updated successfully, but these errors were encountered: