8000 [mediaqueries] Effect of <meta name=color-scheme> on the (prefers-color-scheme) MQ · Issue #10249 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

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

@tabatkins

Description

@tabatkins

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Unsorted

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0