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

@tabatkins The use-case that I have in mind is breaking out of simple light/dark binary thinking. There are _lighter_ dark themes, and _darker_ light themes, and a whole range in between. I will get a binary answer from the user OS preference query, and I have to (currently) provide a binary answer to the browser – but it's reasonable for my actual output to be adjusted when they mismatch. My site is light, but I know you prefer dark themes, so here is a toned-down version of my light theme.

That seems to me like a reasonable use-case, and not one that should require JS.

But I'm not sure what the meta tag would provide in that use-case over `color-scheme` on root? Maybe helping me control what flash of pre-style color people will see? Does the meta tag do that?

In either case, we need the used-value query.

-- 
GitHub Notification of comment by mirisuzanne
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10249#issuecomment-2339313137 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 9 September 2024 23:16:02 UTC