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

> 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.

Yes I think that's a more difficult problem because the HTML parser immediately fetches any img or video sources it finds. It wouldn't be able to evaluate the _used colour scheme_ when initially parsing the HTML. But maybe it could be done when in combination with `<img loading=lazy>`. I think it's a problem that needs to be discussed in the WHATWG.

-- 
GitHub Notification of comment by JoshTumath
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10249#issuecomment-3779706575 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 17:01:13 UTC