Skip to content
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

[mediaqueries] Effect of <meta name=color-scheme> on the (prefers-color-scheme) MQ #10249

Open
tabatkins opened this issue Apr 25, 2024 · 0 comments
Labels

Comments

@tabatkins
Copy link
Member

Currently, it appears that the <meta name=color-scheme> element has no effect on the (prefers-color-scheme) MQ. This seems unfortunate; setting <meta name=color-scheme content=dark> does switch the default colors on the page to darkmode, but the styles still match (prefers-color-scheme: light), resulting in inconsistent behavior.

It does appear that this is an oversight between Color Adjust, MQ, and the HTML spec. Currently the meta element affects the "supported color schemes", which is then used solely by the color-scheme property to restrict what values it can be set to.

Am I wrong in thinking that it should indeed also affect the MQ, in the same way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant