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

I think I am more persuaded, now, that some kind of style query could be the right approach. That way, the `prefers-*` queries will always reflect the user settings. Authors could replace many of their `(prefers-color-scheme)` media queries with it. But I'm still concerned about the following:

* How to use the HTML `picture` element to select different images for light and dark mode. The `source` element accepts media queries in a `media` attribute but doesn't accept style queries, and realistically never could (unless maybe the image is lazy loaded).
* Authors will want to think about backwards compatibility if we encourage them to use a style query instead. There would have to be a way for them to transition. Would they have to define their styles twice, as @bramus explained? https://github.com/w3c/csswg-drafts/issues/10249#issuecomment-2308415874

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


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

Received on Friday, 30 August 2024 10:43:19 UTC