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

Thanks for clarifying for me @JoshTumath 🙏 

Rewriting to using `if(color-scheme(dark): foo, else: bar)`, `color: light-dark(foo, bar)` and `@container color-scheme(dark)` solves the styling side of the issue. You still need to use MQs to provide separate images or videos for light and dark-mode though. 

Say we have a component that plugs a new tv-show, and the image has a different design for light and dark-mode. You want the image to reflect the correct mode no matter what page it is shown on.

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


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

Received on Wednesday, 21 January 2026 11:41:31 UTC